/* Product State Restrictions Frontend Styling */

/* Floating Warning Banner Notice */
.psr-frontend-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease-in-out;
}

.psr-frontend-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.psr-frontend-alert-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    max-width: 460px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid #fee2e2;
}

.psr-frontend-alert-overlay.active .psr-frontend-alert-card {
    transform: scale(1);
}

.psr-alert-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.psr-alert-header-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.psr-alert-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.psr-alert-body {
    padding: 24px;
    color: #334155;
    font-size: 15px;
    line-height: 1.5;
}

.psr-alert-footer {
    padding: 16px 24px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    text-align: right;
}

.psr-alert-close-btn {
    background: #dc2626;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3);
}

.psr-alert-close-btn:hover {
    background: #b91c1c;
}

/* Banner style notice injected into DOM */
.psr-inline-notice {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 14px 18px;
    border-radius: 6px;
    margin: 15px 0;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
