/* Checkout Page Styles */

.checkout-page {
    padding: 40px 0 80px 0;
    background-color: #f8f9fc;
    min-height: 60vh;
}

.checkout-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #666;
}

.breadcrumb-item {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item.active {
    color: #4D008D;
    font-weight: 600;
}

.breadcrumb-item:hover {
    color: #4D008D;
}

.breadcrumb-separator {
    color: #999;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Checkout Steps */
.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

/* Express Checkout */
.express-checkout {
    margin-bottom: 30px;
}

.express-checkout h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.express-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.express-btn {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.express-btn.credit-card {
    background-color: #4D008D;
    color: #fff;
    border-color: #4D008D;
}

.express-btn.paypal {
    background-color: #FFC439;
    color: #000;
    border-color: #FFC439;
}

.express-btn.google-pay {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.express-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.separator {
    position: relative;
    text-align: center;
    margin: 20px 0;
}

.separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e0e0e0;
}

.separator span {
    position: relative;
    background-color: #f8f9fc;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

/* Checkout Forms */
.checkout-forms {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
}

.checkout-section {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.checkout-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.sign-in-link {
    color: #4D008D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.sign-in-link:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: border-color 0.3s;
    box-sizing: border-box;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4D008D;
    box-shadow: 0 0 0 2px rgba(77, 0, 141, 0.1);
}

.form-group input::placeholder {
    color: #999;
}

.address-search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.form-group input[type="text"]:not(#address) {
    padding-right: 15px;
}

/* Text Message Section */
.text-message-box {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.text-message-box p {
    margin: 0;
    font-size: 14px;
    color: #333;
}

.text-message-box svg {
    color: #999;
    cursor: pointer;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #333;
    margin-bottom: 15px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}

.policy-links {
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.policy-links a {
    color: #4D008D;
    text-decoration: none;
}

.policy-links a:hover {
    text-decoration: underline;
}

/* Shipping Options */
.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shipping-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.shipping-option:hover {
    border-color: #4D008D;
}

.shipping-option input[type="radio"] {
    margin-right: 15px;
    cursor: pointer;
}

.shipping-option input[type="radio"]:checked + .shipping-option-content {
    color: #4D008D;
}

.shipping-option:has(input[type="radio"]:checked) {
    border-color: #4D008D;
    background-color: #f8f9fc;
}

.shipping-option-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shipping-name {
    font-weight: 500;
    color: #333;
}

.shipping-price {
    font-weight: 600;
    color: #333;
}

/* Payment Methods */
.payment-methods {
    margin-top: 20px;
}

.payment-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.payment-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.payment-tab:hover {
    color: #4D008D;
}

.payment-tab.active {
    color: #4D008D;
    border-bottom-color: #4D008D;
}

.payment-content {
    display: none;
    padding: 20px 0;
}

.payment-content.active {
    display: block;
}

.payment-note {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Apple Pay Button */
.apple-pay-button {
    width: 100%;
    height: 50px;
    background-color: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-bottom: 15px;
}

.apple-pay-button:hover {
    opacity: 0.8;
}

.apple-pay-button::before {
    content: "Apple Pay";
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* PayPal Button Container */
#paypal-button-container {
    min-height: 50px;
}

/* Checkout Navigation */
.checkout-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn-return {
    color: #4D008D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-return:hover {
    color: #6B1FA0;
    text-decoration: underline;
}

.btn-continue {
    background-color: #FF1493;
    color: #fff;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-continue:hover {
    background-color: #E0117A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.3);
}

/* Checkout Summary */
.checkout-summary {
    background-color: #fff;
    border-radius: 12px;
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.summary-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    max-height: 400px;
}

.checkout-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-item-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    background-color: #f8f8f8;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-quantity {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background-color: #4D008D;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.checkout-item-details {
    flex: 1;
    min-width: 0;
}

.checkout-item-name {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin: 0 0 4px 0;
    line-height: 1.4;
}

.checkout-item-variant {
    font-size: 12px;
    color: #666;
    margin: 0 0 4px 0;
}

.checkout-item-price {
    font-size: 13px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.summary-fixed {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
}

/* Discount Section */
.discount-section {
    margin-bottom: 20px;
}

.discount-section .form-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.discount-section input {
    flex: 1;
}

.btn-apply {
    padding: 12px 20px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-apply:hover {
    background-color: #d0d0d0;
}

.discount-note {
    font-size: 12px;
    color: #666;
    margin: 0;
    padding: 10px;
    background-color: #f8f9fc;
    border-radius: 6px;
}

/* GOVX Section */
.govx-section {
    background-color: #f8f9fc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.govx-logo {
    background-color: #FF6B35;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.govx-section p {
    margin: 0;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Summary Details */
.summary-details {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: #333;
}

.summary-row svg {
    color: #999;
    cursor: help;
    margin-left: 4px;
}

.summary-row.total {
    border-top: 1px solid #e0e0e0;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.currency {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-left: 5px;
}

#itemCount {
    font-weight: 400;
    color: #666;
}

/* Promo Section */
.promo-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.promo-section h3 {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.promo-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: flex-start;
}

.promo-item:last-child {
    margin-bottom: 0;
}

.promo-item svg {
    flex-shrink: 0;
    color: #4D008D;
    margin-top: 2px;
}

.promo-item strong {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 4px;
}

.promo-item p {
    font-size: 12px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

.promo-item a {
    color: #4D008D;
    text-decoration: none;
}

.promo-item a:hover {
    text-decoration: underline;
}

/* Checkout Footer Links */
.checkout-footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.checkout-footer-links a {
    color: #4D008D;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s;
}

.checkout-footer-links a:hover {
    color: #6B1FA0;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .checkout-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-summary {
        position: static;
        max-height: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .checkout-page {
        padding: 20px 0 60px 0;
    }
    
    .checkout-forms {
        padding: 20px;
    }
    
    .express-buttons {
        flex-direction: column;
    }
    
    .checkout-breadcrumb {
        font-size: 12px;
        flex-wrap: wrap;
    }
    
    .checkout-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-return,
    .btn-continue {
        width: 100%;
        text-align: center;
    }
    
    .payment-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .payment-tab {
        border-bottom: 1px solid #e0e0e0;
        border-radius: 0;
    }
    
    .payment-tab.active {
        border-bottom-color: #4D008D;
    }
}
