/* Scrap Mama: Scrap Rates Grid widget */
.sdp-rates-wrap { width: 100%; }
.sdp-rates-search { position: relative; max-width: 460px; margin: 0 0 22px; }
.sdp-rates-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: #5B6B62; pointer-events: none; }
.sdp-rates-search input[type="search"] { width: 100%; height: 52px; border: 1px solid #DCE5DE; border-radius: 999px; padding: 0 20px 0 48px; background: #FFFFFF; font: 16px/1 'DM Sans', system-ui, sans-serif; color: #16241C; -webkit-appearance: none; appearance: none; box-shadow: none; }
.sdp-rates-search input[type="search"]:focus { outline: none; border-color: #12804A; box-shadow: 0 0 0 3px rgba(18, 128, 74, .15); }
.sdp-rates { --sdp-cols: 4; --sdp-gap: 16px; display: grid; grid-template-columns: repeat(var(--sdp-cols), minmax(0, 1fr)); gap: var(--sdp-gap); }
.sdp-rate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 26px 14px 24px; background: #FFFFFF; border: 1px solid #DCE5DE; border-radius: 18px; transition: border-color .15s, box-shadow .15s; }
.sdp-rate:hover { box-shadow: 0 14px 30px -18px rgba(18, 128, 74, .35); }
.sdp-rate[hidden] { display: none; }
.sdp-rate__media { --sdp-media: 72px; width: var(--sdp-media); height: var(--sdp-media); margin-bottom: 6px; display: grid; place-items: center; flex: 0 0 auto; }
.sdp-rate__media.is-icon { border-radius: 50%; background: #E3F2E8; color: #12804A; font-size: calc(var(--sdp-media) * .38); }
.sdp-rate__media.is-icon svg { width: calc(var(--sdp-media) * .4); height: calc(var(--sdp-media) * .4); fill: currentColor; }
.sdp-rate__media.is-photo img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px; }
.sdp-rate__name { margin: 0; font: 600 16px/1.3 'DM Sans', system-ui, sans-serif; color: #16241C; overflow-wrap: anywhere; }
.sdp-rate__price { font: 800 24px/1.1 'Bricolage Grotesque', system-ui, sans-serif; color: #12804A; }
.sdp-rate__unit { font: 500 14px 'DM Sans', system-ui, sans-serif; color: #5B6B62; margin-left: 2px; }
.sdp-rates-empty { margin: 18px 0 0; color: #5B6B62; text-align: center; }
.sdp-rates-empty[hidden] { display: none; }
@media (max-width: 767px) {
	.sdp-rates { --sdp-cols: 2; --sdp-gap: 12px; }
	.sdp-rate { padding: 20px 10px 18px; }
	.sdp-rate__price { font-size: 21px; }
	.sdp-rates-search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .sdp-rate { transition: none; } }

/* Scrolling row */
.sdp-rates-wrap.is-carousel { --sdp-card-w: 200px; --sdp-gap: 16px; position: relative; }
.is-carousel .sdp-rate { flex: 0 0 var(--sdp-card-w); width: var(--sdp-card-w); }
.sdp-marquee { overflow: hidden; padding: 6px 0 16px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 4%, #000 96%, transparent 100%); }
.sdp-track { display: flex; gap: var(--sdp-gap); width: max-content; animation: sdp-marquee var(--sdp-speed, 45s) linear infinite; will-change: transform; }
.is-reverse .sdp-track { animation-direction: reverse; }
.sdp-marquee:focus-within .sdp-track, .sdp-marquee.is-paused .sdp-track { animation-play-state: paused; }
@media (hover: hover) { .sdp-marquee:hover .sdp-track { animation-play-state: paused; } }
@keyframes sdp-marquee { from { transform: translateX(0); } to { transform: translateX(calc(-50% - var(--sdp-gap) / 2)); } }

/* Swipe with arrows */
.sdp-scroller { display: flex; gap: var(--sdp-gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.sdp-scroller::-webkit-scrollbar { display: none; }
.sdp-scroller .sdp-rate { scroll-snap-align: start; }
.sdp-scroller:focus-visible { outline: 2px solid #12804A; outline-offset: 4px; border-radius: 12px; }
.sdp-arrows { display: flex; gap: 10px; justify-content: flex-end; margin-top: 2px; }
.sdp-rates-wrap .sdp-arrow, .sdp-rates-wrap .sdp-arrow:focus { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #DCE5DE; background: #FFFFFF; color: #16241C; display: grid; place-items: center; cursor: pointer; padding: 0; box-shadow: none; }
.sdp-rates-wrap .sdp-arrow svg { width: 20px; height: 20px; }
.sdp-rates-wrap .sdp-arrow:hover { border-color: #12804A; color: #12804A; background: #FFFFFF; }
.sdp-rates-wrap .sdp-arrow:disabled { opacity: .35; cursor: default; }

@media (prefers-reduced-motion: reduce) {
	.sdp-track { animation: none; }
	.sdp-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
	.sdp-scroller { scroll-behavior: auto; }
}
/* Grouped by category (tiles) */
.sdp-rates-wrap.is-grouped { --sdp-green: #12804A; --sdp-ink: #16241C; }
.is-grouped .sdp-rates-search { margin: 0 auto 36px; }
.is-grouped .sdp-cat { margin: 0 0 50px; }
.is-grouped .sdp-cat[hidden] { display: none; }
.is-grouped .sdp-cat__title { margin: 0 0 26px; padding: 0; text-align: center; font: 800 clamp(26px, 3.2vw, 36px)/1.15 'Bricolage Grotesque', system-ui, sans-serif; color: var(--sdp-green); letter-spacing: -.3px; }
.sdp-tiles { box-sizing: border-box; list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 28px; max-width: 1040px; }
.sdp-tile { margin: 0; padding: 0; min-width: 0; display: flex; justify-content: center; }
.sdp-tile::before { content: none; }
.sdp-tile[hidden] { display: none; }
.sdp-tile > a { display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; text-decoration: none; color: inherit; }
.sdp-tile__card { position: relative; width: 100%; max-width: 200px; aspect-ratio: 200 / 126; background: #FFFFFF; border-radius: 22px; box-shadow: 0 2px 4px rgba(12, 42, 28, .12), 0 6px 14px -4px rgba(12, 42, 28, .35); display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; overflow: hidden; box-sizing: border-box; padding: 10px 10px 9px; transition: transform .18s ease, box-shadow .18s ease; }
.sdp-tile > a:hover .sdp-tile__card { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(12, 42, 28, .12), 0 14px 24px -8px rgba(12, 42, 28, .4); }
.sdp-tile__media { flex: 1 1 auto; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; }
.sdp-tile__media svg { display: block; width: 76px; height: 76px; max-height: 100%; }
.sdp-tile__media img { display: block; max-height: 74px; max-width: 86%; width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.sdp-tile__price { font: 700 15px/1.1 'DM Sans', system-ui, sans-serif; color: var(--sdp-ink); letter-spacing: .2px; white-space: nowrap; margin-top: 6px; }
.sdp-tile__name { margin-top: 10px; max-width: 220px; text-align: center; font: 700 15px/1.3 'DM Sans', system-ui, sans-serif; color: var(--sdp-green); text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; }
.sdp-tile > a:hover .sdp-tile__name { color: #0C5F36; }
.sdp-tile > a:focus { outline: none; }
.sdp-tile > a:focus-visible .sdp-tile__card { outline: 3px solid var(--sdp-green); outline-offset: 3px; }
html[lang^="bn"] .sdp-tile__name { text-transform: none; font-size: 16px; }
html[lang^="bn"] .is-grouped .sdp-cat__title { letter-spacing: 0; }
@media (max-width: 1024px) { .sdp-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.is-grouped .sdp-rates-search { margin-bottom: 28px; }
	.is-grouped .sdp-cat { margin-bottom: 36px; }
	.is-grouped .sdp-cat__title { margin-bottom: 18px; }
	.sdp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.sdp-tile__card { border-radius: 18px; padding: 8px; }
	.sdp-tile__media svg { width: 58px; height: 58px; }
	.sdp-tile__media img { max-height: 58px; }
	.sdp-tile__price { font-size: 14px; }
	.sdp-tile__name { font-size: 13.5px; margin-top: 8px; }
	html[lang^="bn"] .sdp-tile__name { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .sdp-tile__card { transition: none; } .sdp-tile > a:hover .sdp-tile__card { transform: none; } }

/* Drawn item icons in the plain grid and the scrolling row */
.sdp-rates-wrap .sdp-rate__media.is-drawn svg { width: 74%; height: 74%; fill: none !important; display: block; }
