/* Checkout Page Custom Styles */

/* Base Layout Container */

/* Section Headings */
.checkout-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Shipping Address Card */
.address-card {
    background-color: #18604a;
    /* Theme Primary Color */
    color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.address-card p {
    margin-bottom: 8px;
    color: #ffffff;
}

.address-card .icon-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.address-card .edit-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    color: #ffffff;
    background: transparent;
    border: none;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.address-card .edit-btn i {
    margin-right: 4px;
}

/* Payment Mode Cards */
.payment-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.payment-card.active {
    border: 1px solid #18604a;
    /* Theme Primary Color */
    box-shadow: 0 0 0 1px #18604a;
}

.payment-card.active-solid {
    background-color: #18604a;
    /* Theme Primary Color */
    border-color: #18604a;
    color: #ffffff;
}

.payment-card.active-solid p,
.payment-card.active-solid .payment-title {
    color: #ffffff !important;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-icon-wrap {
    width: 48px;
    height: 48px;
    background-color: #f7f7f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #171717;
}

.payment-card.active .payment-icon-wrap {
    background-color: #18604a;
    color: #ffffff;
}

.payment-card.active-solid .payment-icon-wrap {
    background-color: #ffffff;
    color: #18604a;
}

.payment-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: #171717;
}

.payment-subtitle {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 0;
}

.payment-check-icon {
    font-size: 24px;
    color: #e0e0e0;
}

.payment-card.active .payment-check-icon {
    color: #18604a;
    /* Theme Primary Color */
}

.payment-card.active-solid .payment-check-icon {
    display: none;
    /* Hide on solid if desired or style differently */
}

/* Order Summary */
.order-summary-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 20px;
}

.order-summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.summary-item-details {
    flex-grow: 1;
}

.summary-item-title {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #171717;
}

.summary-item-qty {
    font-size: 0.85rem;
    color: #000;
    margin-bottom: 4px;
}

.summary-item-price {
    font-weight: 600;
    color: #171717;
}

.summary-totals {
    border-top: 1px dashed #e0e0e0;
    padding-top: 24px;
    margin-top: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row .label {
    color: #000;
}

.summary-row .value {
    font-weight: 500;
    color: #171717;
}

.summary-row .value.free {
    color: #18604a;
    /* Theme Primary Color */
}

.summary-total-row {
    border-top: 1px dashed #e0e0e0;
    padding-top: 20px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.summary-total-row .label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #171717;
}

.summary-total-row .value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #171717;
}

.btn-place-order {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    border-radius: 8px;
    font-weight: 600;
}

.secure-checkout-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #18604a;
    /* Theme Primary Color */
    font-size: 0.85rem;
    margin-top: 16px;
    font-weight: 500;
}

/* Add New Address Button */
.btn-add-address {
    background-color: transparent;
    border: 1px solid #e0e0e0;
    color: #171717;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-address:hover {
    background-color: #f7f7f7;
    border-color: #d0d0d0;
}

/* Modal adjustments */
.checkout-modal .modal-content {
    border-radius: 12px;
    border: none;
}

.checkout-modal .modal-header {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 24px;
}

.checkout-modal .modal-title {
    font-weight: 600;
}

.checkout-modal .modal-body {
    padding: 24px;
}

.checkout-modal .form-control {
    border-radius: 8px;
}

@media(max-width:767px) {
    .checkout-section-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 20px;
        /* display: flex; */
        flex-direction: column;
    }

    .order-summary-card {
        padding: 20px;
    }
}