/* ===================================================
   Direct Checkout BD — style.css
   =================================================== */

/* Wrapper */
.dcbd-wrapper {
    margin: 28px 0;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    overflow: hidden;
    font-family: 'SolaimanLipi', 'Hind Siliguri', Arial, sans-serif;
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    background: #fff;
    max-width: 520px;
}

/* Header */
.dcbd-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ff6b35, #f7c948);
    padding: 16px 22px;
}
.dcbd-header .dcbd-icon { font-size: 22px; }
.dcbd-header h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .3px;
}

/* Body */
.dcbd-body { padding: 22px 22px 18px; }

/* Row */
.dcbd-row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dcbd-row label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}
.dcbd-row .req { color: #e53935; }

.dcbd-row input[type="text"],
.dcbd-row input[type="tel"],
.dcbd-row textarea,
.dcbd-row select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
    box-sizing: border-box;
    font-family: inherit;
}
.dcbd-row input:focus,
.dcbd-row textarea:focus,
.dcbd-row select:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255,107,53,.12);
    outline: none;
    background: #fff;
}
.dcbd-row textarea { resize: vertical; min-height: 60px; }

/* Quantity */
.dcbd-qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
}
.dcbd-qty-btn {
    width: 38px; height: 38px;
    border: 1.5px solid #ddd;
    background: #f0f0f0;
    font-size: 20px; line-height: 1;
    cursor: pointer;
    border-radius: 8px 0 0 8px;
    transition: background .15s;
    font-weight: 700;
    color: #555;
}
.dcbd-qty-btn:last-child { border-radius: 0 8px 8px 0; }
.dcbd-qty-btn:hover { background: #ff6b35; color: #fff; border-color: #ff6b35; }
#dcbd_qty {
    width: 52px; height: 38px;
    text-align: center;
    border-left: none; border-right: none;
    border-radius: 0;
    font-size: 15px; font-weight: 700;
    background: #fff;
}

/* Summary box */
.dcbd-summary {
    background: #fff8f2;
    border: 1.5px solid #ffd9c0;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 18px 0 14px;
}
.dcbd-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    padding: 4px 0;
}
.dcbd-summary-row + .dcbd-summary-row {
    border-top: 1px dashed #f0c8a0;
    margin-top: 5px;
    padding-top: 8px;
}
.dcbd-total {
    font-size: 17px !important;
    font-weight: 700;
    color: #222 !important;
    border-top: 2px solid #ff6b35 !important;
    margin-top: 8px !important;
    padding-top: 10px !important;
}
.dcbd-total span:last-child { color: #e53935; }

/* Error */
.dcbd-error {
    background: #fff0f0;
    border: 1.5px solid #ffb3b3;
    border-radius: 8px;
    color: #c0392b;
    font-size: 13px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

/* Confirm button */
.dcbd-confirm-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .3px;
    transition: opacity .2s, transform .1s;
    font-family: inherit;
    box-shadow: 0 3px 12px rgba(40,167,69,.25);
}
.dcbd-confirm-btn:hover  { opacity: .93; transform: translateY(-1px); }
.dcbd-confirm-btn:active { transform: translateY(0); }
.dcbd-confirm-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success */
.dcbd-success {
    background: #f0fff4;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    margin-top: 14px;
}
.dcbd-tick { font-size: 36px; display: block; margin-bottom: 8px; }
.dcbd-success p {
    margin: 0;
    font-size: 14px;
    color: #155724;
    font-weight: 600;
    line-height: 1.6;
}

/* Note */
.dcbd-note {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin: 12px 0 0;
}

/* Loading spinner on button */
.dcbd-confirm-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dcbd-spin .6s linear infinite;
    vertical-align: middle;
    margin-left: 10px;
}
@keyframes dcbd-spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 480px) {
    .dcbd-wrapper { border-radius: 10px; }
    .dcbd-body { padding: 16px; }
    .dcbd-header h3 { font-size: 17px; }
}
