/* =============================================
   Radiant Sell — Estilos del botón de compra
   ============================================= */

.rs-product-box {
    position: relative;
    border: 2px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    margin: 24px 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    font-family: 'Gudea', Helvetica, Arial, sans-serif;
    transition: box-shadow 0.2s ease;
}

.rs-product-box:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.13);
}

/* Product image */
.rs-product-image {
    overflow: hidden;
    max-height: 320px;
}

.rs-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.rs-product-box:hover .rs-product-image img {
    transform: scale(1.02);
}

/* Product info section */
.rs-product-info {
    padding: 16px 20px 20px;
}

.rs-product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.rs-product-name {
    font-size: 1.25em;
    font-weight: 700;
    color: #222;
    font-family: 'Rancho', 'Gudea', serif;
    letter-spacing: 0.01em;
}

.rs-product-price {
    font-size: 1.3em;
    color: #2d6b7d;
    white-space: nowrap;
}

.rs-product-price strong {
    font-weight: 700;
}

.rs-product-desc {
    color: #555;
    font-size: 0.92em;
    line-height: 1.5;
    margin: 0 0 14px;
}

/* Buttons */
.rs-buy-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.rs-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border: none;
    border-radius: 5px;
    color: #fff !important;
    font-size: 0.95em;
    font-weight: 600;
    font-family: 'Gudea', Helvetica, Arial, sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: filter 0.2s, transform 0.15s;
    line-height: 1;
}

.rs-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none;
}

.rs-btn:active {
    transform: translateY(0);
}

.rs-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.rs-btn-paypal  { background-color: #0070ba; }
.rs-btn-mp      { background-color: #009ee3; }

.rs-btn:disabled,
.rs-btn.rs-loading {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

.rs-no-gateway {
    color: #c55;
    font-size: 0.88em;
    margin: 6px 0 0;
}

/* Overlay spinner */
.rs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    backdrop-filter: blur(2px);
}

.rs-overlay-inner {
    text-align: center;
}

.rs-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid rgba(45,107,125,0.2);
    border-top-color: #2d6b7d;
    border-radius: 50%;
    animation: rs-spin 0.7s linear infinite;
    margin: 0 auto 10px;
}

@keyframes rs-spin {
    to { transform: rotate(360deg); }
}

.rs-overlay-msg {
    font-size: 0.9em;
    color: #444;
    margin: 0;
}

/* Success toast notification */
.rs-success-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a7a4a;
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.4s, transform 0.4s;
    max-width: 90vw;
    text-align: center;
}

.rs-success-toast.rs-toast-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 540px) {
    .rs-product-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rs-buy-buttons {
        flex-direction: column;
    }

    .rs-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ==========================================================================
   Protected Content — Lock / Unlock UI
   ========================================================================== */

.rs-locked-content {
    background: #f8f8f8;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 32px 24px;
    text-align: center;
    margin: 24px 0;
}

.rs-lock-icon {
    font-size: 2.5em;
    margin-bottom: 12px;
}

.rs-lock-title {
    font-size: 1.3em;
    color: #333;
    margin: 0 0 8px;
}

.rs-lock-desc {
    color: #666;
    margin: 0 0 12px;
}

.rs-lock-login {
    font-size: 0.9em;
    color: #888;
    margin-top: 12px;
}

.rs-lock-login a {
    color: #2d6b7d;
    font-weight: bold;
}

.rs-token-expired {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 4px;
    padding: 8px 12px;
    color: #856404;
    font-size: 0.9em;
    margin: 8px 0;
}

.rs-purchased-badge {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 4px;
    padding: 8px 16px;
    color: #155724;
    font-size: 0.9em;
    margin: 16px 0 8px;
    display: inline-block;
}
