/**
 * Align Child Theme - Checkout Page Stylesheet
 * 
 * Extracted and optimized from Post 490 design specs.
 * Includes layout, typography, responsive rules, and interactive state animations.
 *
 * @package Align Child
 */

/* Layout & Fixed Header Clearance */
#checkout-section-1 {
  background-color: var(--color-6);
  min-height: calc(100vh - 80px);
}

#checkout-section-1 .container-1440 {
  padding-top: 124px;
  padding-bottom: 48px;
}

body.admin-bar #checkout-section-1 .container-1440 {
  padding-top: 156px;
}

@media (max-width: 1100px) {
  #checkout-section-1 .container-1440 {
    padding-top: 104px;
    padding-bottom: 40px;
  }

  body.admin-bar #checkout-section-1 .container-1440 {
    padding-top: 136px;
  }
}

@media (max-width: 782px) {
  #checkout-section-1 .container-1440 {
    padding-top: 104px;
    padding-bottom: 32px;
  }

  body.admin-bar #checkout-section-1 .container-1440 {
    padding-top: 150px;
  }
}

#checkout-section-1 .cart-title-icon-wrap {
  width: 48px;
  height: 48px;
}

#checkout-section-1 .cart-table-header {
  padding-bottom: 12px;
}

#checkout-section-1 .cart-items-list {
  max-height: 500px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-5) transparent;
}

#checkout-section-1 .cart-items-list::-webkit-scrollbar {
  width: 6px;
}

#checkout-section-1 .cart-items-list::-webkit-scrollbar-track {
  background: transparent;
}

#checkout-section-1 .cart-items-list::-webkit-scrollbar-thumb {
  background-color: var(--color-5);
  border-radius: 9999px;
}

#checkout-section-1 .cart-items-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-4);
}

#checkout-section-1 .cart-item-row {
  padding-top: 16px;
  padding-bottom: 16px;
  transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.35s ease;
}

#checkout-section-1 .cart-total-bar {
  padding-top: 20px;
  padding-bottom: 20px;
}

#checkout-section-1,
#checkout-section-1 h1,
#checkout-section-1 h2,
#checkout-section-1 h3,
#checkout-section-1 p,
.cart-table-wrapper,
.login-card,
.product-addons,
.product-instructions,
.product-specs,
.product-subtitle,
.product-title {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
}

#checkout-section-1 .product-title {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
}

#checkout-section-1 .product-addons,
#checkout-section-1 .product-instructions,
#checkout-section-1 .product-specs,
#checkout-section-1 .product-subtitle {
  font-size: 16px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ==========================================================================
   Cart Table Layout (> 992px Horizontal Grid & Mobile Adaptation)
   ========================================================================== */
@media (min-width: 992px) {
  /* Cart Table Header (4-column unified grid aligning Items, Quantity, Total) */
  #checkout-section-1 .cart-table-header {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 180px 120px !important;
    column-gap: 20px !important;
    align-items: center !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--color-5, #EBE5D8) !important;
  }

  #checkout-section-1 .cart-table-header .cart-col-items {
    grid-column: 1 / span 2 !important;
    width: auto !important;
    flex: none !important;
    text-align: left !important;
  }

  #checkout-section-1 .cart-table-header .cart-col-quantity {
    grid-column: 3 !important;
    width: auto !important;
    flex-shrink: 0 !important;
    text-align: center !important;
  }

  #checkout-section-1 .cart-table-header .cart-col-total {
    grid-column: 4 !important;
    width: auto !important;
    flex-shrink: 0 !important;
    text-align: right !important;
  }

  /* Cart Table Row (Horizontal grid matching header columns exactly) */
  #checkout-section-1 .cart-table-wrapper .cart-item-row {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) 180px 120px !important;
    column-gap: 20px !important;
    align-items: center !important;
    padding: 20px 0 !important;
    border-bottom: 1px solid var(--color-5, #EBE5D8) !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 1. Thumbnail */
  #checkout-section-1 .cart-table-wrapper .compact-thumb-wrap {
    grid-column: 1 !important;
    width: 64px !important;
    height: 64px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #checkout-section-1 .cart-table-wrapper .cart-item-thumb {
    width: 64px !important;
    height: 64px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    display: block !important;
  }

  #checkout-section-1 .cart-table-wrapper .cart-item-thumbs-grid {
    width: 64px !important;
    height: 64px !important;
    display: grid !important;
    grid-template-columns: 30px 30px !important;
    grid-template-rows: 30px 30px !important;
    gap: 4px !important;
  }

  #checkout-section-1 .cart-table-wrapper .cart-item-thumb-mini-wrap {
    width: 30px !important;
    height: 30px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
  }

  #checkout-section-1 .cart-table-wrapper .cart-item-thumb-mini {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 2. Item Info (Title, Subtitle, Specs, Notes) */
  #checkout-section-1 .cart-table-wrapper .compact-info-wrap {
    grid-column: 2 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding-right: 8px !important;
  }

  #checkout-section-1 .cart-table-wrapper .product-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-transform: uppercase !important;
    color: var(--color-1, #080808) !important;
    margin: 0 !important;
    word-break: break-word !important;
  }

  #checkout-section-1 .cart-table-wrapper .product-subtitle,
  #checkout-section-1 .cart-table-wrapper .product-specs,
  #checkout-section-1 .cart-table-wrapper .cart-custom-note {
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: var(--color-4, #757575) !important;
    margin: 3px 0 0 0 !important;
    word-break: break-word !important;
  }

  /* 3. Quantity Controls (Centered under Quantity header) */
  #checkout-section-1 .cart-table-wrapper .compact-actions-wrap {
    grid-column: 3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  #checkout-section-1 .cart-table-wrapper .quantity-stepper {
    min-width: 0 !important;
    width: auto !important;
    height: 32px !important;
    padding: 0 6px !important;
    border: 1px solid #D6D0C4 !important;
    border-radius: 9999px !important;
    background: var(--color-6, #F8F9FA) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
  }

  #checkout-section-1 .cart-table-wrapper .quantity-stepper .btn-step {
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--color-1, #080808) !important;
    cursor: pointer !important;
    transition: opacity 0.15s ease !important;
  }

  #checkout-section-1 .cart-table-wrapper .quantity-stepper .btn-step:hover {
    opacity: 0.65 !important;
  }

  #checkout-section-1 .cart-table-wrapper .quantity-stepper .btn-step svg {
    display: block !important;
  }

  #checkout-section-1 .cart-table-wrapper .quantity-stepper .input-qty {
    width: 28px !important;
    min-width: 28px !important;
    height: 22px !important;
    padding: 0 !important;
    margin: 0 2px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--color-1, #080808) !important;
    -moz-appearance: textfield !important;
  }

  #checkout-section-1 .cart-table-wrapper .quantity-stepper .input-qty::-webkit-inner-spin-button,
  #checkout-section-1 .cart-table-wrapper .quantity-stepper .input-qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
  }

  #checkout-section-1 .cart-table-wrapper .btn-remove-item {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--color-4, #757575) !important;
    cursor: pointer !important;
    opacity: 0.7 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transition: opacity 0.15s ease, color 0.15s ease, transform 0.15s ease !important;
  }

  #checkout-section-1 .cart-table-wrapper .btn-remove-item:hover {
    opacity: 1 !important;
    color: var(--color-7, #AD1A24) !important;
    transform: scale(1.1) !important;
  }

  /* 4. Total Price (Right-aligned under Total header) */
  #checkout-section-1 .cart-table-wrapper .compact-price-wrap {
    grid-column: 4 !important;
    justify-self: end !important;
    text-align: right !important;
    width: 100% !important;
  }

  #checkout-section-1 .cart-table-wrapper .item-line-price {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--color-1, #080808) !important;
    white-space: nowrap !important;
    display: block !important;
  }
}

/* Cart Table Mobile Adaptation (<= 991.98px) */
@media (max-width: 991.98px) {
  #checkout-section-1 .cart-table-wrapper .cart-item-row {
    display: grid !important;
    grid-template-columns: 56px 1fr auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 8px !important;
    padding: 14px 0 !important;
    border-bottom: 1px solid var(--color-5, #EBE5D8) !important;
  }

  #checkout-section-1 .cart-table-wrapper .compact-thumb-wrap {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 56px !important;
    height: 56px !important;
  }

  #checkout-section-1 .cart-table-wrapper .cart-item-thumb {
    width: 56px !important;
    height: 56px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
  }

  #checkout-section-1 .cart-table-wrapper .compact-info-wrap {
    grid-column: 2 / span 2 !important;
    grid-row: 1 !important;
  }

  #checkout-section-1 .cart-table-wrapper .compact-actions-wrap {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  #checkout-section-1 .cart-table-wrapper .compact-price-wrap {
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: end !important;
    text-align: right !important;
  }
}

#checkout-section-1 .cart-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

#checkout-section-1 .cart-item-thumbs-grid {
  width: 48px;
  height: 48px;
  display: grid;
  grid-template-columns: 22px 22px;
  grid-template-rows: 22px 22px;
  gap: 4px;
}

#checkout-section-1 .cart-item-thumb-mini-wrap {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-sm, 2px);
  overflow: hidden;
}

#checkout-section-1 .cart-item-thumb-mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

#checkout-section-1 .cart-item-thumb-mini-wrap:hover .cart-item-thumb-mini {
  transform: scale(1.08);
}

#checkout-section-1 .cart-custom-images-gallery {
  margin-top: 8px;
}

#checkout-section-1 .cart-custom-img-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#checkout-section-1 .cart-custom-img-card:hover {
  transform: translateY(-2px);
}

#checkout-section-1 .quantity-stepper {
  height: 40px;
  border-radius: var(--radius-pill);
  min-width: 120px;
  justify-content: space-between;
}

#checkout-section-1 .quantity-stepper .btn-step {
  width: 32px;
  height: 100%;
  cursor: pointer;
  opacity: 1;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease;
}

#checkout-section-1 .quantity-stepper .btn-step:hover {
  opacity: 0.7;
}

#checkout-section-1 .quantity-stepper .btn-step:focus-visible {
  outline: 2px solid var(--color-7);
}

#checkout-section-1 .quantity-stepper .input-qty {
  width: 40px;
  height: 100%;
  font-size: var(--fs-body);
  -moz-appearance: textfield;
  border: none;
  background: transparent;
  text-align: center;
}

#checkout-section-1 .quantity-stepper .input-qty::-webkit-inner-spin-button,
#checkout-section-1 .quantity-stepper .input-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#checkout-section-1 .btn-remove-item {
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

#checkout-section-1 .btn-remove-item:hover {
  color: #dc3545;
  transform: scale(1.1);
}

#checkout-section-1 .btn-remove-item:focus-visible {
  outline: 2px solid var(--color-7);
}

#checkout-section-1 .btn-continue-shopping {
  min-width: 200px;
  height: 48px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-7) !important;
  background-color: transparent !important;
  color: var(--color-7) !important;
  white-space: nowrap;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#checkout-section-1 .btn-continue-shopping:hover,
#checkout-section-1 .btn-continue-shopping:focus-visible {
  background-color: var(--color-7) !important;
  color: var(--color-6) !important;
  border-color: var(--color-7) !important;
  text-decoration: none !important;
  opacity: 1;
}

#checkout-section-1 .btn-continue-shopping:active {
  background-color: var(--color-8) !important;
  border-color: var(--color-8) !important;
  color: var(--color-6) !important;
  transform: scale(0.98);
}

#checkout-section-1 .btn-checkout-submit {
  min-width: 180px;
  height: 48px;
  padding-left: 24px;
  padding-right: 24px;
  border-radius: var(--radius-pill);
  background-color: var(--color-7);
  color: var(--color-6);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

#checkout-section-1 .btn-checkout-submit:hover {
  opacity: 0.9;
}

#checkout-section-1 .btn-checkout-submit:focus-visible {
  outline: 2px solid var(--color-1);
}

/* Checkout Login Drawer styles extracted to checkout-login-drawer.css */

/* Responsive Overrides (max-width: 992px) */
@media (max-width: 992px) {
  #checkout-section-1 .cart-table-header {
    display: none !important;
  }

  #checkout-section-1 .cart-item-row {
    flex-direction: column !important;
    width: 100%;
    gap: 12px !important;
    padding: 16px 0;
  }

  #checkout-section-1 .cart-item-info {
    width: 100%;
  }

  #checkout-section-1 .cart-item-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px !important;
  }

  #checkout-section-1 .cart-col-quantity,
  #checkout-section-1 .cart-col-total {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  #checkout-section-1 .cart-item-thumb {
    width: 48px;
    height: 48px;
  }

  #checkout-section-1 .btn-checkout-submit,
  #checkout-section-1 .btn-continue-shopping,
  #checkout-section-1 .btn-login-submit {
    width: 100%;
  }

  #checkout-section-1 .cart-actions {
    width: 100%;
    flex-direction: column !important;
  }

  #checkout-section-1 #summary-total,
  #checkout-section-1 .item-line-price {
    white-space: nowrap;
  }

  #checkout-section-1 .checkout-login-drawer {
    padding-top: 32px;
    margin-top: 20px;
  }

  #checkout-section-1 .login-drawer-title {
    font-size: 18px;
  }
}

/* Interactive States: Loading, Updating & Removing */
.cart-item-row.is-updating {
  opacity: 0.5;
  pointer-events: none;
}

.cart-item-row.is-removing {
  opacity: 0;
  transform: scale(0.95);
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: hidden;
  border: none !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-empty-state {
  padding: 64px 16px;
  text-align: center;
}

.cart-empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  color: var(--color-4);
}

.btn-checkout-submit.is-loading {
  opacity: 0.8;
  cursor: not-allowed;
  pointer-events: none;
}

@keyframes fc-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   Seamless 4-Block Checkout Section (Figma Frame 1261155467)
   ========================================================================== */
.checkout-seamless-blocks {
  width: 100%;
  padding-bottom: 48px;
}

.checkout-block-card {
  background-color: var(--color-10, #FFFBF5);
  border: 1.5px solid #EBE5D8 !important;
  border-radius: 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 200px;
}

.checkout-block-card:hover {
  border-color: #D5CEBE !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.checkout-block-title {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-1, #080808);
}

.checkout-payment-box {
  background-color: var(--color-6, #FFFFFF);
  border: 1.5px solid #EBE5D8 !important;
  border-radius: 12px;
  padding: 16px 20px !important;
}

.checkout-delivery-box {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.checkout-check-icon {
  color: var(--color-7, #AD1A24);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-address-box {
  line-height: 1.5;
}

.btn-outline-pill {
  border: 1.5px solid #D5CEBE !important;
  border-radius: var(--radius-pill, 9999px) !important;
  background-color: transparent;
  color: var(--color-1, #080808);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 20px !important;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-outline-pill:hover {
  background-color: var(--color-9, #F9F2E8);
  border-color: var(--color-1, #080808) !important;
  color: var(--color-1, #080808);
}

#checkout-order-notes,
.checkout-textarea-field {
  background-color: var(--color-10, #FFFBF5);
  border: 1.5px solid #C4BEB3 !important;
  border-radius: 12px !important;
  min-height: 105px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 14px;
  color: var(--color-1, #080808);
  resize: vertical;
  padding: 14px 16px;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#checkout-order-notes::placeholder,
.checkout-textarea-field::placeholder {
  color: var(--color-4, #757575);
  opacity: 0.8;
}

#checkout-order-notes:focus,
.checkout-textarea-field:focus {
  border-color: var(--color-1, #080808) !important;
  background-color: #FFFFFF;
  outline: none;
  box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.06) !important;
}

/* Shipping Address Form Fields (Figma Frame 1261155467) */
.checkout-form-label {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-1, #080808);
  margin-bottom: 6px;
  display: block;
}

.checkout-input-field,
.checkout-select-field {
  width: 100%;
  height: 48px;
  background-color: var(--color-10, #FFFBF5);
  border: 1.5px solid #C4BEB3 !important;
  border-radius: 12px !important;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  color: var(--color-1, #080808);
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.checkout-input-field::placeholder {
  color: var(--color-4, #757575);
  opacity: 0.8;
}

.checkout-input-field:focus,
.checkout-select-field:focus {
  border-color: var(--color-1, #080808) !important;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.06) !important;
}

.checkout-select-field {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23757575' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 12px 8px !important;
  padding-right: 38px !important;
  cursor: pointer;
}

/* Phone Input Group with Country Prefix */
.checkout-phone-input-group {
  width: 100%;
  height: 48px;
  background-color: var(--color-10, #FFFBF5);
  border: 1.5px solid #C4BEB3 !important;
  border-radius: 12px !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.checkout-phone-input-group:focus-within {
  border-color: var(--color-1, #080808) !important;
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.06) !important;
}

.checkout-phone-prefix-wrap {
  border-right: 1.5px solid #C4BEB3;
  height: 100%;
  display: flex;
  align-items: center;
}

.checkout-phone-prefix-select {
  height: 100%;
  border: none !important;
  background-color: transparent !important;
  padding: 0 8px 0 12px;
  font-size: 13.5px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-weight: 600;
  color: var(--color-1, #080808);
  outline: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

.checkout-phone-field {
  border: none !important;
  border-radius: 0 !important;
  height: 100% !important;
  background-color: transparent !important;
  padding-left: 12px !important;
  box-shadow: none !important;
}

.checkout-phone-field:focus {
  background-color: transparent !important;
  box-shadow: none !important;
}

.btn-place-order-submit {
  min-width: 170px;
  height: 48px;
  padding: 0 32px;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.btn-place-order-submit:hover {
  background-color: var(--color-8, #FE372C) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(173, 26, 36, 0.3);
}

.checkout-edit-drawer {
  background-color: var(--color-6, #FFFFFF);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid #EBE5D8;
}

/* Saved Address Selector Styles */
.checkout-address-selector-group {
  background-color: var(--color-9, #F9F2E8);
  border: 1px solid #E4DDD1;
  border-radius: 12px;
  padding: 12px 14px;
  transition: all 0.2s ease;
}

.checkout-address-selector-group:focus-within {
  border-color: var(--color-1, #080808);
  background-color: #FFFFFF;
}

#checkout-saved-address-select {
  background-color: var(--color-6, #FFFFFF);
  border: 1.5px solid #D5CEBE !important;
  font-weight: 500;
  font-size: 13.5px;
}

#checkout-saved-address-select:focus {
  border-color: var(--color-7, #AD1A24) !important;
}

#checkout-address-count-badge {
  background-color: var(--color-9, #F9F2E8);
  padding: 3px 10px;
  border-radius: var(--radius-pill, 9999px);
  border: 1px solid #E4DDD1;
  font-size: 12px;
}

/* Custom Request Details Callout Box */
.cart-custom-desc-box {
  background-color: #FAF8F5;
  border: 1px solid #E5DFD5;
  border-left: 3px solid #141414;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
}

.cart-custom-desc-header {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 4px;
}

.cart-custom-desc-header svg {
  flex-shrink: 0;
  color: #64748B;
}

.cart-custom-desc-text {
  font-size: 14px;
  line-height: 1.5;
  color: #1E293B;
  font-weight: 500;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ==========================================================================
   Checkout Payment Details Info Box (Compact & Theme Font)
   ========================================================================== */
.checkout-payment-info-container {
  width: 100%;
}

.payment-info-panel-inner {
  background-color: var(--color-6, #FFFFFF);
  border: 1.5px solid var(--color-5, #EBE5D8);
  border-radius: 12px;
  padding: 22px 24px 26px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
}

.payment-info-header {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-4, #666666);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--color-5, #EBE5D8);
}

.payment-meta-table {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
}

.payment-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 13px;
  line-height: 1.4;
}

.payment-meta-label {
  color: var(--color-4, #666666);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
}

.payment-meta-val {
  color: var(--color-1, #080808);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
}

.payment-meta-val.is-mono {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--color-1, #080808);
}

.payment-meta-note {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-4, #666666);
  background-color: var(--color-10, #FFFBF5);
  border: 1px dashed var(--color-5, #EBE5D8);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
}

.payment-qr-wrap {
  text-align: center;
  margin: 10px auto;
  padding: 10px;
  background: #FFFFFF;
  border: 1px solid var(--color-5, #EBE5D8);
  border-radius: 10px;
  max-width: 150px;
}

.payment-qr-wrap img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.payment-qr-wrap .payment-qr-caption {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 11px;
  color: var(--color-4, #666666);
  margin-top: 6px;
  margin-bottom: 0;
}

/* Stripe Card Element Styling */
#stripe-card-element.stripe-card-element-box {
  min-height: 48px;
  padding: 13px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

#stripe-card-element.StripeElement--focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Deposit Breakdown Box Styling */
.deposit-breakdown-box {
  background: var(--color-10, #FFFBF5);
  border: 1px solid var(--color-5, #EBE5D8);
  border-radius: 10px;
  padding: 14px 18px !important;
}

.deposit-summary-row {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
}

/* ==========================================================================
   Payment Methods Stacked List (Figma design — image 1)
   Rows show radio + name + right-side logo. Selected row expands its details
   inline while unselected rows collapse. Keeps the existing JS hooks
   (input[name="selected_payment_gateway"] + .payment-method-item.is-active).
   ========================================================================== */
.checkout-payment-methods-list {
  width: 100%;
}

.payment-method-item .pm-header {
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  min-height: 56px;
  padding: 12px 16px !important;
}

.payment-method-item .pm-header:hover {
  border-color: #C4BEB3 !important;
}

.payment-method-item .pm-radio-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.payment-method-item .pm-radio-visual {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #C4BEB3;
  background-color: var(--color-6, #FFFFFF);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.payment-method-item.is-active .pm-radio-visual {
  border-color: var(--color-7, #AD1A24);
  background-color: var(--color-7, #AD1A24);
}

.payment-method-item.is-active .pm-radio-visual::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-6, #FFFFFF);
}

.payment-method-item .pm-name {
  font-size: 15px;
  line-height: 1.2;
}

.payment-method-item .pm-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
}

.payment-method-item .pm-logo img {
  max-height: 26px;
  width: auto;
  object-fit: contain;
  display: block;
}

.payment-method-item.is-active .pm-header {
  border-color: var(--color-7, #AD1A24) !important;
  background-color: var(--color-6, #FFFFFF) !important;
  box-shadow: 0 1px 0 rgba(173, 26, 36, 0.02);
}

.payment-method-item.has-details.is-active .pm-header {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.payment-method-item .pm-details {
  background-color: var(--color-6, #FFFFFF);
  border: 1.5px solid var(--color-7, #AD1A24);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  padding: 14px 20px 18px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  color: var(--color-1, #080808);
  animation: pm-details-in 0.18s ease-out;
}

@keyframes pm-details-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-method-item .pm-details .pm-desc {
  font-size: 13.5px;
  line-height: 1.5;
}

.payment-method-item .pm-details .pm-check-address {
  font-size: 14px;
  line-height: 1.55;
}

.payment-method-item .pm-details .pm-check-note {
  font-size: 12px;
  line-height: 1.5;
}

/* ==========================================================================
   Shipping Address — compact read-only summary + Change Address toggle
   ========================================================================== */
.checkout-address-readonly {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  padding-top: 2px;
}

.checkout-address-readonly .fs-body {
  font-size: 15px;
}

.checkout-address-readonly .fs-small {
  font-size: 13.5px;
  line-height: 1.5;
}

.checkout-address-form-wrap {
  animation: pm-details-in 0.2s ease-out;
}

.checkout-address-form-wrap .form-group {
  margin-bottom: 0 !important;
}

.checkout-address-form-wrap .checkout-form-label {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--color-1, #080808) !important;
  margin-bottom: 3px !important;
  display: block;
}

.checkout-address-form-wrap .checkout-input-field,
.checkout-address-form-wrap .checkout-select-field,
.checkout-address-form-wrap .checkout-phone-field {
  height: 38px !important;
  min-height: 38px !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  background-color: #FFFFFF !important;
}

.checkout-address-form-wrap .checkout-phone-prefix-select {
  height: 38px !important;
  font-size: 12px !important;
}

.checkout-address-form-actions {
  padding-top: 4px;
}

.btn-save-address {
  min-height: 34px !important;
  height: 34px !important;
  font-size: 12px !important;
  padding: 4px 18px !important;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-save-address:hover {
  background-color: var(--color-8, #FE372C) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(173, 26, 36, 0.25);
}

#btn-cancel-address-form {
  min-height: 34px !important;
  height: 34px !important;
  font-size: 12px !important;
  padding: 4px 14px !important;
  cursor: pointer;
}

.checkout-address-readonly.is-collapsed {
  display: none !important;
}

/* ==========================================================================
   Delivery block — shipping-fee disclaimer note
   ========================================================================== */
.checkout-delivery-box .delivery-fee-note {
  font-size: 12.5px;
  line-height: 1.5;
  border-top: 1px dashed var(--color-5, #EBE5D8);
  padding-top: 10px;
  margin-top: 12px !important;
}

.checkout-delivery-box .delivery-brand-logo img {
  display: block;
  max-height: 22px;
  width: auto;
}

/* ==========================================================================
   Split Stripe card fields — visually match the checkout form inputs so
   the mounted Stripe Elements look native.
   ========================================================================== */
.stripe-input-shell {
  display: flex;
  align-items: center;
  padding: 0 16px !important;
  min-height: 48px;
  height: 48px;
  cursor: text;
}

.stripe-input-shell .__PrivateStripeElement,
.stripe-input-shell iframe {
  width: 100%;
}

.stripe-input-shell.StripeElement--focus {
  border-color: var(--color-1, #080808) !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(8, 8, 8, 0.06) !important;
}

.stripe-input-shell.StripeElement--invalid {
  border-color: var(--color-7, #AD1A24) !important;
}

/* Split Expiration Date & CVC row vertical alignment */
.stripe-expiry-cvc-row {
  display: flex;
}

.stripe-expiry-cvc-row .form-group {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.stripe-expiry-cvc-row .checkout-form-label {
  min-height: 20px;
  line-height: 1.4;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Credit-card processing-fee note */
.pm-fee-note {
  color: var(--color-7, #AD1A24);
  font-weight: 500;
  line-height: 1.4;
}

/* ==========================================================================
   Wire Transfer panel — 2-column bank / account grid (Figma image 6)
   ========================================================================== */
.pm-wire-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  align-items: start;
}

.pm-wire-block+.pm-wire-block {
  margin-top: 14px;
}

.pm-wire-title {
  font-size: 14.5px;
  line-height: 1.35;
}

.pm-wire-lines {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}

.pm-wire-kv {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.5;
}

.pm-wire-kv+.pm-wire-kv {
  margin-top: 4px;
}

.pm-wire-kv-label {
  font-size: 13px;
}

.pm-wire-kv-val.is-mono {
  letter-spacing: 0.02em;
}

.pm-wire-note {
  font-size: 13px;
  line-height: 1.5;
  border-top: 1px dashed var(--color-5, #EBE5D8);
  padding-top: 10px;
}

@media (max-width: 640px) {
  .pm-wire-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* Checkout Totals Summary & Recalculating State */
.checkout-totals-container {
  transition: opacity 0.2s ease;
}

.checkout-totals-container.is-recalculating {
  opacity: 0.55;
  pointer-events: none;
}

.totals-summary-row {
  font-size: 14.5px;
}

.totals-divider {
  border-top: 1px solid var(--color-5, #EBE5D8);
}

.btn-checkout-submit.is-disabled-by-recalc {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   2-Column Responsive Checkout & 100vh Single-Screen Viewport Architecture
   ========================================================================== */

/* Main Section Height and Clearance */
#checkout-section-1 {
  background-color: var(--color-6, #F8F9FA);
  min-height: 100vh;
}

#checkout-section-1 .container-1440 {
  padding-bottom: 24px !important;
}

body.admin-bar #checkout-section-1 .container-1440 {
  padding-bottom: 24px !important;
}

/* Compact Checkout Header */
.checkout-header-title {
  margin-bottom: 12px !important;
}

.cart-title-icon-wrap {
  width: 32px !important;
  height: 32px !important;
}

.cart-title-icon-wrap svg {
  width: 16px !important;
  height: 16px !important;
}

.checkout-header-title h1 {
  font-size: 19px !important;
  letter-spacing: 0.02em !important;
}

.checkout-header-title p {
  font-size: 12px !important;
  margin-top: 2px !important;
}

/* 2-Column Grid Layout */
.checkout-layout-grid {
  display: flex;
  flex-wrap: wrap;
}

.align-balance-summary {
  margin-top: 0;
  margin-bottom: 16px;
  flex-shrink: 0;
}

@media (min-width: 992px) {
  /* Suppress global CTA quote banner & newsletter on checkout to enforce 100vh app view without window scrolling */
  body.page-id-595 #cta-banner-global,
  body.page-id-595 #section-8,
  body:has(#checkout-section-1) #cta-banner-global,
  body:has(#checkout-section-1) #section-8,
  body:has(.checkout-section) #cta-banner-global,
  body:has(.checkout-section) #section-8 {
    display: none !important;
    visibility: hidden !important;
  }

  body.page-id-595,
  body:has(#checkout-section-1) {
    overflow: hidden !important;
    height: 100vh !important;
  }

  #checkout-section-1 {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  #checkout-section-1 .container-1440 {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 124px !important;
    padding-bottom: 40px !important;
    box-sizing: border-box;
  }

  body.admin-bar #checkout-section-1 .container-1440 {
    padding-top: 156px !important;
    padding-bottom: 40px !important;
  }

  .cart-conflict-alert {
    flex-shrink: 0;
  }

  .checkout-layout-grid {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
  }

  .checkout-col-main {
    flex: 0 0 58%;
    max-width: 58%;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #8C827A #EBE5D8;
    padding-right: 8px;
  }

  body.admin-bar .checkout-col-main {
    max-height: 100%;
  }

  .checkout-col-main::-webkit-scrollbar {
    width: 8px !important;
    display: block !important;
  }

  .checkout-col-main::-webkit-scrollbar-track {
    background: #EBE5D8 !important;
    border-radius: 9999px !important;
  }

  .checkout-col-main::-webkit-scrollbar-thumb {
    background-color: #8C827A !important;
    border-radius: 9999px !important;
  }

  .checkout-col-main::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-7, #AD1A24) !important;
  }

  .checkout-col-sidebar {
    flex: 0 0 42%;
    max-width: 42%;
    align-self: flex-start;
    max-height: 100%;
  }

  /* Sticky Sidebar: Stays pinned within viewport height */
  .checkout-sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 15;
  }

  body.admin-bar .checkout-sidebar-sticky {
    top: 0;
  }

  /* Card fits 100% within viewport height (100vh) */
  .checkout-summary-card {
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--color-5) transparent;
  }

  body.admin-bar .checkout-summary-card {
    max-height: calc(100vh - 152px);
  }
}

@media (min-width: 1200px) {
  .checkout-col-main {
    flex: 0 0 59%;
    max-width: 59%;
  }

  .checkout-col-sidebar {
    flex: 0 0 41%;
    max-width: 41%;
  }
}

/* Mobile & Tablet Ordering (< 992px) */
@media (max-width: 991.98px) {
  #checkout-section-1 {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
  }

  #checkout-section-1 .container-1440 {
    height: auto !important;
    padding-top: calc(104px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 24px !important;
  }

  body.admin-bar #checkout-section-1 .container-1440 {
    padding-top: calc(136px + env(safe-area-inset-top, 0px)) !important;
  }

  .checkout-col-main {
    max-height: none !important;
    overflow: visible !important;
  }

  .checkout-col-sidebar {
    order: -1;
    margin-bottom: 16px;
  }

  .checkout-sidebar-sticky {
    position: static !important;
  }

  .checkout-summary-card {
    max-height: none !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    margin-bottom: 0 !important;
    transition: all 0.25s ease;
  }

  /* Interactive Order Summary Accordion Header on Mobile */
  #checkout-summary-toggle {
    cursor: pointer !important;
    user-select: none;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    transition: margin-bottom 0.2s ease, padding-bottom 0.2s ease;
  }

  #checkout-summary-toggle.is-expanded {
    border-bottom: 1px solid #EBE5D8 !important;
    padding-bottom: 10px !important;
    margin-bottom: 10px !important;
  }

  .checkout-summary-collapse-body {
    display: none;
    animation: pm-details-in 0.2s ease-out;
  }

  .checkout-summary-collapse-body.is-open {
    display: block !important;
  }

  .checkout-summary-chevron {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #checkout-summary-toggle.is-expanded .checkout-summary-chevron {
    transform: rotate(180deg);
  }

  /* Lift floating actions cleanly above the sticky checkout bar */
  body:has(#checkout-mobile-sticky-bar) .floating-actions,
  .floating-actions {
    bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
    transition: bottom 0.25s ease;
  }
}

@media (max-width: 782px) {
  body.admin-bar #checkout-section-1 .container-1440 {
    padding-top: calc(150px + env(safe-area-inset-top, 0px)) !important;
  }
}

/* Desktop Defaults (>= 992px) */
@media (min-width: 992px) {
  #checkout-summary-toggle {
    cursor: default !important;
    pointer-events: none !important;
  }

  .checkout-summary-collapse-body {
    display: block !important;
  }

  .checkout-mobile-sticky-bar {
    display: none !important;
  }
}

/* Mobile Sticky Bottom Bar Styling */
.checkout-mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 9999;
  background-color: rgba(255, 251, 245, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid #EBE5D8;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
}

.checkout-sticky-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.checkout-mobile-sticky-bar .sticky-bar-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-4, #757575);
}

.checkout-mobile-sticky-bar .sticky-bar-amount {
  font-size: 19px;
  color: var(--color-7, #AD1A24);
}

.checkout-mobile-sticky-bar .btn-place-order-submit {
  width: auto !important;
  max-width: 65% !important;
  min-width: 140px;
  height: 44px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  box-shadow: 0 4px 14px rgba(173, 26, 36, 0.25);
  flex-shrink: 0;
}

@media (max-width: 390px) {
  .checkout-mobile-sticky-bar .btn-place-order-submit {
    min-width: 120px;
    padding: 0 12px !important;
    font-size: 12px !important;
    gap: 4px !important;
  }
  .checkout-mobile-sticky-bar .sticky-bar-amount {
    font-size: 17px !important;
  }
}

/* Sticky Summary Card Styling */
.checkout-summary-card {
  background-color: var(--color-10, #FFFBF5);
  border: 1.5px solid #EBE5D8 !important;
  border-radius: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.checkout-summary-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid #EBE5D8 !important;
  padding-bottom: 8px !important;
  margin-bottom: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.checkout-summary-header h2 {
  margin: 0 !important;
  line-height: 1.2 !important;
}

.checkout-summary-header .checkout-summary-items-count,
#checkout-order-summary-count-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: var(--color-1, #080808) !important;
  color: #FFFFFF !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
  margin: 0 0 0 auto !important;
  box-shadow: none !important;
  pointer-events: auto !important;
  width: auto !important;
  min-width: unset !important;
  height: auto !important;
}

/* Compact Scrollable Cart Items in Sidebar (Rock-Solid Visible Scrollbar) */
#checkout-section-1 .checkout-col-sidebar .checkout-summary-items {
  max-height: 280px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  padding-right: 6px !important;
  scrollbar-width: thin !important;
  scrollbar-color: var(--color-5, #C4BEB3) transparent !important;
}

@media (min-width: 992px) {
  #checkout-section-1 .checkout-col-sidebar .checkout-summary-items {
    max-height: clamp(260px, calc(100vh - 470px), 380px) !important;
  }

  body.admin-bar #checkout-section-1 .checkout-col-sidebar .checkout-summary-items {
    max-height: clamp(240px, calc(100vh - 500px), 360px) !important;
  }
}

#checkout-section-1 .checkout-col-sidebar .checkout-summary-items::-webkit-scrollbar {
  width: 5px !important;
  display: block !important;
}

#checkout-section-1 .checkout-col-sidebar .checkout-summary-items::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04) !important;
  border-radius: 9999px !important;
}

#checkout-section-1 .checkout-col-sidebar .checkout-summary-items::-webkit-scrollbar-thumb {
  background-color: var(--color-5, #C4BEB3) !important;
  border-radius: 9999px !important;
}

#checkout-section-1 .checkout-col-sidebar .checkout-summary-items::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-4, #757575) !important;
}

/* 2-Row Structured Item Grid inside Sidebar */
#checkout-section-1 .checkout-col-sidebar .cart-item-row,
.checkout-col-sidebar .cart-item-row {
  display: grid !important;
  grid-template-columns: 48px minmax(0, 1fr) auto !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  column-gap: 12px !important;
  row-gap: 6px !important;
  padding: 10px 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

#checkout-section-1 .checkout-col-sidebar .cart-item-row + .cart-item-row,
.checkout-col-sidebar .cart-item-row + .cart-item-row {
  border-top: 1px dashed var(--color-5, #EBE5D8) !important;
}

/* 1. Thumbnail Column: spans 2 rows on left */
#checkout-section-1 .checkout-col-sidebar .compact-thumb-wrap,
.checkout-col-sidebar .compact-thumb-wrap {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  width: 48px !important;
  height: 48px !important;
  align-self: start !important;
  flex-shrink: 0 !important;
}

#checkout-section-1 .checkout-col-sidebar .cart-item-thumb,
.checkout-col-sidebar .cart-item-thumb {
  width: 48px !important;
  height: 48px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  display: block !important;
}

/* 2. Product Title & Subtitle/Specs: Row 1 spanning across cols 2 & 3 (full remaining width) */
#checkout-section-1 .checkout-col-sidebar .compact-info-wrap,
.checkout-col-sidebar .compact-info-wrap {
  grid-column: 2 / span 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  padding-right: 4px !important;
}

#checkout-section-1 .checkout-col-sidebar .compact-title-line,
.checkout-col-sidebar .compact-title-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}

#checkout-section-1 .checkout-col-sidebar .product-title,
.checkout-col-sidebar .product-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  color: var(--color-1, #080808) !important;
  margin: 0 !important;
}

#checkout-section-1 .checkout-col-sidebar .product-subtitle,
#checkout-section-1 .checkout-col-sidebar .product-specs,
#checkout-section-1 .checkout-col-sidebar .cart-custom-note,
.checkout-col-sidebar .product-subtitle,
.checkout-col-sidebar .product-specs,
.checkout-col-sidebar .cart-custom-note {
  font-size: 12px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  color: var(--color-4, #757575) !important;
  margin: 2px 0 0 0 !important;
}

/* 3. Stepper & Trash Controls: Row 2, Column 2 (left-aligned under title) */
#checkout-section-1 .checkout-col-sidebar .compact-actions-wrap,
.checkout-col-sidebar .compact-actions-wrap {
  grid-column: 2 !important;
  grid-row: 2 !important;
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  justify-content: flex-start !important;
  justify-self: start !important;
  gap: 8px !important;
  margin-top: 2px !important;
}

/* Snug, Compact Stepper Box (no excess width or gap) */
#checkout-section-1 .checkout-col-sidebar .quantity-stepper {
  min-width: 0 !important;
  width: auto !important;
  height: 24px !important;
  padding: 0 4px !important;
  border: 1px solid #D6D0C4 !important;
  border-radius: 9999px !important;
  background: var(--color-6, #F8F9FA) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
}

#checkout-section-1 .checkout-col-sidebar .quantity-stepper .btn-step {
  width: 16px !important;
  min-width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--color-1, #080808) !important;
  cursor: pointer !important;
  opacity: 1 !important;
  transition: opacity 0.15s ease !important;
}

#checkout-section-1 .checkout-col-sidebar .quantity-stepper .btn-step:hover {
  opacity: 0.65 !important;
}

#checkout-section-1 .checkout-col-sidebar .quantity-stepper .btn-step svg {
  display: block !important;
  width: 8px !important;
  height: 8px !important;
}

#checkout-section-1 .checkout-col-sidebar .quantity-stepper .input-qty {
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin: 0 2px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-align: center !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--color-1, #080808) !important;
  -moz-appearance: textfield !important;
}

#checkout-section-1 .checkout-col-sidebar .quantity-stepper .input-qty::-webkit-inner-spin-button,
#checkout-section-1 .checkout-col-sidebar .quantity-stepper .input-qty::-webkit-outer-spin-button {
  -webkit-appearance: none !important;
  margin: 0 !important;
}

/* Trash Icon in Row 2 next to stepper */
#checkout-section-1 .checkout-col-sidebar .btn-remove-item {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--color-4, #757575) !important;
  cursor: pointer !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: visible !important;
  z-index: 5 !important;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease !important;
}

#checkout-section-1 .checkout-col-sidebar .cart-item-row:hover .btn-remove-item,
#checkout-section-1 .checkout-col-sidebar .cart-item-row:focus-within .btn-remove-item {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#checkout-section-1 .checkout-col-sidebar .btn-remove-item:hover {
  color: var(--color-7, #AD1A24) !important;
}

/* Touch screens: keep trash icon accessible without requiring hover */
@media (hover: none) {
  #checkout-section-1 .checkout-col-sidebar .btn-remove-item {
    opacity: 0.65 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

/* 4. Line Price: Row 2, Column 3 (right-aligned) */
#checkout-section-1 .checkout-col-sidebar .compact-price-wrap,
.checkout-col-sidebar .compact-price-wrap {
  grid-column: 3 !important;
  grid-row: 2 !important;
  justify-self: end !important;
  align-self: center !important;
  text-align: right !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

#checkout-section-1 .checkout-col-sidebar .item-line-price,
.checkout-col-sidebar .item-line-price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--color-1, #080808) !important;
  white-space: nowrap !important;
  display: block !important;
}

/* Reset 220px desktop width rule from line 133 */
#checkout-section-1 .checkout-col-sidebar .cart-col-quantity {
  width: auto !important;
}

/* Tighten Totals inside Sidebar */
.checkout-col-sidebar .checkout-totals-container {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin-top: 2px !important;
  margin-bottom: 2px !important;
  border-color: #EBE5D8 !important;
}

.checkout-col-sidebar .totals-summary-row {
  margin-bottom: 3px !important;
  font-size: 12.5px !important;
}

.checkout-col-sidebar .totals-summary-row .fs-small,
.checkout-col-sidebar .totals-summary-row .fs-body {
  font-size: 12.5px !important;
}

.checkout-col-sidebar .totals-divider {
  margin-top: 5px !important;
  margin-bottom: 5px !important;
  border-color: #EBE5D8 !important;
}

.checkout-col-sidebar .deposit-summary-row {
  margin-bottom: 3px !important;
  font-size: 12.5px !important;
}

.checkout-col-sidebar [data-totals-key="deposit_amount"] .fs-h5,
.checkout-col-sidebar [data-totals-key="total_due_today"] .fs-body,
.checkout-col-sidebar [data-totals-key="total_due_today"] .fs-h5 {
  font-size: 13.5px !important;
  font-weight: 700 !important;
}

.checkout-col-sidebar [data-totals-key="deposit_amount"] #summary-total,
.checkout-col-sidebar [data-totals-key="total_due_today"] #summary-total {
  font-size: 17.5px !important;
  font-weight: 800 !important;
  color: var(--color-7, #AD1A24) !important;
}

/* Primary CTA Button in Sidebar */
.checkout-col-sidebar .btn-place-order-submit,
.checkout-col-sidebar .btn-checkout-submit {
  width: 100% !important;
  height: 44px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  border-radius: 9999px !important;
  background-color: var(--color-7, #AD1A24) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(173, 26, 36, 0.25) !important;
  transition: all 0.2s ease !important;
}

.checkout-col-sidebar .btn-place-order-submit:hover,
.checkout-col-sidebar .btn-checkout-submit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(173, 26, 36, 0.35) !important;
}

/* Left Column Tightening for Viewport Fit */
.checkout-col-main .checkout-block-card {
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background-color: var(--color-10, #FFFBF5);
  border: 1.5px solid #EBE5D8 !important;
  min-height: auto !important;
}

.checkout-col-main .checkout-block-title {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.checkout-col-main .pm-header {
  min-height: 38px !important;
  height: 38px !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
}

.checkout-col-main .payment-method-item.is-active .pm-header {
  border-radius: 8px !important;
}

.checkout-col-main .payment-method-item.has-details.is-active .pm-header {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.checkout-col-main .pm-name {
  font-size: 13px !important;
}

.checkout-col-main .pm-radio-visual {
  width: 16px !important;
  height: 16px !important;
}

.checkout-col-main .pm-radio-visual::after {
  width: 6px !important;
  height: 6px !important;
}

.checkout-col-main .pm-logo {
  height: 20px !important;
}

.checkout-col-main .pm-logo img {
  max-height: 18px !important;
}

.checkout-col-main .pm-details {
  padding: 10px 14px 12px !important;
  border-radius: 0 0 8px 8px !important;
}

.checkout-col-main .pm-desc {
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  margin-bottom: 8px !important;
}

.checkout-col-main .pm-wire-grid {
  gap: 8px 16px !important;
}

.checkout-col-main .pm-wire-title {
  font-size: 12px !important;
}

.checkout-col-main .pm-wire-lines {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.checkout-col-main .pm-wire-kv {
  font-size: 11.5px !important;
  padding: 2px 0 !important;
}

.checkout-col-main .pm-wire-note {
  font-size: 11.5px !important;
  margin-top: 6px !important;
  padding-top: 6px !important;
}

/* Checkout Accordion System (Blocks 02, 03, 04 - Closed by Default, Sleek & Compact) */
.checkout-accordion-group {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.checkout-col-main .checkout-accordion-card,
.checkout-accordion-card {
  padding: 0 !important;
  background-color: var(--color-10, #FFFBF5) !important;
  border: 1.5px solid #EBE5D8 !important;
  border-radius: 12px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  min-height: auto !important;
}

.checkout-accordion-card:hover {
  border-color: #D6D0C4 !important;
}

.checkout-accordion-header {
  cursor: pointer !important;
  outline: none !important;
  padding: 0 14px !important;
  min-height: 38px !important;
  height: 38px !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background-color 0.15s ease;
  user-select: none;
}

.checkout-accordion-header:hover {
  background-color: rgba(0, 0, 0, 0.015) !important;
}

.checkout-accordion-header .checkout-block-title {
  margin: 0 !important;
  line-height: 1.2 !important;
  font-size: 13px !important;
}

.checkout-accordion-card.is-open {
  border-color: #D6D0C4 !important;
}

.checkout-accordion-card.is-open .checkout-accordion-header {
  border-bottom: 1px solid #EBE5D8 !important;
  margin-bottom: 10px !important;
}

.checkout-accordion-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  color: var(--color-4, #757575) !important;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.checkout-accordion-card.is-open .checkout-accordion-arrow {
  transform: rotate(180deg) !important;
  color: var(--color-1, #080808) !important;
}

.checkout-accordion-preview {
  font-size: 11.5px !important;
  color: var(--color-4, #757575) !important;
  font-family: inherit;
}

.checkout-accordion-inner {
  padding: 0 14px 12px 14px !important;
  animation: checkoutAccordionFadeIn 0.2s ease-out;
}

@keyframes checkoutAccordionFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkout-col-main #checkout-order-notes {
  height: auto !important;
  min-height: 70px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  background-color: #FFFFFF !important;
  resize: vertical !important;
}

.checkout-col-main .checkout-delivery-box {
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

.checkout-delivery-box .delivery-fee-note {
  border-top: 1px dashed #EBE5D8;
  padding-top: 8px;
  margin-top: 8px !important;
}

.checkout-col-main .checkout-address-readonly {
  font-size: 12.5px !important;
}

.checkout-col-main .btn-change-address {
  font-size: 11.5px !important;
  padding: 4px 12px !important;
}

/* 256-Bit SSL Encrypted Notice */
.checkout-ssl-notice {
  font-size: 10.5px !important;
  letter-spacing: 0.01em;
  opacity: 0.75;
  line-height: 1.2 !important;
}

.checkout-ssl-notice svg {
  width: 11px !important;
  height: 11px !important;
  flex-shrink: 0;
  opacity: 0.85;
}