/**
 * Solario24 Out of Stock Popup Styles
 */

.s24-oos-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.s24-oos-popup {
    background: #ffffff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: s24-popup-enter 0.3s ease-out;
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
}

@keyframes s24-popup-enter {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.s24-oos-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.s24-oos-header-content {
    flex: 1;
}

.s24-oos-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FEF3C7;
    color: #92400E;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.s24-oos-badge svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
}

.s24-oos-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0 0 4px 0;
}

.s24-oos-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Close Button - just an X */
.s24-oos-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    padding: 0;
    color: #666;
    pointer-events: auto;
    position: relative;
    z-index: 100;
}

.s24-oos-close:hover {
    color: #2d2d2d;
}

.s24-oos-close svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    pointer-events: none;
}

/* Slider */
.s24-oos-slider-wrapper {
    position: relative;
    padding: 0 24px;
}

.s24-oos-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 20px 0;
}

.s24-oos-slider::-webkit-scrollbar {
    display: none;
}

/* Arrow Buttons - simple arrows */
.s24-oos-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    padding: 0;
    color: #333;
}

.s24-oos-slider-btn:hover {
    background: #f5f5f5;
    border-color: #82bb41;
    color: #82bb41;
}

.s24-oos-slider-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.s24-oos-slider-btn.prev { left: 8px; }
.s24-oos-slider-btn.next { right: 8px; }

/* Product Card */
.s24-oos-product {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: #fafafa;
    border-radius: 10px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.s24-oos-product:hover {
    background: #fff;
    border-color: #82bb41;
    box-shadow: 0 4px 12px rgba(130, 187, 65, 0.15);
    transform: translateY(-2px);
}

.s24-oos-product-image {
    width: 100%;
    height: 100px;
    object-fit: contain;
    background: #fff;
    border-radius: 6px;
    margin-bottom: 10px;
}

.s24-oos-product-name {
    font-size: 12px;
    font-weight: 500;
    color: #2d2d2d;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.6em;
}

.s24-oos-product-price {
    font-size: 14px;
    font-weight: 700;
    color: #82bb41;
    margin-bottom: 4px;
}

.s24-oos-product-price .price-prefix {
    font-size: 11px;
    font-weight: 500;
    color: #666;
}

.s24-oos-product-delivery {
    font-size: 10px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.s24-oos-product-delivery.available {
    color: #16a34a;
}

.s24-oos-product-delivery.available::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
}

.s24-oos-product-delivery.delayed {
    color: #d97706;
}

.s24-oos-product-delivery.delayed::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #d97706;
    border-radius: 50%;
}

.s24-oos-product-pickup {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* Footer */
.s24-oos-footer {
    padding: 16px 24px;
    background: #fafafa;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.s24-oos-footer-text {
    font-size: 12px;
    color: #666;
}

.s24-oos-footer-text a {
    color: #82bb41;
    text-decoration: none;
    font-weight: 500;
}

.s24-oos-footer-text a:hover {
    text-decoration: underline;
}

.s24-oos-notify-btn {
    background: #2d2d2d;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.s24-oos-notify-btn:hover {
    background: #1a1a1a;
}

.s24-oos-notify-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Notification Form */
.s24-oos-notify-form {
    display: none;
    padding: 16px 24px;
    background: #f8fdf5;
    border-top: 1px solid #d4edbc;
}

.s24-oos-notify-form.active {
    display: block;
    animation: s24-slide-down 0.3s ease-out;
}

@keyframes s24-slide-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.s24-oos-notify-form-title {
    font-size: 13px;
    font-weight: 600;
    color: #2d2d2d;
    margin-bottom: 3px;
}

.s24-oos-notify-form-text {
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
}

.s24-oos-notify-input-row {
    display: flex;
    gap: 8px;
}

.s24-oos-notify-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.s24-oos-notify-input:focus {
    outline: none;
    border-color: #82bb41;
    box-shadow: 0 0 0 3px rgba(130, 187, 65, 0.1);
}

.s24-oos-notify-submit {
    background: #82bb41;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.s24-oos-notify-submit:hover {
    background: #6fa532;
}

.s24-oos-notify-success {
    display: none;
    padding: 16px 24px;
    background: #f0fdf4;
    border-top: 1px solid #bbf7d0;
    text-align: center;
}

.s24-oos-notify-success.active {
    display: block;
}

.s24-oos-notify-success-icon {
    width: 40px;
    height: 40px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: #fff;
}

.s24-oos-notify-success-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.s24-oos-notify-success-title {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
}

.s24-oos-notify-success-text {
    font-size: 12px;
    color: #666;
    margin-top: 3px;
}

/* Mobile */
@media (max-width: 640px) {
    .s24-oos-slider-btn {
        display: none;
    }

    .s24-oos-footer {
        flex-direction: column;
        text-align: center;
    }

    .s24-oos-notify-input-row {
        flex-direction: column;
    }
}
