#rbvp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    font-family: inherit;
}

#rbvp-modal .rbvp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
}

#rbvp-modal .rbvp-content {
    position: relative;
    max-width: 720px;
    width: 95%;
    margin: 40px auto;
    background: #fff;
    padding: 20px 20px 25px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* close button – red gola remove */
#rbvp-modal .rbvp-close {
    position: absolute;
    top: 20px;        /* ভিতরে আনা হলো */
    right: 20px;      /* ভিতরে আনা হলো */
    background: transparent;
    color: #333;
    border: none;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    text-align: center;
    box-shadow: none;
    padding: 0;
}

#rbvp-modal .rbvp-close:hover {
    background: transparent;   /* hover-eo kono background nai */
    transform: none;
    color: #e00000;            /* ichcha hole text e halka red */
}

#rbvp-modal .rbvp-body {
    margin-top: 10px;
    min-height: 60px;
    display: block;
}

.rbvp-product-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.rbvp-product-thumb img {
    max-width: 70px;
    border-radius: 4px;
}

.rbvp-product-text {
    flex: 1;
}

#rbvp-modal .rbvp-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

#rbvp-modal .rbvp-subtitle {
    margin: 0;
    font-size: 14px;
}

.rbvp-product-name {
    font-weight: 500;
}

.rbvp-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rbvp-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    align-items: center;
    background: #f5f5f5;
    border-radius: 4px;
    padding: 8px 10px;
    column-gap: 10px;
}

.rbvp-row-label {
    font-size: 14px; /* fallback, overridden by inline CSS */
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
}

.rbvp-row-price {
    font-size: 14px;
    text-align: right;
}

.rbvp-row-action {
    text-align: right;
}

.rbvp-row-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    cursor: pointer;
    color: #fff;
    white-space: nowrap;
}

/* Cart mode => orange button */
.rbvp-row-btn-cart,
.rbvp-mode-cart .rbvp-row-btn {
    background: #ff7700;
}

/* Buy mode => green button */
.rbvp-row-btn-buy,
.rbvp-mode-buy .rbvp-row-btn {
    background: #28a745;
}

/* simple loading state */
.rbvp-row.rbvp-row-loading {
    opacity: 0.6;
}

/* Spinner */
.rbvp-loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 3px solid #ddd;
    border-top-color: #3498db;
    animation: rbvp-spin 0.8s linear infinite;
}

@keyframes rbvp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Cart confirm block after reload */
.rbvp-cart-confirm {
    text-align: center;
    padding: 20px 10px;
}

.rbvp-cart-confirm-title {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.rbvp-cart-confirm-text {
    font-size: 14px;
    margin-bottom: 16px;
}

.rbvp-cart-confirm-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rbvp-cart-confirm .rbvp-btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.rbvp-cart-confirm .rbvp-btn-cart {
    background: #f0f0f0;
    color: #333;
}

.rbvp-cart-confirm .rbvp-btn-buy {
    background: #28a745;
    color: #fff;
}

.rbvp-cart-confirm .rbvp-btn-continue {
    background: #ffffff;
    border: 1px solid #ddd;
    color: #333;
}
