/* BackInStockModal.css */
.rez-notify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
        sans-serif;
    color: #333;
}

.rez-notify-modal-backdrop {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.rez-notify-modal-content {
    position: fixed;
    width: 90%;
    max-width: 450px;
    margin: 0 auto; /* Changed from margin: 50px auto */
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    top: 21%; /* Added to center vertically */
    transform: translateY(-50%); /* Added to center vertically */
}

.rez-notify-modal-content-collection {
    position: fixed;
    width: 90%;
    max-width: 450px;
    margin: 0 auto; /* Changed from margin: 50px auto */
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    top: 45%; /* Added to center vertically */
    transform: translateY(-50%); /* Added to center vertically */
}

.rez-notify-modal-header {
    display: flex;
    align-items: center;
    padding: 30px 30px 0px;
    justify-content: space-between;
}

.rez-notify-bell-icon {
    display: flex;
    margin-right: 10px;
}

.rez-notify-bell-icon svg {
    fill: #000;
}

.rez-notify-modal-header h2 {
    flex-grow: 1;
    font-size: 28px;
    font-weight: bold;
    margin: 0;
}

.rez-notify-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.rez-notify-modal-body {
    padding: 0 30px 30px;
}

.rez-notify-product-section {
    margin: 24px 0 12px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.rez-notify-product-label {
    font-size: 18px;
    font-weight: bold;
}

.rez-notify-product-value {
    font-size: 16px;
    color: #666;
}

.rez-notify-variant-dropdown {
    margin-bottom: 12px;
}

.rez-notify-variant-dropdown select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    color: #333;
    background-color: white;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
}

.rez-notify-input-container {
    margin-bottom: 20px;
}

.rez-notify-error-message:empty {
    display: none;
}

.rez-notify-email-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.rez-notify-email-input::placeholder {
    color: #aaa;
}

.rez-notify-error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    min-height: 20px;
}

.rez-notify-submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #000;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 12px;
}

.rez-notify-terms {
    text-align: left;
    font-size: 14px;
    color: #777;
    margin: 0px;
}

.rez-notify-powered-by {
    text-align: left;
    margin-top: 24px;
}

.rez-notify-powered-by span {
    display: inline-block;
    padding: 3px 12px;
    background-color: #eee;
    border-radius: 20px;
    font-size: 11px;
    color: black;
}

/* Additional CSS for confirmation screen */
.rez-notify-confirmation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}

.rez-notify-check-icon {
    background-color: #f2f2f2;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.rez-notify-check-icon svg {
    color: #000;
    width: 70px;
    height: 70px;
}

.rez-notify-confirmation h2 {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 20px 0;
}

.rez-notify-confirmation p {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    max-width: 80%;
}

/* When in confirmation mode, remove other elements we don't need */
.rez-notify-confirmation + .rez-notify-terms,
.rez-notify-confirmation + .rez-notify-powered-by {
    display: none;
}

.rez-notify-header-spacer {
    width: 24px; /* Same as the close button width */
    display: block !important;
}

.rez-notify-loading {
    text-align: center;
    padding: 40px 20px;
}

.rez-loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    gap: 15px;
}

.rez-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #333;
    border-radius: 50%;
    animation: rez-spin 1s linear infinite;
}

.rez-loading-dots {
    display: flex;
    gap: 4px;
}

.rez-loading-dots span {
    width: 8px;
    height: 8px;
    background-color: #333;
    border-radius: 50%;
    animation: rez-bounce 1.4s ease-in-out infinite both;
}

.rez-loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.rez-loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.rez-loading-text {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.rez-loading-progress {
    width: 100%;
    height: 4px;
    background-color: #f0f0f0;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 10px;
}

.rez-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #333, #666, #333);
    background-size: 200% 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    animation: rez-progress-shimmer 2s ease-in-out infinite;
}

@keyframes rez-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rez-bounce {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

@keyframes rez-progress-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}
