/* Direct Product Checkout */

.dpc-buynow-wrapper {
    margin-top: 10px;
    display: inline-block;
}

.dpc-buynow-btn {
    display: inline-block !important;
    width: auto !important;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

/* Modal overlay */
.dpc-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dpc-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

/* Modal box */
.dpc-modal-box {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 32px 28px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1;
}

.dpc-modal-box h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 700;
}

.dpc-cod-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.dpc-modal-close {
    position: absolute;
    top: 14px; right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.dpc-modal-close:hover {
    color: #000;
}

/* Form */
.dpc-form-row {
    display: flex;
    gap: 14px;
}

.dpc-form-row .dpc-form-group {
    flex: 1;
}

.dpc-form-group {
    margin-bottom: 14px;
}

.dpc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.dpc-form-group input,
.dpc-form-group select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
    background-color: #fff;
}

.dpc-form-group input:focus,
.dpc-form-group select:focus {
    border-color: #333;
    outline: none;
}

.dpc-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

.dpc-submit-btn {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    margin-top: 6px;
    background-color: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.dpc-submit-btn:hover:not(:disabled) {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

.dpc-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .dpc-modal-box {
        padding: 22px 16px;
        border-radius: 0;
        max-height: 100vh;
    }

    .dpc-form-row {
        flex-direction: column;
        gap: 0;
    }
}
