/* --- Force Font Globally for Plugin --- */
#pc-modal-overlay,
#pc-modal-overlay * {
    font-family: 'Anek Bangla', sans-serif !important;
}

/* --- Modal Overlay --- */
.pc-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999999; /* Higher z-index */
    display: flex; justify-content: center; align-items: center;
    backdrop-filter: blur(2px);
}

.pc-modal {
    width: 95%; max-width: 450px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    overflow: hidden;
    animation: pcSlideUp 0.3s ease-out;
    max-height: 90vh;
    display: flex; flex-direction: column;
}

@keyframes pcSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* --- Header --- */
.pc-modal-header {
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex; justify-content: space-between; align-items: center;
}
.pc-modal-header h3 { margin: 0; font-size: 18px; font-weight: 700; color: #111; }
.pc-close {
    background: #f3f4f6; border: none; width: 32px; height: 32px;
    border-radius: 50%; font-size: 20px;
    cursor: pointer; color: #4b5563; display: flex; align-items: center; justify-content: center;
}
.pc-close:hover { background: #e5e7eb; color: #ef4444; }

/* --- Body --- */
.pc-modal-body { padding: 20px; overflow-y: auto; }

/* --- Fields --- */
.pc-field { margin-bottom: 15px; }
.pc-field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: #374151; }
.pc-field label .req { color: #dc2626; }

.pc-input-group {
    display: flex; border: 1px solid #d1d5db; border-radius: 4px;
    overflow: hidden; background: #fff; transition: all 0.2s;
}
.pc-input-group:focus-within { border-color: #ff6b00; box-shadow: 0 0 0 1px #ff6b00; }
.pc-input-icon {
    background: #f9fafb; width: 40px; display: flex; align-items: center; justify-content: center;
    border-right: 1px solid #d1d5db; color: #6b7280;
}
.pc-input-icon svg { width: 18px; height: 18px; fill: #6b7280; }
.pc-input-group input {
    border: none; width: 100%; padding: 10px 12px; font-size: 15px; outline: none; color: #111;
}

/* --- Shipping --- */
.pc-shipping-section { margin-top: 20px; border: 1px solid #eee; border-radius: 6px; padding: 5px; }
.pc-radio-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-bottom: 1px solid #eee; cursor: pointer;
}
.pc-radio-option:last-child { border-bottom: none; }
.pc-radio-option input { margin-right: 10px; accent-color: #ff6b00; width: 16px; height: 16px; }
.pc-radio-info { font-size: 15px; color: #1f2937; font-weight: 500; }
.pc-radio-price { font-weight: 600; color: #16a34a; font-size: 14px; }

/* --- Coupon --- */
.pc-coupon-wrap { display: flex; gap: 10px; margin-top: 15px; }
.pc-coupon-wrap input { flex-grow: 1; border: 1px solid #d1d5db; border-radius: 4px; padding: 8px 10px; outline: none; }
.pc-coupon-wrap button { background: #333; color: #fff; border: none; padding: 0 15px; border-radius: 4px; cursor: pointer; font-weight: 600; }
#pc_coupon_message { font-size: 13px; margin-top: 5px; }

/* --- Summary & Quantity --- */
.pc-summary-box {
    margin-top: 15px; padding: 10px; background: #f9fafb;
    border-radius: 6px; display: flex; align-items: center; gap: 12px; border: 1px solid #eee;
}
.pc-summary-box img { width: 50px; height: 50px; border-radius: 4px; object-fit: cover; }
.pc-prod-details { flex-grow: 1; }
.pc-prod-name { font-weight: 600; font-size: 14px; color: #374151; display: block; line-height: 1.2; }
.pc-prod-price { font-size: 13px; color: #6b7280; }

/* Quantity Selector */
.pc-quantity {
    display: flex; align-items: center; border: 1px solid #d1d5db; border-radius: 4px; background: #fff;
}
.pc-qty-btn {
    width: 25px; height: 25px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; background: #f3f4f6; font-weight: bold; user-select: none;
}
.pc-qty-btn:hover { background: #e5e7eb; }
.pc-qty-val {
    width: 30px; text-align: center; font-size: 14px; font-weight: 600; border-left: 1px solid #d1d5db; border-right: 1px solid #d1d5db;
}

/* --- Totals --- */
.pc-totals-area { margin-top: 15px; padding-top: 10px; border-top: 1px dashed #e5e7eb; }
.pc-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 5px; color: #4b5563; }
.pc-row.total { font-weight: 800; font-size: 18px; color: #111; margin-top: 8px; border-top: 1px solid #eee; padding-top: 8px; }

/* --- Submit Button --- */
.pc-submit-btn {
    width: 100%;
    /* Default Colors, can be overridden by inline styles */
    background: #ff6b00; color: #fff;
    font-size: 16px; font-weight: 700; padding: 14px;
    border: none; border-radius: 4px; cursor: pointer;
    margin-top: 15px; text-transform: uppercase;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.2s;
}
.pc-submit-btn:hover { opacity: 0.9; }

.pc-footer-alert { text-align: center; font-size: 13px; color: #16a34a; margin-top: 10px; font-weight: 500; }

/* --- Trigger Button --- */
.pc-trigger-btn {
    width: 100%; background: #ff6b00; color: #fff; border: none; padding: 14px 20px;
    font-size: 18px; font-weight: 700; border-radius: 5px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 15px; box-shadow: 0 4px 6px rgba(255, 107, 0, 0.2); transition: 0.3s;
}
.pc-trigger-btn:hover { transform: translateY(-2px); }