/* Order Checkout Theme v1.0 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
  --ds24-primary: #FF295F;
  --ds24-accent: #FF295F;
  --ds24-active-tab-border: #FF295F;
  --ds24-active-tab-bg: rgba(255, 41, 95, 0.06);
  --ds24-button-bg: #FF295F;
  --ds24-button-hover: #E61E4D;
  --ds24-text: rgba(17, 24, 39, 0.85);
  --ds24-text-solid: #111827;
  --ds24-label: #64748B;
  --ds24-label-focus: #FF295F;
  --ds24-placeholder: #9CA3AF;
  --ds24-border: #D1D5DB;
  --ds24-divider: #E5E7EB;
  --ds24-summary-bg: rgba(255, 41, 95, 0.05);
  --ds24-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box !important;
}

/* Ensure non-visual HTML tags never generate layout boxes inside display:contents parents */
style,
script,
link,
input[type="hidden"],
[hidden] {
  display: none !important;
}

/* 1. Hide Removed Top/Footer Sections, Duplicates & Clutter */
.d-none,
.hide,
.hidden,
.coupon_highlight_box.d-none,
#coupon_discount.d-none,
#mobileCpnMessage,
#eupromo,
#addonservicefeature,
#blockmsg[style*="display:none"],
#blockmsg[style*="display: none"],
#myImg[style*="display:none"],
#myImg[style*="display: none"],
.trust-images,
.tgfloat,
.tgfloat-inner,
.secondTopSection,
.secondTopSection1,
.wrapperLogo,
.paymentFormSection,
.language_dropdown,
.modal_flex,
.autofill-catcher,
button[data-utmify-ic-trigger],
/* Remove top spacer row */
#defaultcontainer > .row > .col-sm-12.col-md-12.desktopview,
/* Remove hidden-inputs wrapper inside .outerYourDetails so it doesn't occupy a grid cell */
.outerYourDetails > .wrapperRightForm,
/* Remove Duplicate Mobile "Billing Info" Heading & Duplicate Mobile Payment Button Row */
h1.customerInfoHeading.mobileview,
.customerInfoHeading.mobileview,
.bttn_flex_mob,
/* Remove Duplicate "Card Holder Name" (#bcname_box) when hidden in Credit Card mode */
#bcname_box[style*="display: none"],
#bcname_box[style*="display:none"],
.material[style*="display: none"],
.material[style*="display:none"],
/* Remove Duplicate "PROCESSING" spinner button below PAY NOW */
.buttonload,
button.buttonload,
/* Hide Order Details inner body so ONLY the top "Your Order Details  $37.33" bar remains */
.wraperOrderDetails,
.wraperOrderDetails > .col-sm-10,
.wraperOrderDetails > .col-sm-8,
.wraperOrderDetails > .col-sm-4,
#pdescription,
.productSection,
img.dflt,
.vat_section,
p.grey_text,
/* Remove Bottom Footer: Statement Descriptor (MARKETING), Seals, Terms/Disclaimer & Copyright */
#dev,
h3#dev,
#descriptor_id,
#charged_by,
#expdesc,
#bottom_top,
#bottom_top *,
#bottom_top::before,
#bottom_top::after,
#bottom_down p,
.affiliate_text {
  display: none !important;
}

/* Keep #bottom_down 1px tracking iframe alive in DOM but visually invisible */
#bottom_down {
  height: 1px !important;
  max-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* 2. Global Page Canvas (Digistore24 Typography & Background) */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-height: 100vh !important;
  background-color: #FFFFFF !important;
  background-image: none !important;
  color: var(--ds24-text) !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.428571429 !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  overflow-x: hidden !important;
}

/* 3. Main Container & Digistore24 1120px 2-Column Middle-Section Grid */
#defaultcontainer.container {
  max-width: 1120px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 32px 20px 56px !important;
  background: #FFFFFF !important;
  border: none !important;
  box-shadow: none !important;
}

#defaultcontainer .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#defaultcontainer .row::before,
#defaultcontainer .row::after {
  display: none !important;
  content: none !important;
}

#defaultcontainer .col-sm-12,
#defaultcontainer .col-xs-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}

/* Dissolve intermediate Explodely wrappers so their children form the exact DS24 2-column grid */
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > .col-sm-6.order_summary:first-of-type,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > .col-sm-6.order_summary:first-of-type > .wrapperRightForm,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > .col-sm-6.order_summary:first-of-type > .wrapperRightForm > .outerYourDetails,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > .col-sm-6.order_summary:last-of-type,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > .col-sm-6.order_summary:last-of-type > .wrapperRightForm,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > .col-sm-6.order_summary:last-of-type > .wrapperRightForm > .outerYourDetails.move-to,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > form#myForm,
#defaultcontainer > .row > .col-sm-12 > .row:first-of-type > form#myForm > .info_box {
  display: contents !important;
}

/* Desktop & Tablet Landscape (>= 768px): Exact DS24 2-Column Middle Section */
@media (min-width: 768px) {
  #defaultcontainer > .row > .col-sm-12 > .row:first-of-type {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    column-gap: 40px !important;
    row-gap: 0px !important;
    align-items: start !important;
    width: 100% !important;
    padding: 0 20px !important;
  }

  /* Row 1 (Full Width): Compact Top Bar "Your Order Details  $37.33" */
  .outerYourDetails > div[style*="display: flex"] {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin-bottom: 30px !important;
  }

  /* Row 2, Left Column (50%): Customer Information (Email Address + Phone) */
  form#myForm > .info_box > .row:first-of-type {
    grid-column: 1 / 2 !important;
    grid-row: 2 / 4 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Row 2, Right Column (50%): Payment Methods & Billing Information */
  form#myForm > .info_box > .row.s_form {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 3 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Row 3, Right Column (50%): Primary Buy Button ("PAY NOW") directly under Card/Billing inputs */
  .wrapperBtnPayNow.button_holder {
    grid-column: 2 / 3 !important;
    grid-row: 3 / 4 !important;
    width: 100% !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
  }

  #blockmsg {
    grid-column: 2 / 3 !important;
    grid-row: 4 / 5 !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  #defaultcontainer > .row > .col-sm-12 > .row:first-of-type {
    column-gap: 28px !important;
    padding: 0 10px !important;
  }
}

/* Mobile (< 768px): Exact DS24 Single-Column Responsive Flow */
@media (max-width: 767px) {
  #defaultcontainer.container {
    max-width: 580px !important;
    padding: 16px 16px 40px !important;
  }

  #defaultcontainer > .row > .col-sm-12 > .row:first-of-type {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    row-gap: 0px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  /* 1. Top Bar: "Your Order Details  $37.33" */
  .outerYourDetails > div[style*="display: flex"] {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin-bottom: 22px !important;
  }

  /* 2. Customer Information */
  form#myForm > .info_box > .row:first-of-type {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
  }

  /* 3. Payment Methods & Billing Information */
  form#myForm > .info_box > .row.s_form {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 4. Primary Buy Button ("PAY NOW") at the bottom */
  .wrapperBtnPayNow.button_holder {
    grid-column: 1 / -1 !important;
    grid-row: 4 !important;
    width: 100% !important;
    margin: 6px 0 0 0 !important;
    padding: 0 !important;
  }

  #blockmsg {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
  }
}

/* 4. Top Order Details Bar ("Your Order Details   $37.33") */
.outerYourDetails > div[style*="display: flex"] {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  background-color: var(--ds24-summary-bg) !important;
  border: 1px solid var(--ds24-divider) !important;
  border-radius: 5px !important;
  padding: 14px 18px !important;
}

h4.oderDetailsHeading {
  font-family: 'Roboto', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--ds24-text-solid) !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  line-height: 1.3 !important;
}

h4.oderDetailsHeading.order_heading_right {
  color: var(--ds24-primary) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  text-align: right !important;
}

/* 5. Digistore24 Section Legends / Headings ("Customer Information" & "Billing Information") */
h1.customerInfoHeading:not(.mobileview) {
  font-family: 'Roboto', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--ds24-text) !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}

#card-images,
.credit-card-images-container {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  width: auto !important;
  max-width: 160px !important;
  flex-shrink: 0 !important;
}

#card-images img,
.credit-card-images-container img {
  width: 36px !important;
  max-width: 36px !important;
  height: 22px !important;
  max-height: 22px !important;
  object-fit: contain !important;
  display: inline-block !important;
  margin: 0 !important;
}

/* 6. Express Checkout (Apple Pay / Google Pay) & Payment Method Selector Tabs (Exact DS24 .payment-item) */
.s_form > table {
  width: 100% !important;
  margin: 0 0 8px 0 !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

.s_form > table td {
  padding: 0 !important;
  width: 100% !important;
}

.applePayButton,
.googlePayButton {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 10px !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  display: block !important;
}

.applePayButton:empty,
.googlePayButton:empty {
  margin-bottom: 0 !important;
}

.applePayButton iframe,
.googlePayButton iframe {
  width: 100% !important;
  max-width: 100% !important;
}

/* DS24 .or-divider */
.or_title {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 14px 0 16px !important;
  color: var(--ds24-text) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
}

.or_title::before,
.or_title::after {
  content: "" !important;
  flex: 1 !important;
  height: 1px !important;
  background-color: rgba(180, 190, 197, 0.45) !important;
  margin: 0 10px !important;
}

.or_title span {
  padding: 0 4px !important;
}

/* DS24 .payment-method-selection & .payment-item */
.bttn_flex {
  display: block !important;
  width: 100% !important;
  margin: 0 0 16px 0 !important;
}

.bttn_flex .btn-group {
  width: 100% !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0px !important;
}

#cardBtn,
button.payment-method-button {
  flex: 1 1 130px !important;
  width: auto !important;
  min-height: 56px !important;
  height: 56px !important;
  background-color: #FFFFFF !important;
  color: var(--ds24-text-solid) !important;
  border: 1px solid var(--ds24-divider) !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  outline: none !important;
  padding: 0 14px !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
}

button.payment-method-button.initial_none[style*="display: none"],
button.payment-method-button.initial_none[style*="display:none"] {
  display: none !important;
}

/* Exact DS24 .payment-item.active (1px solid #FF295F + 6% pink tint fill) */
#cardBtn.btn_focus,
button.payment-method-button.btn_focus,
button.payment-method-button:focus,
button.payment-method-button:active {
  border: 1px solid var(--ds24-active-tab-border) !important;
  box-shadow: 0 0 0 1px var(--ds24-active-tab-border) inset !important;
  background-color: var(--ds24-active-tab-bg) !important;
  z-index: 1 !important;
}

#cardBtn i,
button.payment-method-button i {
  color: var(--ds24-active-tab-border) !important;
  font-size: 19px !important;
}

/* 7. Digistore24 Floating-Label Input System (.material) */
#card-info {
  width: 100% !important;
}

.material {
  position: relative !important;
  width: 100% !important;
  margin: 0 0 14px 0 !important;
  display: block;
}

.material p {
  display: none !important;
}

.material.error p {
  display: block !important;
  font-size: 12px !important;
  color: #FF295F !important;
  margin: 4px 0 0 2px !important;
  font-weight: 400 !important;
}

/* Exact DS24 Input Styling: 2px radius, #B4BEC5 border, ocb-shadow-select-default shadow, 16px font */
.material input[type="text"],
.material input[type="email"],
.material input[type="tel"],
.material input[type="number"],
.material select {
  width: 100% !important;
  height: 50px !important;
  padding: 19px 12px 5px 12px !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: var(--ds24-text-solid) !important;
  background-color: #FFFFFF !important;
  border: 1px solid var(--ds24-border) !important;
  border-radius: 2px !important;
  box-shadow: var(--ds24-shadow) !important;
  outline: none !important;
  display: block !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  transition: border-color 0.15s ease-out !important;
}

/* Custom Dropdown Chevron matching DS24 p-dropdown-trigger-icon */
.material select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2304253E' fill-opacity='0.35' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 11px 7px !important;
  padding-right: 32px !important;
}

.material input::placeholder {
  color: var(--ds24-placeholder) !important;
  opacity: 1 !important;
}

.material input:focus,
.material select:focus {
  border-color: var(--ds24-accent) !important;
  outline: none !important;
}

.material.error input,
.material.error select {
  border-color: #FF295F !important;
}

/* DS24 Floating Label */
.material label,
.expiry-wrapper::before {
  position: absolute !important;
  left: 12px !important;
  top: 6px !important;
  transform: none !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 400 !important;
  color: var(--ds24-label) !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  z-index: 4 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: calc(100% - 24px) !important;
  transition: color 0.15s ease-out !important;
}

/* Inject floating label for Expiration Date (MM / YY) since Explodely commented out its <label> */
.expiry-wrapper::before {
  content: "Expiration Date" !important;
}

/* DS24 label color turns #FF295F when input is focused */
.material:focus-within label,
.expiry-wrapper:focus-within::before {
  color: var(--ds24-label-focus) !important;
}

/* Phone Input with Country Flag (.iti) */
.material.phone-number-field .iti {
  width: 100% !important;
  display: block !important;
}

.material.phone-number-field input#cell_phone {
  padding-left: 94px !important;
  padding-top: 19px !important;
  padding-bottom: 5px !important;
}

.material.phone-number-field label {
  left: 94px !important;
  top: 6px !important;
  max-width: calc(100% - 104px) !important;
}

/* Card Number & Icon */
#cardid {
  width: 100% !important;
  padding-right: 46px !important;
}

#creditCardImage {
  position: absolute !important;
  right: 12px !important;
  top: 15px !important;
  width: 28px !important;
  max-width: 28px !important;
  height: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  margin: 0 !important;
  pointer-events: none !important;
}

/* Side-by-side 2-Column Grids for (MM/YY + CVV) and (Country + ZIP Code) */
.card-extra-details,
.d-flex.flex-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.card-extra-details > .material.cus_material,
.d-flex.flex-wrap > .material {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 0 14px 0 !important;
  top: 0 !important;
}

@media (max-width: 350px) {
  .card-extra-details,
  .d-flex.flex-wrap {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
}

/* 8. Digistore24 Buy Button (#pay_now -> exact .ds-button.primary tokens) */
.wrapperBtnPayNow {
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

#pay_now,
button#pay_now {
  width: 100% !important;
  min-height: 54px !important;
  height: auto !important;
  background-color: var(--ds24-button-bg) !important;
  background-image: none !important;
  color: #FFFFFF !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border: none !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 14px rgba(255, 59, 108, 0.30) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  line-height: 1.2 !important;
  padding: 15px !important;
  transition: background-color 0.15s ease, transform 0.1s ease !important;
}

/* DS24 responsive button font-size at max-width: 580px (--bb-button-mobile-font-size: 1rem) */
@media (max-width: 580px) {
  #pay_now,
  button#pay_now {
    font-size: 16px !important;
    padding: 15px !important;
  }
}

#pay_now:hover {
  background-color: var(--ds24-button-hover) !important;
}

#pay_now img {
  display: none !important;
}

.buttonload,
button.buttonload {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

/* Hide fallback Month/Year selects when Explodely renders unified MM/YY expiry field */
.card-extra-details select[name="month"],
.card-extra-details select[name="year"],
.card-extra-details #month,
.card-extra-details #year,
.card-extra-details .select_year {
  display: none !important;
}
