#ipc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999999;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#ipc-popup {
    width: 450px;
    max-width: 95%;
    max-height: 92vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    position: relative;
    box-sizing: border-box;
}

.ipc-notice {
    background: #000000;
    color: #ffffff;
    padding: 10px 30px 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;
    margin-bottom: 12px;
}

#ipc-close-popup {
    position: absolute;
    right: 10px;
    top: 21px;
    width: 22px;
    height: 22px;
    background: rgba(255,255,255,0.9);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    font-weight: bold;
    z-index: 5;
}

.ipc-product-top {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

#ipc-product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.ipc-product-info {
    flex: 1;
}

#ipc-product-name {
    font-size: 14px;
    margin: 0 0 2px;
    line-height: 1.3;
    color: #1e293b;
    font-weight: 700;
}

#ipc-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}

/* জোরপূর্বক সমান সাইজ করার ফিক্স */
#ipc-popup .ipc-form-box input[type="text"],
#ipc-popup .ipc-form-box input[type="tel"],
#ipc-popup input[name="address"],
#ipc-popup select {
    width: 100% !important;
    height: 50px !important;
    max-height: 50px !important;
    margin-bottom: 10px !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    border: 1px solid #ddd !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    background: #fff !important;
    color: #333 !important;
    display: block !important;
}

#ipc-popup input:focus, #ipc-popup select:focus {
    border-color: #16a34a !important;
    outline: none !important;
}

.ipc-inline-inputs {
    display: flex;
    gap: 10px;
}

.ipc-inline-inputs input {
    flex: 1;
    min-width: 0;
}

.ipc-qty-shipping-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ipc-qty-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 2px;
    background: #f8fafc;
}

.ipc-qty-wrapper button {
    width: 26px;
    height: 26px;
    background: transparent;
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #475569;
    font-weight: bold;
}

#ipc-quantity {
    width: 24px !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    text-align: center;
    font-weight: 700;
    background: transparent !important;
}

.ipc-shipping-compact {
    display: flex;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
}

.ipc-shipping-toggle {
    cursor: pointer;
    position: relative;
}

.ipc-shipping-toggle input {
    position: absolute;
    opacity: 0;
}

.ipc-shipping-toggle .toggle-btn {
    display: inline-block;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    text-align: center;
}

.ipc-shipping-toggle input:checked + .toggle-btn {
    background: #faf7ff;
    border-color: #9b5cf7;
    color: #9b5cf7;
    box-shadow: 0 0 0 1px #9b5cf7;
}

.ipc-compact-alert {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
}

.ipc-order-summary {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
    margin: 8px 0;
    box-sizing: border-box;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 4px;
}

.total-line {
    border-top: 1px dashed #cbd5e1;
    padding-top: 6px;
    margin-top: 6px;
    margin-bottom: 0;
    font-size: 14px;
    color: #000;
    font-weight: bold;
}

.weight-700 { font-weight: 700; color: #334155; }
.weight-800 { font-weight: 800; color: #16a34a; font-size: 16px; }

.ipc-place-order {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #009900;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,153,0,0.2);
    transition: background 0.2s;
}

.ipc-place-order:hover {
    background: #008000;
}