/* Country Store Ribbon designer, step 1: galleries in place of the ribbon's long drop-downs (csf_ribbon.js).
   Colours and fonts are inherited from the theme; only layout here. */
.csf-rg { margin: 6px 0 14px; }
.csf-rg-design { display: block; margin: 0 0 16px; padding: 14px 18px; border-radius: 10px; background: #7a3b33; color: #fff !important; text-decoration: none !important; box-shadow: 0 4px 12px rgba(122, 59, 51, .3); }
.csf-rg-design strong { display: block; font-size: 18px; }
.csf-rg-design span { font-size: 13px; opacity: .9; }
.csf-rg-design:hover { background: #5e2c26; }
.csf-rg-tools { margin-bottom: 6px; }
.csf-rg-search { max-width: 420px; }
.csf-rg-themes { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.csf-rg-themes button { font: inherit; font-size: 12px; line-height: 1.2; padding: 4px 8px; border: 1px solid currentColor; border-radius: 12px; background: transparent; color: inherit; opacity: .75; cursor: pointer; }
.csf-rg-themes button.active { opacity: 1; font-weight: 600; background: rgba(0, 0, 0, .06); }
.csf-rg-grid { display: flex; flex-wrap: wrap; gap: 6px; max-height: 340px; overflow-y: auto; padding: 6px; border: 1px solid rgba(0, 0, 0, .15); border-radius: 6px; background: #fff; }
.csf-rg-tile { width: 92px; padding: 4px 2px; border: 2px solid transparent; border-radius: 6px; background: #fff; color: inherit; cursor: pointer; text-align: center; font: inherit; }
.csf-rg-tile img { display: block; width: 80px; height: 80px; margin: 0 auto 3px; object-fit: contain; background: #fff; }
.csf-rg-tile span { display: block; font-size: 11px; line-height: 1.2; max-height: 2.4em; overflow: hidden; }
.csf-rg-tile:hover { border-color: rgba(0, 0, 0, .25); }
.csf-rg-tile.active { border-color: #7a3b33; }
.csf-rg-dingbat .csf-rg-tile, .csf-rg-colour .csf-rg-tile { width: 72px; }
.csf-rg-dingbat .csf-rg-tile img, .csf-rg-colour .csf-rg-tile img { width: 60px; height: 60px; }
.csf-rg-colour .csf-rg-tile img { border-radius: 50%; object-fit: cover; }
.csf-rg-count { font-size: 12px; opacity: .7; margin-top: 4px; min-height: 1em; }
.csf-rg-preview { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.csf-rg-preview img { display: none; width: 140px; height: 140px; object-fit: contain; background: #fff; border: 1px solid rgba(0, 0, 0, .15); border-radius: 6px; }
.csf-rg-colour .csf-rg-preview img { border-radius: 50%; object-fit: cover; }
.csf-rg-preview-name { font-weight: 600; }
.csf-ribbon-browse .csf-rg-grid { max-height: none; }
@media (max-width: 760px) {
	.csf-rg-themes button { min-height: 36px; padding: 6px 12px; }
}

@media (max-width: 480px) {
	.csf-rg-tile { width: 72px; }
	.csf-rg-tile img { width: 60px; height: 60px; }
}
