/* Bran Castle mirror — glue layer ON TOP of the captured Shopify theme CSS
 * and the captured accesso overlay chrome. Only what the originals do not
 * provide: the in-frame purchase steps (the real ones live in a cross-origin
 * iframe), cookie bar, legal footer, static widget fallbacks.
 */

/* Roboto (accesso widget font), self-hosted from the capture */
@font-face {
  font-family: "Roboto";
  src: url("/assets/tp/roboto-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/tp/roboto-medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/tp/roboto-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

#accesso[hidden], .bran-step[hidden], #bran-cookie[hidden],
[data-bran-badge][hidden] { display: none !important; }

/* uncustomized Shopify drawer elements must not render their light DOM */
header-sidebar:not(:defined), cart-drawer:not(:defined) { display: none; }

/* ------------------------------------------------ accesso frame (their CSS
   styles #accesso, #overlayCloseContainer, .accesso-frame, .accesso-close,
   .accesso-backdrop; we replace the cross-origin iframe with a div) */
.bran-frame {
  width: 100%;
  height: 100%;
  max-height: 960px;
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "Roboto", Arial, sans-serif;
  color: #1a1a1a;
}

/* widget header (#131D27) */
.bran-w-header {
  flex: 0 0 auto;
  height: 74px;
  background: #131D27;
  display: flex;
  align-items: center;
  padding: 0 26px;
  gap: 26px;
}
.bran-w-header button { background: none; border: 0; padding: 4px; cursor: pointer; }
.bran-w-title { color: #fff; font-weight: 700; font-size: 15px; }
.bran-w-nav { color: #fff; font-weight: 400; font-size: 15px; }
.bran-w-flex { flex: 1; }
.bran-w-cart { position: relative; }
.bran-w-cart-badge {
  position: absolute;
  top: -4px;
  right: -7px;
  background: #C15310;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
}

.bran-w-body { flex: 1 1 auto; overflow-y: auto; padding: 22px 20px 30px; }

/* ------------------------------------------------ shared bits */
.bran-h3 { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 0 0 12px; }
.bran-step-title { margin: 2px 0 18px; }
.bran-actions { display: flex; justify-content: flex-end; gap: 14px; margin-top: 22px; }
.bran-btn-next {
  background: #C15310;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 13px 46px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease;
}
.bran-btn-next:hover { filter: brightness(.92); }
.bran-btn-cancel {
  background: #fff;
  color: #1c2b33;
  border: 2px solid #1c2b33;
  border-radius: 6px;
  padding: 11px 32px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.bran-btn-checkout {
  width: 100%;
  margin-top: 22px;
  background: #131D27;
  color: #fff;
  border: 0;
  border-radius: 6px;
  padding: 15px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: filter .15s ease;
}
.bran-btn-checkout:hover { filter: brightness(1.25); }
.bran-btn-back {
  width: 100%;
  margin-top: 12px;
  background: none;
  border: 0;
  color: #555;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.bran-input {
  width: 100%;
  box-sizing: border-box;
  height: 50px;
  border: 1px solid #c9c9c9;
  border-radius: 8px;
  padding: 0 16px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
}
.bran-input::placeholder { color: #9a9a9a; }
.bran-input:focus { outline: 2px solid #C15310; outline-offset: -1px; border-color: transparent; }
.bran-input.bran-invalid { border-color: #d32f2f; }
select.bran-input { appearance: auto; }
.bran-err {
  display: block;
  font-style: normal;
  color: #d32f2f;
  font-size: 12px;
  margin-top: 5px;
  min-height: 1em;
}
.bran-err:empty { margin-top: 0; }

/* ------------------------------------------------ step 1: package details */
.bran-pkg { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.bran-pkg-img { width: 310px; max-width: 100%; border-radius: 8px; display: block; }
.bran-pkg-title { font-size: 19px; font-weight: 700; color: #1a1a1a; margin: 16px 0 12px; }
.bran-pkg-desc { font-size: 13.5px; line-height: 1.55; color: #333; }
.bran-pkg-desc p { margin: 0 0 9px; }
.bran-pkg-desc b { font-weight: 700; }
.bran-pkg-bullets { margin: 14px 0 0; padding-left: 18px; font-size: 13px; color: #555; }
.bran-pkg-bullets li { margin: 5px 0; }
.bran-rates {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 6px 20px;
}
.bran-rate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #ececec;
}
.bran-rate:last-child { border-bottom: 0; }
.bran-rate-label { font-size: 14px; color: #333; }
.bran-rate-price { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-top: 3px; }
.bran-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  padding: 2px;
}
.bran-stepper button {
  width: 30px;
  height: 30px;
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  border-radius: 999px;
}
.bran-stepper button:hover { background: #f2f2f2; }
.bran-stepper button:disabled { color: #c4c4c4; cursor: default; background: none; }
.bran-stepper .bran-qty {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

/* ------------------------------------------------ step 2: date & time */
.bran-dt { display: grid; grid-template-columns: 365px 1fr; gap: 30px; align-items: start; max-width: 960px; margin: 0 auto; }
.bran-cal { border: 1px solid #d9d9d9; border-radius: 8px; padding: 20px 22px; }
.bran-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bran-cal-month { font-size: 16px; font-weight: 500; color: #1a1a1a; }
.bran-cal-nav { border: 0; background: none; cursor: pointer; color: #333; padding: 6px; }
.bran-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.bran-cal-week { margin-bottom: 6px; }
.bran-cal-week span { text-align: center; font-size: 12.5px; font-weight: 500; color: #666; padding: 4px 0; }
.bran-cal-day {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  color: #1a1a1a;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
  font-family: "Roboto", Arial, sans-serif;
}
.bran-cal-day:disabled { color: #b8b8b8; cursor: default; }
.bran-cal-day.bran-sel { background: #f6e7d7; border-color: #d89b5a; }
.bran-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bran-slot {
  height: 54px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}
.bran-slot.bran-sel { background: #f6e7d7; border-color: #d89b5a; }
.bran-dt-summary { text-align: right; font-size: 13.5px; color: #333; margin: 26px 0 12px; }
.bran-dt-foot { max-width: 960px; margin: 0 auto; }
.bran-dt-foot .bran-actions { margin-top: 0; }

/* ------------------------------------------------ step 3: company */
.bran-company input { display: block; margin-bottom: 16px; }

/* ------------------------------------------------ step 4: cart + checkout */
.bran-cart-title { font-size: 19px; font-weight: 700; color: #1a1a1a; margin: 2px 0 18px; }
.bran-cart-count { font-size: 14px; font-weight: 400; color: #555; }
.bran-cart { display: grid; grid-template-columns: 1fr 400px; gap: 24px; align-items: start; }
.bran-cart-items, .bran-summary, .bran-panel {
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  padding: 20px 24px;
}
.bran-ci { display: flex; justify-content: space-between; gap: 18px; }
.bran-ci + .bran-ci { margin-top: 16px; padding-top: 16px; border-top: 1px solid #ececec; }
.bran-ci-name { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.bran-ci-meta { font-size: 13.5px; color: #555; margin-top: 3px; }
.bran-ci-right { display: flex; align-items: flex-start; gap: 18px; flex-shrink: 0; }
.bran-ci-remove {
  background: none;
  border: 0;
  padding: 0;
  color: #2b6cb0;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
}
.bran-ci-qty { font-size: 14px; color: #333; border-left: 1px solid #d9d9d9; padding-left: 18px; }
.bran-ci-price { text-align: right; }
.bran-ci-price b { font-size: 17px; font-weight: 700; color: #1a1a1a; display: block; }
.bran-ci-price small { font-size: 11px; color: #888; }
.bran-ci-extras { margin-top: 18px; padding-top: 14px; border-top: 1px solid #ececec; }
.bran-ci-extras-title { font-size: 13px; color: #666; margin-bottom: 10px; }
.bran-ci-extra { display: flex; justify-content: space-between; font-size: 14px; color: #333; margin: 8px 0; }
.bran-summary-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; }
.bran-summary-row { display: flex; justify-content: space-between; font-size: 14px; color: #333; margin: 9px 0; }
.bran-summary-total { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-top: 13px; }
.bran-check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; cursor: pointer; }
.bran-check {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  border: 2px solid #333;
  border-radius: 3px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bran-check.bran-on { background: #333; }
.bran-check.bran-on::after { content: "\2713"; color: #fff; font-size: 12px; line-height: 1; }
.bran-check-text { font-size: 12.5px; line-height: 1.45; color: #444; }
.bran-check-text a { color: #174E53; }
.bran-marketing { margin-top: 18px; }
.bran-marketing-title { font-size: 13px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px; }
.bran-marketing .bran-check-row { margin-top: 8px; }

/* checkout panels reuse the cart grid */
.bran-field { display: block; margin-bottom: 13px; }
.bran-co-meta { font-size: 13px; color: #666; margin: -6px 0 14px; }
.bran-field > span { display: block; font-size: 12.5px; font-weight: 500; color: #555; margin-bottom: 5px; }
.bran-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bran-btn-pay { background: #C15310; }
.bran-btn-pay:hover { filter: brightness(.92); }
.bran-pay-mount { min-height: 62vh; }

/* ------------------------------------------------ mobile frame */
@media (max-width: 768px) {
  #overlayCloseContainer { padding: 0; }
  .bran-frame { border-radius: 0; max-height: none; }
  .bran-w-header { height: 60px; padding: 0 14px; gap: 16px; }
  .bran-w-nav { display: none; }
  .bran-w-body { padding: 16px 14px 24px; }
  .bran-pkg { grid-template-columns: 1fr; gap: 22px; }
  .bran-pkg-img { width: 100%; }
  .bran-dt { grid-template-columns: 1fr; }
  .bran-cart { grid-template-columns: 1fr; }
  .bran-slots { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .bran-ci { flex-direction: column; }
  .bran-ci-qty { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------ mobile nav drawer (glue;
   the original is a JS shadow-DOM drawer) */
.bran-drawer { position: fixed; inset: 0; z-index: 3000; }
.bran-drawer[hidden] { display: none !important; }
.bran-drawer-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.bran-drawer-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(84vw, 340px);
  background: #fff;
  box-shadow: 0 0 30px rgba(0, 0, 0, .25);
  padding: 18px 22px;
  overflow-y: auto;
}
.bran-drawer-close {
  display: block;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 6px;
  cursor: pointer;
  color: #1c1c1c;
}
.bran-drawer ul { list-style: none; margin: 10px 0 0; padding: 0; }
.bran-drawer a, .bran-drawer .bran-drawer-cta {
  display: block;
  padding: 12px 0;
  font-family: "Crimson Pro Local", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #1c1c1c;
  text-decoration: none;
  border-bottom: 1px solid #eee;
}

/* ------------------------------------------------ cookie bar (site palette) */
.bran-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2500;
  background: #1C1C1C;
  color: #ece9e5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 13px 20px;
  font-family: "Crimson Pro Local", Georgia, serif;
  font-size: 15px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
}
.bran-cookie p { margin: 0; }
.bran-cookie a { color: #DA963D; }
.bran-cookie button {
  background: #DA963D;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 7px 26px;
  font-family: "Crimson Pro Local", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ------------------------------------------------ legal footer (original
   footer palette; required for store compliance) */
.bran-legal { background: #1C1C1C; border-top: 1px solid #333; }
.bran-legal-in {
  max-width: 78.75rem;
  margin: 0 auto;
  padding: 12px 20px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  align-items: center;
  color: #8f8f8f;
  font-size: 12.5px;
  font-family: "Crimson Pro Local", Georgia, serif;
}
.bran-legal-links a { color: #c9c9c9; text-decoration: none; }
.bran-legal-links a:hover { color: #DA963D; text-decoration: underline; }

/* ------------------------------------------------ static widget fallbacks
   (Weglot switcher styling normally comes from cdn.weglot.com) */
.weglot_container, .weglot-container { position: fixed; right: 12px; bottom: 12px; z-index: 60; }
.weglot_switcher {
  font-family: Arial, sans-serif;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 4px 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
}
.weglot_switcher .wgcurrent { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.weglot_switcher .wgcurrent > a { color: #333; text-decoration: none; }
.weglot_switcher .wgcurrent::after { content: "\203A"; color: #333; font-size: 15px; }
.weglot_switcher ul {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin: 0 0 6px;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.weglot_switcher ul li a { display: block; padding: 6px 16px; color: #333; text-decoration: none; }
.weglot_switcher ul li a:hover { background: #f2f2f2; }
