/**
 * Copyright since 2007 PrestaShop SA and Contributors
 * PrestaShop is an International Registered Trademark & Property of PrestaShop SA
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License 3.0 (AFL-3.0)
 *
 * @author    Opticweb <support@opticweb.gr>
 * @copyright Since 2026 Opticweb
 */

/* Design Variables */
:root {
  --ow-primary: #d62852;
  --ow-primary-hover: #b81e43;
  --ow-primary-light: rgba(214, 40, 82, 0.08);
  --ow-text-color: #2b2b2b;
  --ow-text-light: #6e7a8a;
  --ow-border-color: #e2e8f0;
  --ow-bg-card: #ffffff;
  --ow-bg-body: #f8fafc;
  --ow-border-radius: 12px;
  --ow-border-radius-sm: 8px;
  --ow-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.02);
  --ow-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --ow-shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  --ow-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Layout for Checkout */
.ow-checkout-container {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ow-text-color);
  max-width: 1450px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.ow-checkout-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  gap: 30px;
}

/* Columns Split: 60% Left, 40% Right */
.ow-checkout-col-left {
  flex: 0 0 calc(60% - 15px);
  width: calc(60% - 15px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ow-checkout-col-right {
  flex: 0 0 calc(40% - 15px);
  width: calc(40% - 15px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 20px;
  height: fit-content;
}

/* Responsive Collapse to 100% on Mobile */
@media (max-width: 991px) {
  .ow-checkout-col-left,
  .ow-checkout-col-right {
    flex: 0 0 100%;
    width: 100%;
    position: static;
  }
}

/* Premium Card Design */
.ow-checkout-card {
  background-color: var(--ow-bg-card);
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius);
  padding: 24px;
  box-shadow: var(--ow-shadow-sm);
  transition: var(--ow-transition);
  position: relative;
  overflow: hidden;
}

.ow-checkout-card:hover {
  box-shadow: var(--ow-shadow);
}

.ow-checkout-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--ow-text-color);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--ow-primary-light);
  padding-bottom: 12px;
}

.ow-checkout-card-title span.number-badge {
  background-color: var(--ow-primary);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 24px;
}

@media (max-width: 576px) {
  #ow-card-address .ow-checkout-card-title {
    align-items: flex-start;
  }

  #ow-card-address .ow-checkout-card-title span.number-badge {
    margin-top: 1px;
  }
}

/* Input Fields & Forms */
.ow-form-group {
  margin-bottom: 16px;
}

.ow-form-row {
  display: flex;
  gap: 16px;
}

.ow-form-row .ow-form-group {
  flex: 1;
}

@media (max-width: 767px) {
  .ow-form-row {
    flex-direction: column;
    gap: 0;
  }
}

.ow-checkout-container label,
.ow-checkout-container .ow-form-label,
.ow-checkout-container label.ow-form-label {
  display: block !important;
  text-align: left !important;
  float: none !important;
  width: auto !important;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ow-text-color);
}

.ow-checkout-container .ow-form-group,
.ow-checkout-container .ow-form-row {
  text-align: left !important;
}

.ow-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius-sm);
  font-size: 14px;
  color: var(--ow-text-color);
  background-color: var(--ow-bg-input);
  transition: var(--ow-transition);
  box-sizing: border-box;
}

.ow-input:focus {
  outline: none;
  border-color: var(--ow-primary);
  box-shadow: 0 0 0 3px var(--ow-primary-light);
}

.ow-input-error {
  border-color: #ea3838;
}

.ow-field-error-msg {
  color: #ea3838;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* Delivery Option List styling */
.ow-carrier-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ow-carrier-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius-sm);
  cursor: pointer;
  transition: var(--ow-transition);
}

.ow-carrier-row:hover {
  border-color: var(--ow-primary);
  background-color: var(--ow-primary-light);
}

.ow-carrier-row.selected {
  border-color: var(--ow-primary);
  background-color: var(--ow-primary-light);
  box-shadow: 0 0 0 1px var(--ow-primary);
}

.ow-carrier-radio {
  margin-right: 14px;
  accent-color: var(--ow-primary);
  cursor: pointer;
}

.ow-carrier-logo {
  max-height: 35px;
  max-width: 60px;
  margin-right: 14px;
  object-fit: contain;
}

.ow-carrier-info {
  flex-grow: 1;
}

.ow-carrier-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.ow-carrier-delay {
  font-size: 12px;
  color: var(--ow-text-light);
  margin: 2px 0 0 0;
}

.ow-carrier-price {
  font-weight: 700;
  font-size: 14px;
}

/* Payment Option List styling */
.ow-payment-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ow-payment-row {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius-sm);
  cursor: pointer;
  overflow: hidden;
  transition: var(--ow-transition);
}

.ow-payment-row:hover {
  border-color: var(--ow-primary);
}

.ow-payment-row.selected {
  border-color: var(--ow-primary);
  box-shadow: 0 0 0 1px var(--ow-primary);
}

.ow-payment-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  background-color: #fff;
  transition: var(--ow-transition);
}

.ow-payment-row.selected .ow-payment-header {
  background-color: var(--ow-primary-light);
}

.ow-payment-radio {
  margin-right: 14px;
  accent-color: var(--ow-primary);
}

.ow-payment-logo {
  max-height: 25px;
  margin-right: 12px;
}

.ow-payment-title {
  font-weight: 600;
  font-size: 14px;
  flex-grow: 1;
}

.ow-payment-details {
  padding: 14px 16px;
  background-color: #fafbfc;
  border-top: 1px solid var(--ow-border-color);
  font-size: 13px;
  color: var(--ow-text-light);
  display: none;
}

.ow-payment-row.selected .ow-payment-details {
  display: block;
}

/* Terms and Conditions checkbox */
.ow-newsletter-container,
.ow-conditions-container {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
}

.ow-newsletter-container {
  margin-bottom: -10px;
}

.ow-conditions-checkbox {
  margin-top: 3px;
  accent-color: var(--ow-primary);
}

.ow-terms-link {
  color: var(--ow-primary);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.ow-terms-link:hover,
.ow-terms-link:focus-visible {
  color: var(--ow-primary-hover);
}

body.ow-terms-modal-open {
  overflow: hidden;
}

.ow-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ow-terms-modal.is-open {
  display: flex;
}

.ow-terms-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(3px);
}

.ow-terms-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  max-height: min(84vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--ow-bg-card);
  color: var(--ow-text-color);
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.ow-terms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--ow-border-color);
}

.ow-terms-modal-header h2 {
  margin: 0;
  color: var(--ow-text-color);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.ow-terms-modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ow-text-light);
  background: #f5f7fa;
  border: 1px solid var(--ow-border-color);
  border-radius: 50%;
  cursor: pointer;
}

.ow-terms-modal-close:hover,
.ow-terms-modal-close:focus-visible {
  color: var(--ow-primary);
  border-color: var(--ow-primary);
}

.ow-terms-modal-content {
  min-height: 0;
  padding: 22px;
  overflow: auto;
  color: var(--ow-text-color);
  font-size: 14px;
  line-height: 1.7;
  overscroll-behavior: contain;
}

.ow-terms-modal-content > :first-child {
  margin-top: 0;
}

.ow-terms-modal-content > :last-child {
  margin-bottom: 0;
}

.ow-terms-modal-content img,
.ow-terms-modal-content table {
  max-width: 100%;
}

.ow-terms-modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid var(--ow-border-color);
}

.ow-terms-modal-done {
  min-width: 120px;
  min-height: 42px;
  padding: 10px 20px;
  color: #fff;
  background: var(--ow-primary);
  border: 0;
  border-radius: var(--ow-input-radius);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.ow-terms-modal-done:hover,
.ow-terms-modal-done:focus-visible {
  background: var(--ow-primary-hover);
}

@media (max-width: 575px) {
  .ow-terms-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .ow-terms-modal-dialog {
    max-height: 88vh;
    border-radius: 14px;
  }

  .ow-terms-modal-header,
  .ow-terms-modal-content {
    padding: 17px;
  }

  .ow-terms-modal-footer {
    padding: 12px 17px 17px;
  }

  .ow-terms-modal-done {
    width: 100%;
  }
}

/* Free Shipping Progress Bar */
.ow-progress-container {
  margin-bottom: 20px;
  padding: 16px;
  background-color: var(--ow-bg-card);
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius);
  box-shadow: var(--ow-shadow-sm);
  transition: var(--ow-transition);
}

.ow-progress-msg {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
  line-height: 1.4;
}

.ow-progress-msg span.highlight {
  color: var(--ow-primary);
  display: inline;
  white-space: nowrap;
}

.ow-progress-bg {
  background-color: #f1f5f9;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.ow-progress-bar {
  background: linear-gradient(90deg, var(--ow-primary) 0%, #ff527b 100%);
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.ow-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Cart Summary Product List (Always Visible) */
.ow-summary-products {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
  margin-bottom: 20px;
}

/* Scrollbar styling for summary list */
.ow-summary-products::-webkit-scrollbar {
  width: 4px;
}
.ow-summary-products::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.ow-summary-products::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.ow-summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ow-summary-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--ow-border-radius-sm);
  border: 1px solid var(--ow-border-color);
  object-fit: cover;
  flex-shrink: 0;
}

.ow-summary-item-info {
  flex-grow: 1;
}

.ow-summary-item-name {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.ow-summary-item-attributes {
  font-size: 11px;
  color: var(--ow-text-light);
  margin: 0;
}

.ow-summary-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ow-text-color);
  margin-top: 4px;
}

/* Quantity controls inside cart summary */
.ow-qty-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--ow-border-color);
  border-radius: 6px;
  padding: 2px;
  background-color: #f8fafc;
}

.ow-qty-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--ow-text-light);
  border-radius: 4px;
  transition: var(--ow-transition);
}

.ow-qty-btn:hover {
  background-color: var(--ow-border-color);
  color: var(--ow-text-color);
}

.ow-qty-value {
  font-size: 12px;
  font-weight: 700;
  width: 20px;
  text-align: center;
}

.ow-item-delete {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  padding: 4px;
  border-radius: 4px;
  transition: var(--ow-transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ow-item-delete:hover {
  color: #ea3838;
  background-color: #fee2e2;
}

/* Checkout summary: keep product details readable in the narrow sidebar. */
.ow-summary-products {
  min-width: 0;
  overflow-x: hidden;
}

.ow-summary-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 8px;
  align-items: start;
}

.ow-summary-item-img {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.ow-summary-item-info {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.ow-summary-item-name,
.ow-summary-item-attributes {
  overflow-wrap: anywhere;
}

.ow-qty-controls {
  grid-column: 2;
  grid-row: 2;
  justify-self: start;
}

.ow-item-delete {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: center;
}

@media (max-width: 576px) {
  .ow-summary-products {
    max-height: none;
    padding-right: 0;
  }

  .ow-summary-item {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    column-gap: 10px;
  }

  .ow-summary-item-img {
    width: 54px;
    height: 54px;
  }

  .ow-summary-item-name {
    line-height: 1.35;
  }
}

/* Totals Breakdowns */
.ow-summary-totals {
  border-top: 1px solid var(--ow-border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.ow-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ow-text-light);
}

.ow-totals-row.final-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--ow-text-color);
  border-top: 2px dashed var(--ow-border-color);
  padding-top: 12px;
  margin-top: 4px;
}

/* Voucher/Discount section */
.ow-promo-wrapper {
  margin-bottom: 20px;
}

.ow-promo-toggle {
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ow-primary) !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.ow-promo-toggle:hover,
.ow-promo-toggle:focus,
.ow-promo-toggle:active {
  color: var(--ow-primary-hover) !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.ow-promo-form {
  display: none;
  margin-top: 10px;
  gap: 8px;
}

.ow-promo-form.active {
  display: flex;
}

.ow-promo-input {
  flex-grow: 1;
  padding: 8px 12px;
  font-size: 13px;
}

.ow-promo-btn {
  background-color: var(--ow-text-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--ow-border-radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: var(--ow-transition);
}

.ow-promo-btn:hover {
  background-color: #000;
}

/* Applied discounts tags */
.ow-applied-discounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ow-discount-tag {
  background-color: var(--ow-primary-light);
  color: var(--ow-primary);
  border: 1px solid rgba(214, 40, 82, 0.2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ow-discount-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ow-primary);
  font-size: 14px;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.ow-discount-remove:hover {
  opacity: 0.7;
}

/* Submit Button */
.ow-recaptcha-container {
  margin-top: 16px;
  text-align: center;
}

.ow-recaptcha-v2 {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

.ow-recaptcha-error {
  display: none;
  margin-top: 8px;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.ow-recaptcha-error.is-visible {
  display: block;
}

.ow-recaptcha-notice {
  margin-top: 7px;
  color: var(--ow-text-light);
  font-size: 10px;
  line-height: 1.4;
}

.ow-recaptcha-notice a {
  color: inherit;
  text-decoration: underline;
}

.ow-login-recaptcha-container {
  margin: 0 0 15px;
}

.ow-login-recaptcha-container .ow-recaptcha-v2 {
  justify-content: flex-start;
}

.ow-submit-order-btn {
  background-color: var(--ow-primary);
  color: #fff;
  border: none;
  border-radius: var(--ow-border-radius-sm);
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  width: 100%;
  cursor: pointer;
  transition: var(--ow-transition);
  box-shadow: 0 4px 10px rgba(214, 40, 82, 0.2);
}

.ow-submit-order-btn:hover {
  background-color: var(--ow-primary-hover);
  box-shadow: 0 6px 14px rgba(214, 40, 82, 0.3);
}

.ow-submit-order-btn:disabled {
  background-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

.ow-validation-summary {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #f0a6a6;
  border-left: 4px solid #dc2626;
  border-radius: var(--ow-border-radius-sm);
  background: #fff7f7;
  color: #7f1d1d;
  text-align: left;
}

.ow-validation-summary[hidden] {
  display: none !important;
}

.ow-validation-summary-title {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.ow-validation-summary-list {
  margin: 0;
  padding-left: 20px;
}

.ow-validation-summary-list li + li {
  margin-top: 5px;
}

.ow-validation-summary-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: #991b1b;
  font: inherit;
  font-weight: 600;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.ow-validation-summary-link:hover,
.ow-validation-summary-link:focus {
  color: #dc2626;
}

.ow-guided-validation-error.ow-input,
.ow-guided-validation-error input,
.ow-guided-validation-error select,
.ow-guided-validation-error textarea {
  border-color: #dc2626 !important;
}

.ow-guided-validation-error:not(.ow-input) {
  outline: 2px solid rgba(220, 38, 38, 0.35);
  outline-offset: 3px;
  border-radius: var(--ow-border-radius-sm);
}

@media (max-width: 380px) {
  .ow-recaptcha-v2 {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -8px;
  }
}

/* Loaders and Glassmorphism */
.ow-loader-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: var(--ow-border-radius);
}

.ow-loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.ow-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--ow-border-color);
  border-top: 4px solid var(--ow-primary);
  border-radius: 50%;
  animation: ow-spin 1s linear infinite;
}

@keyframes ow-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton Loading Screens */
.ow-skeleton-pulse {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Upsell Products Carousel Styles */
.ow-upsell-container {
  margin-top: 1.5rem;
}

.ow-upsell-list {
  display: grid !important;
  grid-template-columns: repeat(var(--ow-upsell-cols, 5), minmax(0, 1fr)) !important;
  gap: 15px !important;
  margin-top: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* 1 Row Grid Mode */
.ow-upsell-list.layout-grid_1 {
  display: grid !important;
  grid-template-columns: repeat(var(--ow-upsell-cols, 5), minmax(0, 1fr)) !important;
  gap: 15px !important;
  overflow: hidden !important;
}

/* 2 Rows Grid Mode */
.ow-upsell-list.layout-grid_2 {
  display: grid !important;
  grid-template-columns: repeat(var(--ow-upsell-cols, 5), minmax(0, 1fr)) !important;
  gap: 15px !important;
}

/* Carousel Mode (1 Row Horizontal Scroll with Navigation) */
.ow-upsell-list.layout-carousel {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scroll-behavior: smooth !important;
  scroll-snap-type: x mandatory !important;
  padding-bottom: 12px !important;
  gap: 15px !important;
  -webkit-overflow-scrolling: touch;
  width: 100% !important;
}

.ow-upsell-list.layout-carousel::-webkit-scrollbar {
  height: 6px;
}

.ow-upsell-list.layout-carousel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.ow-upsell-list.layout-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.ow-upsell-list.layout-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--ow-primary);
}

.ow-upsell-list.layout-carousel .ow-upsell-card {
  flex: 0 0 calc((100% - (var(--ow-upsell-cols, 5) - 1) * 15px) / var(--ow-upsell-cols, 5)) !important;
  min-width: 130px !important;
  max-width: calc((100% - (var(--ow-upsell-cols, 5) - 1) * 15px) / var(--ow-upsell-cols, 5)) !important;
  scroll-snap-align: start !important;
  box-sizing: border-box !important;
}

/* Carousel Controls (Nav Arrows) */
.ow-upsell-carousel-controls {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.ow-upsell-nav-btn {
  background: #ffffff !important;
  border: 1px solid var(--ow-border-color) !important;
  color: var(--ow-text-color) !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 0 !important;
  user-select: none !important;
}

.ow-upsell-nav-btn:hover {
  background: var(--ow-primary) !important;
  color: #ffffff !important;
  border-color: var(--ow-primary) !important;
}

/* Responsive Grid Breakpoints */
@media (max-width: 991px) {
  .ow-upsell-list,
  .ow-upsell-list.layout-grid_1,
  .ow-upsell-list.layout-grid_2 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .ow-upsell-list.layout-carousel .ow-upsell-card {
    flex: 0 0 calc((100% - 2 * 15px) / 3) !important;
    max-width: calc((100% - 2 * 15px) / 3) !important;
  }
}

@media (max-width: 576px) {
  .ow-upsell-list,
  .ow-upsell-list.layout-grid_1,
  .ow-upsell-list.layout-grid_2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .ow-upsell-list.layout-carousel .ow-upsell-card {
    flex: 0 0 calc((100% - 10px) / 2) !important;
    max-width: calc((100% - 10px) / 2) !important;
  }
}

.ow-upsell-card {
  background: var(--ow-bg-card);
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius);
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ow-upsell-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ow-shadow);
}

.ow-upsell-img-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--ow-border-radius-sm);
  margin-bottom: 8px;
}

.ow-upsell-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ow-upsell-card:hover .ow-upsell-img {
  transform: scale(1.05);
}

.ow-upsell-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ow-text-color);
  margin: 0 0 6px 0;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
}

.ow-upsell-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ow-primary);
  margin-bottom: 8px;
}

.ow-upsell-btn {
  background: var(--ow-primary);
  color: #fff;
  border: none;
  border-radius: var(--ow-border-radius-sm);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.ow-upsell-btn:hover {
  background: var(--ow-primary-hover);
}

.ow-upsell-discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: var(--ow-primary);
  color: #ffffff;
  padding: 3px 6px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 2;
  transition: background-color 0.3s ease;
}

.ow-voucher-pill {
  background-color: var(--ow-primary-light);
  color: var(--ow-primary);
  border: 1px solid var(--ow-primary);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.1s;
}

.ow-voucher-pill:hover {
  background-color: var(--ow-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.ow-checkout-page-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  font-weight: 800;
  color: var(--ow-text-color);
}
.ow-contact-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.ow-contact-address-grid .ow-form-group {
  min-width: 0;
}

.ow-contact-address-grid.ow-has-landline .ow-address1-group {
  grid-column: 1 / -1;
}

/* Country and state use one explicit grid. This prevents theme flex rules,
   intrinsic select sizing and inline display changes from shifting one field. */
.ow-checkout-container .ow-country-state-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px !important;
  row-gap: 0 !important;
  align-items: start !important;
}

.ow-checkout-container .ow-country-state-row.ow-no-state {
  grid-template-columns: minmax(0, 1fr);
}

.ow-checkout-container .ow-country-state-row > #ow-country-group,
.ow-checkout-container .ow-country-state-row:not(.ow-no-state) > #ow-state-group {
  display: grid !important;
  grid-template-rows: 19px 42px;
  row-gap: 6px;
  align-content: start;
  align-self: start;
  box-sizing: border-box;
  width: 100%;
  height: 67px !important;
  min-height: 67px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
}

.ow-checkout-container .ow-country-state-row.ow-no-state > #ow-state-group {
  display: none !important;
}

.ow-checkout-container .ow-country-state-row .ow-form-label {
  display: flex !important;
  align-items: flex-end;
  box-sizing: border-box;
  width: 100% !important;
  height: 19px !important;
  min-height: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 19px !important;
}

.ow-checkout-container .ow-country-state-row select.ow-input {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  margin: 0 !important;
}

.ow-invoice-toggle {
  margin: 16px 0 0 !important;
}

.ow-invoice-toggle .ow-invoice-checkbox-label {
  margin: 0 !important;
  line-height: 1.3;
}

.ow-invoice-toggle #ow-want-invoice {
  flex: 0 0 16px;
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  .ow-contact-address-grid,
  .ow-checkout-container .ow-country-state-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .ow-contact-address-grid {
    column-gap: 0;
  }

  .ow-checkout-container .ow-country-state-row {
    row-gap: 16px !important;
  }
}

.ow-custom-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ow-custom-field-width-100 {
  grid-column: 1 / -1;
}

.ow-custom-field-help {
  display: block;
  margin-top: 6px;
  color: var(--ow-text-light);
  font-size: 11px;
  line-height: 1.4;
}

.ow-custom-radio-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 10px 0;
}

.ow-custom-radio-list label,
.ow-custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
}

.ow-custom-radio-list input,
.ow-custom-checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--ow-primary);
}

@media (max-width: 768px) {
  .ow-custom-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-custom-field-width-50,
  .ow-custom-field-width-100 {
    grid-column: 1;
  }
}

/* Shared cart / checkout monetary summary (module-owned UI) */
.ow-shared-summary-totals {
  display: grid;
  gap: 9px;
  padding: 2px 0 18px;
}

.ow-shared-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  color: var(--ow-text-light);
  font-size: 14px;
  line-height: 1.35;
}

.ow-shared-summary-row strong {
  color: var(--ow-text-color);
  font-weight: 750;
  text-align: right;
  white-space: nowrap;
}

.ow-shared-summary-discount strong {
  color: var(--ow-primary);
}

.ow-shared-summary-row.ow-shared-summary-final {
  margin-top: 8px;
  padding-top: 15px;
  border-top: 2px dashed var(--ow-border-color);
  color: var(--ow-text-color);
  font-size: 16px !important;
  line-height: 1.35;
  font-weight: 800;
}

.ow-shared-summary-row.ow-shared-summary-final > span,
.ow-shared-summary-row.ow-shared-summary-final > strong,
.ow-shared-summary-row.ow-shared-summary-final .ow-final-total-amount {
  font-size: inherit !important;
  line-height: inherit !important;
  font-weight: 800 !important;
}

.ow-tax-inclusion-note {
  margin: -2px 0 0;
  color: var(--ow-text-light);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.4;
  text-align: right;
  opacity: 0.82;
}

.ow-shared-vouchers {
  margin: 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--ow-border-color);
}

.ow-shared-vouchers .ow-applied-discounts {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.ow-applied-discount-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(214, 40, 82, 0.2);
  border-radius: 9px;
  background: var(--ow-primary-light);
}

.ow-applied-discount-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ow-applied-discount-info strong {
  overflow-wrap: anywhere;
  color: var(--ow-text-color);
  font-size: 13px;
  line-height: 1.3;
}

.ow-applied-discount-info small {
  color: var(--ow-text-light);
  font-size: 11px;
}

.ow-applied-discount-actions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ow-primary);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.ow-applied-discount-actions .ow-discount-remove {
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: var(--ow-text-color);
}

.ow-applied-discount-actions .ow-discount-remove:hover {
  background: #f3f4f6;
  color: var(--ow-primary);
  opacity: 1;
}

.ow-available-vouchers {
  margin-bottom: 15px;
}

.ow-available-vouchers > p {
  margin: 0 0 9px;
  color: var(--ow-text-color);
  font-size: 12px;
  font-weight: 750;
}

.ow-available-voucher-list {
  display: grid;
  gap: 8px;
}

.ow-shared-vouchers .ow-voucher-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ow-border-color);
  border-radius: 9px;
  background: #fff;
  color: var(--ow-text-color);
  text-align: left;
  transform: none;
}

.ow-shared-vouchers .ow-voucher-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 650;
}

.ow-shared-vouchers .ow-voucher-pill strong {
  color: var(--ow-primary);
  font-size: 11px;
  white-space: nowrap;
}

.ow-shared-vouchers .ow-voucher-pill:hover {
  border-color: var(--ow-primary);
  background: var(--ow-primary-light);
  color: var(--ow-text-color);
  transform: none;
}

.ow-shared-vouchers .ow-promo-toggle {
  width: 100%;
  justify-content: center;
  padding: 5px 0 !important;
}

.ow-shared-vouchers .ow-promo-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.ow-shared-vouchers .ow-promo-form.active {
  display: grid;
}

.ow-promo-error {
  display: none;
  margin-top: 8px;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

body.ow-cart-enabled .ow-cart-custom-summary-host {
  overflow: visible;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Initial cart boot state: shown only while the first server summary loads. */
.ow-cart-boot-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(300px, 0.95fr);
  gap: 54px;
  width: 100%;
  margin: 0 auto;
  animation: ow-cart-boot-in 0.16s ease-out both;
}

.ow-cart-boot-card {
  overflow: hidden;
  border: 1px solid var(--ow-border-color);
  border-radius: 12px;
  background: #fff;
}

.ow-cart-boot-products {
  min-height: 330px;
  padding: 34px 40px;
}

.ow-cart-boot-line,
.ow-cart-boot-product i,
.ow-cart-boot-product span,
.ow-cart-boot-product b,
.ow-cart-boot-progress span,
.ow-cart-boot-progress b,
.ow-cart-boot-totals span,
.ow-cart-boot-totals b {
  display: block;
  border-radius: 7px;
  background: linear-gradient(90deg, #eef1f5 20%, #f8f9fb 45%, #eef1f5 70%);
  background-size: 220% 100%;
  animation: ow-cart-boot-wave 1.25s linear infinite;
}

.ow-cart-boot-title {
  width: 190px;
  height: 24px;
  margin-bottom: 32px;
}

.ow-cart-boot-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 110px;
  gap: 22px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--ow-border-color);
}

.ow-cart-boot-product i {
  width: 96px;
  height: 96px;
}

.ow-cart-boot-product span {
  width: min(300px, 85%);
  height: 18px;
}

.ow-cart-boot-product b {
  width: 100%;
  height: 38px;
}

.ow-cart-boot-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.ow-cart-boot-progress {
  padding: 20px;
}

.ow-cart-boot-progress span {
  width: 72%;
  height: 14px;
  margin-bottom: 13px;
}

.ow-cart-boot-progress b {
  width: 100%;
  height: 8px;
}

.ow-cart-boot-totals {
  display: grid;
  gap: 14px;
  padding: 30px;
}

.ow-cart-boot-totals span {
  width: 100%;
  height: 14px;
}

.ow-cart-boot-totals b {
  width: 100%;
  height: 48px;
  margin-top: 15px;
}

body#cart.ow-cart-ready .cart-grid {
  animation: ow-cart-ready-in 0.18s ease-out both;
}

@keyframes ow-cart-boot-wave {
  0% { background-position: 100% 0; }
  100% { background-position: -120% 0; }
}

@keyframes ow-cart-boot-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ow-cart-ready-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.ow-cart-page-summary {
  display: grid;
  gap: 18px;
}

.ow-cart-page-summary > .ow-progress-container,
.ow-cart-page-summary > .ow-countdown-container {
  margin: 0 !important;
}

.ow-cart-page-summary-content {
  padding: 28px 30px;
  border: 1px solid var(--ow-border-color);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.035);
}

.ow-cart-checkout-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: var(--ow-border-radius-sm);
  background: var(--ow-primary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 5px 12px rgba(36, 18, 36, 0.16);
  transition: var(--ow-transition);
}

.ow-cart-checkout-button:hover,
.ow-cart-checkout-button:focus {
  background: var(--ow-primary-hover);
  color: #fff !important;
}

@media (max-width: 767px) {
  .ow-cart-boot-skeleton {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ow-cart-boot-products {
    min-height: 360px;
    padding: 24px 18px;
  }

  .ow-cart-boot-product {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
  }

  .ow-cart-boot-product i {
    width: 76px;
    height: 76px;
  }

  .ow-cart-boot-product b {
    display: none;
  }

  .ow-cart-page-summary {
    gap: 14px;
  }

  .ow-cart-page-summary-content {
    padding: 22px 18px;
  }

  .ow-shared-summary-row {
    gap: 10px;
  }

  .ow-tax-inclusion-note {
    text-align: left;
  }

  .ow-applied-discount-row,
  .ow-shared-vouchers .ow-voucher-pill {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ow-shared-vouchers .ow-promo-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-shared-vouchers .ow-promo-btn {
    min-height: 42px;
  }
}

/* Module-owned order confirmation */
body#order-confirmation #content-hook_order_confirmation,
body#order-confirmation #content-hook_order_confirmation.ow-confirmation-hook-host {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body#order-confirmation #content.page-order-confirmation[hidden] {
  display: none !important;
}

.ow-confirmation {
  width: min(100% - 32px, 1340px);
  margin: 42px auto 56px;
  color: var(--ow-text-color);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ow-confirmation *,
.ow-confirmation *::before,
.ow-confirmation *::after {
  box-sizing: border-box;
}

.ow-confirmation-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding: 28px 30px;
  border: 1px solid #bbf7d0;
  border-radius: var(--ow-border-radius);
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 72%);
  box-shadow: var(--ow-shadow-sm);
}

.ow-confirmation-success-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 54px;
  border-radius: 50%;
  color: #ffffff;
  background: #16a34a;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.2);
}

.ow-confirmation-success-icon svg {
  width: 28px;
  height: 28px;
}

.ow-confirmation-hero-copy {
  min-width: 0;
}

.ow-confirmation-eyebrow,
.ow-confirmation-section-kicker {
  display: block;
  margin: 0 0 5px;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .075em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ow-confirmation-hero h1 {
  margin: 0 0 7px;
  color: #172033;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.15;
}

.ow-confirmation-hero-copy > p:last-child {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
}

.ow-confirmation-hero-order {
  min-width: 205px;
  padding: 15px 18px;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  background: rgba(255, 255, 255, .78);
  text-align: right;
}

.ow-confirmation-hero-order span,
.ow-confirmation-hero-order small {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.35;
}

.ow-confirmation-hero-order strong {
  display: block;
  margin: 3px 0;
  color: #172033;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .035em;
}

.ow-confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr);
  gap: 24px;
  align-items: start;
}

.ow-confirmation-main,
.ow-confirmation-sidebar {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.ow-confirmation-card {
  padding: 26px;
  border: 1px solid var(--ow-border-color);
  border-radius: var(--ow-border-radius);
  background: var(--ow-bg-card);
  box-shadow: var(--ow-shadow-sm);
}

.ow-confirmation-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--ow-border-color);
}

.ow-confirmation-card h2 {
  margin: 0;
  color: #172033;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.ow-confirmation-card .ow-confirmation-section-kicker {
  color: var(--ow-primary);
}

.ow-confirmation-count {
  flex: 0 0 auto;
  padding: 5px 10px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}

.ow-confirmation-product-list {
  display: grid;
}

.ow-confirmation-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--ow-border-color);
}

.ow-confirmation-product:first-child {
  padding-top: 0;
}

.ow-confirmation-product:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.ow-confirmation-product-image {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--ow-border-color);
  border-radius: 10px;
  color: #94a3b8;
  background: #ffffff;
}

.ow-confirmation-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ow-confirmation-product-image svg {
  width: 34px;
  height: 34px;
}

.ow-confirmation-product-copy {
  min-width: 0;
}

.ow-confirmation-product-copy a {
  color: inherit;
  text-decoration: none;
}

.ow-confirmation-product-copy h3 {
  margin: 0 0 6px;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.ow-confirmation-product-copy span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.ow-confirmation-product-total {
  color: var(--ow-primary);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.ow-confirmation-total-card > h2 {
  margin-bottom: 18px;
}

.ow-confirmation-totals,
.ow-confirmation-info-card dl,
.ow-confirmation-custom-fields dl {
  margin: 0;
}

.ow-confirmation-totals > div,
.ow-confirmation-info-card dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 7px 0;
}

.ow-confirmation-totals dt,
.ow-confirmation-info-card dt,
.ow-confirmation-custom-fields dt {
  color: #64748b;
  font-weight: 500;
}

.ow-confirmation-totals dd,
.ow-confirmation-info-card dd,
.ow-confirmation-custom-fields dd {
  margin: 0;
  color: #172033;
  font-weight: 700;
  text-align: right;
}

.ow-confirmation-discount dd {
  color: #dc2626;
}

.ow-confirmation-totals .ow-confirmation-grand-total {
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px dashed #cbd5e1;
}

.ow-confirmation-grand-total dt,
.ow-confirmation-grand-total dd {
  color: #172033;
  font-size: 17px;
  font-weight: 800;
}

.ow-confirmation-info-card dl > div {
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  border-bottom: 1px solid #f1f5f9;
}

.ow-confirmation-info-card dl > div:last-child {
  border-bottom: 0;
}

.ow-confirmation-info-card dd {
  overflow-wrap: anywhere;
}

.ow-confirmation-address-card address {
  display: grid;
  gap: 3px;
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.ow-confirmation-address-phone {
  margin-top: 7px;
  color: #172033;
  font-weight: 700;
}

.ow-confirmation-custom-fields dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.ow-confirmation-custom-fields dl > div {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f8fafc;
}

.ow-confirmation-custom-fields dt {
  margin-bottom: 4px;
  font-size: 12px;
}

.ow-confirmation-custom-fields dd {
  font-size: 13px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ow-confirmation-payment-instructions {
  margin-top: 24px;
}

.ow-confirmation-payment-instructions[hidden] {
  display: none !important;
}

#ow-confirmation-payment-return #content-hook_payment_return {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#ow-confirmation-payment-return #content-hook_payment_return > .card-block,
#ow-confirmation-payment-return #content-hook_payment_return > .card-body {
  padding: 0 !important;
}

#ow-confirmation-payment-return table {
  width: 100%;
}

#ow-confirmation-payment-return a {
  color: var(--ow-primary);
}

.ow-confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.ow-confirmation-button {
  min-width: 210px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--ow-primary);
  border-radius: var(--ow-border-radius-sm);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  transition: var(--ow-transition);
}

.ow-confirmation-button-primary {
  color: #ffffff !important;
  background: var(--ow-primary);
  box-shadow: 0 6px 14px rgba(36, 18, 36, .16);
}

.ow-confirmation-button-primary:hover,
.ow-confirmation-button-primary:focus {
  color: #ffffff !important;
  background: var(--ow-primary-hover);
}

.ow-confirmation-button-secondary {
  color: var(--ow-primary) !important;
  background: #ffffff;
}

.ow-confirmation-button-secondary:hover,
.ow-confirmation-button-secondary:focus {
  color: var(--ow-primary-hover) !important;
  border-color: var(--ow-primary-hover);
  background: var(--ow-primary-light);
}

@media (max-width: 991px) {
  .ow-confirmation {
    margin-top: 28px;
  }

  .ow-confirmation-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-confirmation-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ow-confirmation-total-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .ow-confirmation {
    width: min(100% - 24px, 620px);
    margin: 22px auto 36px;
  }

  .ow-confirmation-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding: 22px 18px;
  }

  .ow-confirmation-success-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .ow-confirmation-success-icon svg {
    width: 23px;
    height: 23px;
  }

  .ow-confirmation-hero h1 {
    font-size: 22px;
  }

  .ow-confirmation-hero-copy > p:last-child {
    font-size: 13px;
  }

  .ow-confirmation-hero-order {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }

  .ow-confirmation-card {
    padding: 20px 16px;
  }

  .ow-confirmation-product {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .ow-confirmation-product-image {
    width: 72px;
    height: 72px;
  }

  .ow-confirmation-sidebar,
  .ow-confirmation-custom-fields dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-confirmation-total-card {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .ow-confirmation-product {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ow-confirmation-product-image {
    width: 64px;
    height: 64px;
  }

  .ow-confirmation-product-total {
    grid-column: 2;
  }

  .ow-confirmation-actions {
    display: grid;
  }

  .ow-confirmation-button {
    width: 100%;
    min-width: 0;
  }
}
