body.woocommerce-checkout {
    background-color: #faf9f6 !important;
}

.kamakhya-checkout-page {
    width: 100%;
    max-width: 1400px !important;
    margin: 60px auto;
    padding: 0 var(--site-gutter) !important;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
    color: #333;
}

.kamakhya-checkout-breadcrumb {
    display: flex;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 50px;
    color: #666;
}

.kamakhya-checkout-breadcrumb span.active {
    color: #5d1a1a;
    font-weight: 600;
}

.kamakhya-checkout-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    width: 100%;
}

/* Left Section: Formsama */
.kamakhya-checkout-forms {
    flex: 1;
}

.kamakhya-checkout-section {
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.kamakhya-checkout-section-title,
.summary-title {
    font-family: 'Jost', sans-serif !important;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #282c3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.kamakhya-checkout-section-title small {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px;
    color: #888;
    font-weight: normal;
}

.kamakhya-checkout-section-title small a {
    color: #333;
    text-decoration: underline;
}

.kamakhya-form-row {
    margin-bottom: 20px;
}

.kamakhya-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.kamakhya-input-field {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fff;
}

.kamakhya-input-field:focus {
    border-color: #5d1a1a;
    box-shadow: 0 0 0 2px rgba(93, 26, 26, 0.05);
    outline: none;
}

.kamakhya-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    margin-top: 15px;
    color: #666;
}

/* Payment Sectionama */
.kamakhya-payment-methods {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.kamakhya-payment-method {
    border-bottom: 1px solid #eee;
}

.kamakhya-payment-method:last-child {
    border-bottom: none;
}

.kamakhya-payment-method-header {
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    background: #fff;
}

.kamakhya-payment-method-header input[type="radio"] {
    accent-color: #5d1a1a;
}

.kamakhya-payment-method-label {
    flex: 1;
    font-weight: 500;
}

.kamakhya-payment-method-icons img {
    height: 20px;
    opacity: 0.7;
}

.kamakhya-payment-method-details {
    display: none;
    padding: 25px;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.kamakhya-payment-method.active .kamakhya-payment-method-details {
    display: block;
}

.kamakhya-payment-method.active .kamakhya-payment-method-header {
    background: #fdf8f8;
}

.checkout-bank-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
}

.kamakhya-payment-method-details .material-icons-outlined {
    margin-right: 4px;
    color: #4CAF50;
}

/* Right Section: Summaryama */
.kamakhya-checkout-summary {
    width: 420px;
    background: #fff;
    padding: 35px;
    border-radius: 8px;
    position: sticky !important;
    top: 100px !important;
    align-self: flex-start;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.summary-title {
    font-family: 'Jost', sans-serif !important;
    font-size: 24px;
    margin-bottom: 25px;
}

.summary-items {
    margin-bottom: 25px;
}

.summary-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

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

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

.summary-item-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.summary-item-meta {
    font-size: 12px;
    color: #888;
}

.summary-item-price {
    font-weight: 500;
    font-size: 14px;
}

.coupon-section {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.coupon-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.coupon-btn {
    padding: 10px 20px;
    background: #eee;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.summary-rows {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 25px;
}

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

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-family: 'Jost', sans-serif !important;
    font-size: 22px;
    font-weight: 700;
    border-top: 2px solid #5d1a1a;
    padding-top: 20px;
}

.summary-total small {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px;
    color: #888;
    font-weight: normal;
}

/* Actionsama */
.checkout-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

.return-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pay-now-btn {
    background: #410b0b;
    color: #fff;
    padding: 15px 50px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.pay-now-btn:hover {
    background: #5d1a1a;
}

/* Responsiveama */
@media (max-width: 991px) {
    .kamakhya-checkout-page {
        padding: 0 !important;

    }

    .kamakhya-checkout-forms {
        padding-left: var(--site-gutter) !important;
        padding-right: var(--site-gutter) !important;
        width: 100% !important;
    }

    .kamakhya-checkout-section {
        padding: 25px var(--site-gutter);
        border-radius: 0;
        margin-bottom: 20px;
        box-shadow: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    .kamakhya-checkout-breadcrumb,
    .kamakhya-checkout-summary {
        padding-left: var(--site-gutter) !important;
        padding-right: var(--site-gutter) !important;
    }

    .kamakhya-checkout-container {
        flex-direction: column-reverse;
        /* Forms first, then summaryama */
        gap: 30px;
    }

    .kamakhya-checkout-summary {
        width: 100%;
        position: static !important;
        /* Disable sticky on mobilesama */
        margin-top: 0;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #eee;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .kamakhya-checkout-section-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .kamakhya-checkout-breadcrumb {
        font-size: 12px;
        margin-bottom: 30px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .kamakhya-input-field {
        padding: 12px 15px;
    }

    .pay-now-btn {
        width: 100%;
        padding: 18px;
    }

    .checkout-actions {
        flex-direction: column-reverse;
        gap: 25px;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .kamakhya-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .summary-title {
        font-size: 20px;
    }
}
/* Validation Styles ama */
.invalid-input {
    border-color: #ff3b30 !important;
    background-color: #fff8f8 !important;
}

.error-text {
    font-size: 11px !important;
    color: #ff3b30 !important;
    display: none;
    margin-top: 4px;
    font-weight: 500;
}

.kamakhya-form-inner-row {
    position: relative;
    display: flex;
    flex-direction: column;
}

.pay-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}


/* Thank You / Order Received Page ama */
.kamakhya-thank-you-page {
    max-width: 600px;
    margin: 80px auto;
    padding: 50px 40px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    font-family: 'Poppins', sans-serif !important;
}
.thank-you-icon {
    color: #4CAF50;
    margin-bottom: 20px;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
    transform: scale(0.5);
}
.thank-you-icon .material-icons-outlined {
    font-size: 72px;
}
@keyframes scaleIn {
    to { opacity: 1; transform: scale(1); }
}
.thank-you-title {
    font-family: 'Jost', sans-serif !important;
    font-size: 32px;
    color: #282c3f;
    margin-bottom: 12px;
    font-weight: 500;
}
.thank-you-subtitle {
    color: #666;
    margin-bottom: 35px;
    font-size: 15px;
    line-height: 1.5;
}
.thank-you-details {
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 35px;
    text-align: left;
}
.thank-you-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed #eaeaea;
}
.thank-you-detail-row:last-child {
    border-bottom: none;
}
.thank-you-label {
    color: #888;
    font-size: 14px;
}
.thank-you-value {
    color: #333;
    font-weight: 500;
    font-size: 15px;
}
.thank-you-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.6s forwards;
}
.thank-you-btn {
    padding: 15px 30px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    flex: 1;
}
.thank-you-btn.primary {
    background: #410b0b;
    color: #fff;
    border: 1px solid #410b0b;
}
.thank-you-btn.primary:hover {
    background: #5d1a1a;
    border-color: #5d1a1a;
}
.thank-you-btn.secondary {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
}
.thank-you-btn.secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@media (max-width: 480px) {
    .kamakhya-thank-you-page {
        margin: 40px 15px;
        padding: 40px 25px;
    }
    .thank-you-actions {
        flex-direction: column;
    }
    .thank-you-title {
        font-size: 26px;
    }
}
