@layer sdpb-compat, sdpb-module;
@layer sdpb-module{
/* sd_sampleproduct_glue 1.1.0: the free samples pop-up on the product page (views/storefront/samples.js), the client's
   scope (unlayered, after the site's own rules). The same look as the samples page's pop-up (the build kit's
   css/sample-page*.css, .obd-sp-dialog, compact since 2026-11-18): white, rounded 20; the close × at the top right; the
   green tick and "Added to your basket" (Bold 20; 18 on phones); "3 of 8 fabric samples in your basket:"; the samples
   two a row, small ivory rows (a 34px swatch, 13px words) each with its remove ×, so 8 fit without scrolling; "Choose
   more samples" (outlined) and "Go to basket" (black) as small pills. Colours from the site's variables, with their
   values as fallbacks. */
.sdsp-pop { box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 24px; overflow: auto;
  color: #000; font: inherit; background: #fff; border: 0; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.sdsp-pop::backdrop { background: rgba(0, 0, 0, .45); }
.sdsp-pop[aria-busy="true"] { cursor: progress; }
.sdsp-pop *, .sdsp-pop *::before, .sdsp-pop *::after { box-sizing: border-box; }
.sdsp-pop [hidden] { display: none !important; }
.sdsp-pop__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; padding: 0; color: #000; font: inherit; font-size: 26px; line-height: 1;
  background: none; border: 0; border-radius: 50%; cursor: pointer; }
.sdsp-pop__close:hover { background: var(--obd-cream, #f2f1eb); }
.sdsp-pop__head { display: flex; gap: 10px; align-items: center; padding-right: 36px; }
.sdsp-pop__tick { flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--obd-green, #04da0b) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.sdsp-pop__title { margin: 0; color: #000; font-size: 20px; font-weight: 700; line-height: 1.3; }
/* A message instead of an add (no sample for "Same as Image", already in the basket, the limit, a failure) */
.sdsp-pop__note { margin: 12px 0 0; padding: 10px 12px; color: #000; font-size: 14px; font-weight: 500; line-height: 1.4; background: #fffad9; border-radius: 10px; }
.sdsp-pop__note--error { color: #a3240a; background: #fde9e4; }
.sdsp-pop__choose { display: inline-flex; align-items: center; min-height: 32px; margin: 10px 0 0; padding: 5px 14px; color: #000; font: inherit; font-size: 13px; font-weight: 700;
  background: #fff; border: 1.5px solid #000; border-radius: 999px; cursor: pointer; }
.sdsp-pop__choose:hover { background: var(--obd-yellow, #fbdb06); border-color: var(--obd-yellow, #fbdb06); }
.sdsp-pop__count { margin: 8px 0 12px; color: var(--obd-text, #323232); font-size: 14px; line-height: 1.4; }
.sdsp-pop__note:not([hidden]) + .sdsp-pop__choose[hidden] + .sdsp-pop__count, .sdsp-pop__choose:not([hidden]) + .sdsp-pop__count { margin-top: 14px; }
.sdsp-pop__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 50dvh; margin: 0; padding: 0; overflow: auto; list-style: none; }
.sdsp-pop__item { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 5px 5px 5px 5px; background: var(--obd-ivory, #faf9f4); border-radius: 10px; }
.sdsp-pop__swatch { flex: none; width: 34px; height: 34px; overflow: hidden; background: var(--obd-cream, #f2f1eb); border-radius: 7px; }
.sdsp-pop__swatch img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sdsp-pop__name { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #000; font-size: 13px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; }
.sdsp-pop__x { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; color: #000; font: inherit; font-size: 17px;
  line-height: 1; background: #fff; border: 1px solid rgba(0, 0, 0, .2); border-radius: 50%; cursor: pointer; }
.sdsp-pop__x:hover { color: #fff; background: #000; border-color: #000; }
.sdsp-pop__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.sdsp-pop__more, .sdsp-pop__basket { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-height: 34px; padding: 5px 14px;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; border: 1.5px solid #000;
  border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.sdsp-pop__more { color: #000; background: transparent; }
.sdsp-pop__basket { color: #fff; background: #000; }
.sdsp-pop__more:hover, .sdsp-pop__basket:hover { color: #000; background: var(--obd-yellow, #fbdb06); border-color: var(--obd-yellow, #fbdb06); }
.sdsp-pop :is(.sdsp-pop__x, .sdsp-pop__choose, .sdsp-pop__basket, .sdsp-pop__more):focus-visible { outline: 2px solid #000; outline-offset: 2px; }
/* The close button takes the focus when the pop-up opens: its hover look, not a ring */
.sdsp-pop .sdsp-pop__close:focus { outline: 0; }
.sdsp-pop .sdsp-pop__close:focus-visible { background: var(--obd-cream, #f2f1eb); }
@media (max-width: 767px) {
  .sdsp-pop { padding: 20px 16px; }
  .sdsp-pop__title { font-size: 18px; }
  .sdsp-pop__more, .sdsp-pop__basket { min-height: 32px; padding: 5px 12px; font-size: 12px; }
}

}
