/* Checkout Steps Styles */
.checkout-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 24px;
    margin-top: 36px;
}
.checkout-step-vertical {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0.4;
}
.checkout-step-vertical.active {
    opacity: 1;
}
.checkout-step-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
.checkout-step-icon-circle i {
    color: #fff;
    font-size: 12px;
}
.checkout-step-labels {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}
.checkout-step-title-vertical {
    font-size: 16px;
    color: #222;
    font-weight: 600;
    line-height: 1.1;
}
.checkout-step-subtitle-vertical {
    font-size: 22px;
    color: #111;
    font-weight: bold;
    line-height: 1;
    margin-top: -2px;
}

/* Address Section */
.checkout-address {
    padding: 60px 120px;
}

/* Payment page container spacing to avoid sticking to screen edges */
.checkout-payment .container {
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
  .checkout-payment .container {
      padding-left: 24px;
      padding-right: 24px;
  }
}

@media (min-width: 992px) {
  .checkout-payment .container {
      padding-left: 32px;
      padding-right: 32px;
  }
}
.checkout-address h3 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 24px;
    font-weight: 600;
}
.address-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.address-card-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: relative;
    transition: box-shadow 0.2s;
}
.address-card-modern:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
/* Equal height utility for payment page cards */
.equal-height-card {
  height: 100%;
}
.address-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    cursor: pointer;
}
.address-radio-label input[type="radio"] {
    accent-color: #000;
    width: 22px;
    height: 22px;
    margin-top: 6px;
}
.address-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.title-row {
    display: flex;
    justify-content: center;
    align-items: center;
}
.title-row p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.title-row .badge-modern {
    background: #000;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 5px;
    margin-left: 4px;
    font-weight: 500;
    letter-spacing: 1px;
}
.address-details {
    display: flex;
    flex-direction: column;
    margin-top: 6px;
}
.address-details p {
    margin: 4px 0;
    font-size: 14px;
    color: #333;
    font-size: 18px;
    font-weight: 500;
}
.address-actions {
    display: flex;
    flex-direction: row;
    gap: 36px;
    align-items: center;
    margin-right: 12px;
    margin-top: 0;
    height: 80%;
    justify-content: center;
}
.icon-edit, .icon-delete {
    font-size: 18px;
    color: #222;
    cursor: pointer;
    transition: color 0.2s;
}
.icon-edit:hover { color: #007bff; }
.icon-delete:hover { color: #e74c3c; }

/* Add New Address Button */
.add-new-address-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 36px 0 0 0;
    width: 100%;
    position: relative;
}
.add-address-divider {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}
.add-address-divider::before,
.add-address-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1.5px dashed #bbb;
    margin: 0 16px;
}
.add-address-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}
.add-address-circle:hover {
    background: #333;
}
.add-address-label {
    font-size: 16px;
    color: #222;
    font-weight: 500;
    margin-top: 4px;
    text-align: center;
}

/* Next and Back Buttons */
.form-actions-modern {
    display: flex;
    justify-content: flex-end;
    gap: 24px;
    margin-top: 36px;
    margin-bottom: 32px;
}
.btn-back,
.btn-next {
    min-width: 200px;
    padding: 18px 0;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    transition: all 0.18s;
    outline: none;
    border: 2px solid #111;
    cursor: pointer;
    box-sizing: border-box;
    letter-spacing: 0.5px;
    display: inline-block;
}
.btn-back {
    background: #fff;
    color: #111;
}
.btn-back:hover {
    background: #f6f6f6;
}
.btn-next {
    background: #111;
    color: #fff;
    border: 2px solid #111;
}
.btn-next:hover {
    background: #222;
    color: #fff;
}

/* Modal Styles */
.address-modal {
    display: none;
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
}
.address-modal[style*="block"] {
    display: flex !important;
}
.address-form-modern {
    background: #fff;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    width: 50%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.modal-header {
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}
.model-header h4 {
    margin: 0;
    font-weight: 600;
    font-size: 18px;
}
.close-modal-btn {
    background: none;
    border:none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    line-height: 1;
}
.modal-subheader {
    background: #eaf8fc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
}
.subheader-text {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #111;
}
.autofill-btn {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}
.autofill-btn:hover {
    border-color: #000;
}
.address-form-modern form {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.address-form-modern input,
.address-form-modern select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    outline: none;
    transition: border 0.2s;
}
.address-form-modern input:focus,
.address-form-modern select:focus {
    border: 1.5px solid #000;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 8px;
}
.btn-cancel-modal {
    background: #fff;
    color: #222;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 15px;
    cursor: pointer;
    transition: border 0.2s, color 0.2s;
}
.btn-cancel-modal:hover {
    border: 1.5px solid #000;
    color: #000;
}
.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.badge {
    background-color: #000;
    color: #fff;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 4px;
}
.add-new-address {
    margin-top: 20px;
    text-align: center;
}

/* Shipping UI */
.shipment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 48px;
}
.shipment-card {
    display: flex;
    align-items: center;
    background: #fafbfc;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px 32px;
    gap: 24px;
    cursor: pointer;
    transition: box-shadow 0.2s, border 0.2s;
}
.shipment-card input[type="radio"] {
    accent-color: #000;
    width: 22px;
    height: 22px;
    margin-right: 18px;
}
.shipment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.shipment-title {
    font-weight: 600;
    font-size: 17px;
    margin-bottom: 2px;
}
.shipment-desc {
    color: #888;
    font-size: 15px;
}
.shipment-date {
    font-weight: 500;
    font-size: 15px;
    color: #222;
    min-width: 120px;
    text-align: right;
}
.shipment-date.inactive {
    color: #b0b0b0;
}
.shipment-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}
.form-actions-modern {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

/* Payment UI */
.summary-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 8px #eee; padding: 32px 28px; }
.summary-title { font-weight: 600; font-size: 22px; margin-bottom: 24px; }
.summary-products { margin-bottom: 24px; }
.summary-product { display: flex; align-items: center; gap: 16px; background: #d0d6c3; border-radius: 8px; padding: 12px 16px; margin-bottom: 10px; }
.summary-product-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.summary-product-info { flex: 1; }
.summary-product-name { font-weight: 500; font-size: 18px; }
.summary-product-qty { color: #000; font-size: 16px; }
.summary-product-price { font-weight: bold; font-size: 18px; }
.summary-section { margin-bottom: 24px; }
.summary-label { color: #888; font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.summary-value { font-size: 20px; font-weight: 500; }
.summary-row { display: flex; justify-content: space-between; margin: 16px 0; font-size: 16px; }
.summary-row.subtotal { font-weight: 500; }
.summary-row.discount { color: #888; font-weight: 500; }
.summary-row.discount .discount { color: #000; font-weight: 500; }
.summary-row.gst { color: #888; font-weight: 500; }
.summary-row.gst .gst { color: #000; font-weight: 500; }
.summary-row.shipping { color: #888; font-weight: 500; }
.summary-row.shipping .shipping { color: #000; font-weight: 500; }
.summary-total { font-size: 18px; font-weight: 500;}
