/*!
 * Steel Tongue Drum | "What's in the box" styles
 * Store: US   Product: STD
 * Source: Kiddospace-CDN / Stores/OTH/Product-STD/css/product-inclusions.css
 * Maintained by Tulon S. Avi. Make changes in the repo, not in the theme.
 */

.drum-box {
  margin: 24px 0 8px;
  border: 1px solid #cfe9f7;
  border-radius: 24px;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  background: #fff;
}

.drum-box__head {
  background: #38b6ff;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-align: center;
  padding: 12px 16px;
}

.drum-box__body {
  padding: 4px 16px 0;
}

.drum-box__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #edf2f6;
}

.drum-box__icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eef9ff;
  color: #38b6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drum-box__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Rows that show the selected design's image as their icon */
.drum-box__row[data-use-style-image="true"] .drum-box__icon {
  background: #bae0e5;
}
.drum-box__row[data-use-style-image="true"] .drum-box__icon img {
  width: 24px;
  height: 24px;
}

.drum-box__label {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  color: #1c2b36;
  line-height: 1.35;
}

.drum-box__status {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  color: #1483C7;
  white-space: nowrap;
}

.drum-box__status--gift {
  color: #17a34a;
}

/* Rows not included in the selected size */
.drum-box__row--excluded .drum-box__icon {
  background: #f2f5f7;
  color: #9aa7b2;
  opacity: .5;
}
.drum-box__row--excluded .drum-box__label {
  color: #b3bec7;
  font-weight: 500;
}
.drum-box__row--excluded .drum-box__status {
  color: #e8342b;
  font-weight: 600;
}

.drum-box__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.drum-box__total-label {
  font-size: 18px;
  font-weight: 700;
  color: #1c2b36;
}

.drum-box__total-value {
  font-size: 18px;
  font-weight: 700;
  color: #1483C7;
}

@media (max-width: 600px) {
  .drum-box__label { font-size: 13px; }
  .drum-box__status { font-size: 12px; }
}


/* =====================================================================
   Steel Tongue Drum | Item preview button + lightbox
   Append to Stores/US/Product-STD/css/product-inclusions.css

   .drum-box__label-wrap is new and takes the grid or flex position the
   bare .drum-box__label used to hold. If the row's existing rule places
   .drum-box__label directly (grid-column, flex, width), copy that rule
   onto .drum-box__label-wrap as well or the row will misalign.
   ===================================================================== */

.drum-box__label-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.drum-box__label-wrap .drum-box__label {
  flex: 0 1 auto;
  min-width: 0;
}

.drum-box__preview-btn {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid #38b6ff;
  background: transparent;
  color: #38b6ff;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.drum-box__preview-btn:hover,
.drum-box__preview-btn:focus-visible {
  background: #38b6ff;
  color: #fff;
}

.drum-box__preview-btn:focus-visible {
  outline: 2px solid #1c2b36;
  outline-offset: 2px;
}

/* Excluded rows are greyed; the button follows rather than staying bright */
.drum-box__row--excluded .drum-box__preview-btn {
  border-color: currentColor;
  color: inherit;
  opacity: .55;
}

/* ---------- Lightbox ---------- */

.drum-preview[hidden] { display: none; }

.drum-preview {
  position: fixed;
  inset: 0;
  z-index: 10000;          /* above Cartix's drawer overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.drum-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 43, 54, .72);
}

.drum-preview__dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 44px 16px 16px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 10px 40px rgba(28, 43, 54, .28);
  text-align: center;
}

.drum-preview__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: none;
  background: transparent;
  color: #1c2b36;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.drum-preview__close:hover { background: #f1f6fa; }

.drum-preview__title {
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 15px;
  color: #1c2b36;
}

.drum-preview__img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

/* Stops the page scrolling behind the lightbox on mobile */
body.drum-preview-open { overflow: hidden; }

@media (max-width: 600px) {
  .drum-preview { padding: 12px; }
  .drum-preview__dialog { padding: 40px 12px 12px; }
  .drum-box__preview-btn { font-size: 11px; padding: 3px 8px; }
}


/* =====================================================================
   Steel Tongue Drum | Grouped inclusion block + gallery link
   Append to Stores/US/Product-STD/css/product-inclusions.css
   ===================================================================== */

.drum-box__group {
  background: #f2f8fc;
  border-radius: 12px;
  padding: 4px 10px 8px;
  margin: 6px 0;
}

.drum-box__group .drum-box__row:last-of-type {
  border-bottom: none;
}

.drum-box__group-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  appearance: none;
  border: none;
  background: transparent;
  color: #0b7fc4;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 6px 6px;
  cursor: pointer;
  border-radius: 8px;
}

.drum-box__group-link:hover,
.drum-box__group-link:focus-visible {
  /* background: rgba(56, 182, 255, .12); */
  color: #f58720;
}



.drum-box__group-link:focus-visible {
  outline: 2px solid #0b7fc4;
  outline-offset: 2px;
}

.drum-box__group-link-text {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.drum-box__group-link-icon {
  flex: 0 0 auto;
}

.drum-box__group-link-chev {
  font-size: 18px;
  line-height: 1;
}

@media (max-width: 600px) {
  .drum-box__group { padding: 2px 8px 6px; }
  .drum-box__group-link { font-size: 13px; }
}
