/**
 * Dealer Quick Order App checkout drawer styles.
 */

.dqoa-checkout-panel {
  position: fixed;
  top: 0;
  right: -480px;
  z-index: 999999;
  width: 460px;
  max-width: 100vw;
  height: 100vh;
  background: #ffffff;
  box-shadow: -24px 0 70px rgba(17, 24, 39, 0.22);
  padding: 30px;
  overflow-y: auto;
  transition: right 0.28s ease;
}

.dqoa-checkout-panel.dqoa-is-open {
  right: 0;
}

.dqoa-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dqoa-checkout-header h3 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  color: var(--dqoa-dark);
}

#dqoa-close-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border: 1px solid var(--dqoa-red);
  border-radius: 12px;
  background: #ffffff;
  color: var(--dqoa-red);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

#dqoa-close-checkout:hover {
  background: var(--dqoa-red);
  color: #ffffff;
}

.dqoa-checkout-summary,
.dqoa-payment-methods,
.dqoa-shipping-methods,
.dqoa-order-extra-fields {
  border-top: 1px solid var(--dqoa-border);
  padding-top: 22px;
  margin-top: 22px;
}

.dqoa-checkout-summary h4,
.dqoa-payment-methods h4,
.dqoa-shipping-methods h4,
.dqoa-order-extra-fields h4 {
  margin: 0 0 16px;
  font-size: 28px;
  line-height: 1;
  color: var(--dqoa-dark);
}

#dqoa-checkout-cart-summary .dqoa-cart-item {
  padding: 14px;
  border-radius: 16px;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-header strong {
  font-size: 17px;
}

#dqoa-checkout-cart-summary .dqoa-cart-qty {
  height: 48px;
  font-size: 20px;
}

#dqoa-checkout-cart-summary .dqoa-cart-subtotal {
  font-size: 20px;
}

#dqoa-checkout-cart-summary .dqoa-cart-total {
  padding: 18px;
  border-radius: 16px;
  font-size: 24px;
}

.dqoa-checkout-status {
  margin-top: 18px;
}

.dqoa-checkout-warning,
.dqoa-checkout-success {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  margin-bottom: 10px;
}

.dqoa-checkout-warning {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.dqoa-checkout-success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.dqoa-checkout-address-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--dqoa-dark);
  color: #ffffff;
  font-size: 16px;
}

.dqoa-checkout-address-link:hover {
  background: var(--dqoa-red);
  color: #ffffff;
}

.dqoa-payment-option,
.dqoa-shipping-option {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--dqoa-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dqoa-payment-option:hover,
.dqoa-shipping-option:hover {
  border-color: var(--dqoa-red);
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.dqoa-payment-option:has(input:checked),
.dqoa-shipping-option:has(input:checked) {
  border-color: var(--dqoa-red);
  background: #fff1f2;
}

.dqoa-payment-option input,
.dqoa-shipping-option input {
  width: auto;
  margin: 0;
}

.dqoa-payment-option span,
.dqoa-shipping-option strong {
  font-size: 18px;
  color: var(--dqoa-dark);
}

.dqoa-payment-note {
  margin: 10px 0 0;
  color: var(--dqoa-muted);
  font-size: 15px;
  line-height: 1.45;
}

.dqoa-shipping-option-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
}

.dqoa-shipping-option-content span {
  color: var(--dqoa-dark);
  font-size: 18px;
}

.dqoa-field-label {
  display: block;
  margin-bottom: 16px;
  font-size: 18px;
  color: var(--dqoa-dark);
}

.dqoa-field-label input,
.dqoa-field-label textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--dqoa-border);
  border-radius: 14px;
  padding: 14px 16px;
  background: #ffffff;
  color: var(--dqoa-dark);
  font-size: 17px;
  outline: none;
}

.dqoa-field-label input:focus,
.dqoa-field-label textarea:focus {
  border-color: var(--dqoa-red);
  box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.08);
}

.dqoa-field-label textarea {
  min-height: 120px;
  resize: vertical;
}

#dqoa-place-order-btn {
  width: 100%;
  height: 58px;
  margin-top: 22px;
  border-radius: 12px;
  background: var(--dqoa-red);
  color: #ffffff;
  border: 1px solid var(--dqoa-red);
  font-size: 20px;
}

#dqoa-place-order-btn:hover {
  background: var(--dqoa-red-dark);
  border-color: var(--dqoa-red-dark);
}
/**
 * Checkout drawer cart summary compact layout.
 */
#dqoa-checkout-cart-summary .dqoa-cart-item {
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-header {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 12px;
  align-items: start;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-header strong {
  font-size: 16px;
  line-height: 1.25;
}

#dqoa-checkout-cart-summary .dqoa-remove-cart-item {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 10px;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

#dqoa-checkout-cart-summary .dqoa-cart-qty {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  font-size: 18px;
}

#dqoa-checkout-cart-summary .dqoa-cart-subtotal {
  font-size: 18px;
  white-space: nowrap;
}

#dqoa-checkout-cart-summary .dqoa-cart-total {
  padding: 18px;
  border-radius: 16px;
  font-size: 22px;
}
/**
 * Checkout totals summary.
 */
.dqoa-checkout-totals {
  margin-top: 18px;
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
}

.dqoa-checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  color: #374151;
  font-size: 16px;
}

.dqoa-checkout-total-row strong {
  color: #111820;
  font-size: 17px;
}

.dqoa-checkout-grand-total {
  margin-top: 8px;
  padding: 16px;
  border-radius: 16px;
  background: #111820;
  color: #ffffff;
}

.dqoa-checkout-grand-total span,
.dqoa-checkout-grand-total strong {
  color: #ffffff;
}
/**
 * Checkout drawer cart item layout fix.
 */
#dqoa-checkout-cart-summary .dqoa-cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #edf2f7;
  margin-bottom: 12px;
}

#dqoa-checkout-cart-summary .dqoa-cart-product-image,
#dqoa-checkout-cart-summary .dqoa-cart-product-image img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 10px;
  margin-bottom: 12px;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-header strong {
  font-size: 17px;
  line-height: 1.2;
  font-weight:100;
}

#dqoa-checkout-cart-summary .dqoa-cart-item-body {
  display: grid;
  grid-template-columns: 116px minmax(70px, auto);
  gap: 12px;
  align-items: center;
}

#dqoa-checkout-cart-summary .dqoa-cart-qty-control {
  display: grid;
  grid-template-columns: 30px 42px 30px;
  width: 102px;
  height: 34px;
  border-radius: 999px;
}

#dqoa-checkout-cart-summary .dqoa-cart-qty-btn {
  height: 34px;
  font-size: 14px;
}

#dqoa-checkout-cart-summary .dqoa-cart-qty {
  width: 42px;
  height: 34px;
  font-size: 15px;
}

#dqoa-checkout-cart-summary .dqoa-cart-subtotal {
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
}

#dqoa-checkout-cart-summary .dqoa-remove-cart-item {
  border: 0 !important;
  background: transparent !important;
  color: #374151 !important;
  font-size: 24px !important;
}
