/**
 * Disabled Offers Styling
 *
 * Visual styles for sold-out/disabled product offers
 */

/* Disabled Offer Container */
.disabled-offer {
    position: relative;
    pointer-events: none;
}

/* Main Package Overlay */
.disabled-overlay {
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    /* Extend dimensions to compensate for negative positioning */
    width: calc(100% + 18px);  /* +9px left, +9px right on mobile */
    height: calc(100% + 18px); /* +9px top, +9px bottom on mobile */
}

@media (min-width: 1024px) {
    .disabled-overlay {
        width: calc(100% + 24px);  /* +12px left, +12px right on desktop */
        height: calc(100% + 24px); /* +12px top, +12px bottom on desktop */
    }
}

.disabled-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #262626 0%, #171717 100%);
    border: 3px solid #f43f5e;
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    color: white;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Sub Package Overlay */
.disabled-overlay-small {
    background: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(2px);
}

.disabled-badge-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #262626 0%, #171717 100%);
    border: 2px solid #f43f5e;
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* Hover effect disabled */
.disabled-offer:hover {
    transform: none;
    box-shadow: none;
}

/* Grayscale effect for disabled images */
.disabled-offer img {
    filter: grayscale(100%);
}

/* Ensure icons render properly */
.disabled-badge i,
.disabled-badge-small i {
    color: #f43f5e;
    stroke-width: 2;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .disabled-badge {
        padding: 1rem 1.5rem;
    }

    .disabled-badge span {
        font-size: 1rem;
    }

    .disabled-badge i {
        height: 1.5rem;
        width: 1.5rem;
    }
}
