/* Stock Notification Box Styling */

.vsn-notification-heading {
    font-size: 14px;
    font-weight: 500;
    color: #2e2e2d;
    margin: 18px 0 12px 0;
    padding: 0;
    text-align: center;
}

.vsn-notification-box {
    background: #e8e7df;
    border: 1px solid #C6C6C6;
    border-radius: 10px;
    padding: 24px;
    padding-top: 40px;
    margin-top: 35px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    clear: both;
    display: block;
}

.vsn-notification-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Pill Styling (wie c-pill im Theme) - positioniert oben mittig auf Border */
.vsn-notification-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-radius: 999px;
    line-height: 1;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.vsn-pill-icon {
    width: 30px;
    height: 30px;
    background-size: 30px 30px;
    background-repeat: no-repeat;
    background-position: center;
    flex: 0 0 30px;
    z-index: 2;
    position: relative;
    left: 10px;
}

.vsn-pill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vsn-pill-text {
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
    background: #989898;
    color: #fff;
    border-radius: 10px;
    line-height: 22px;
    height: 22px;
    padding: 0 12px 0 24px;
    margin-left: -12px;
}

/* Honeypot - versteckt für Menschen */
.vsn-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Formular Layout */
.vsn-notification-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.vsn-form-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

.vsn-form-field {
    width: 100%;
}

.vsn-email-input {
    width: 100%;
    padding: 12px 24px;
    border: 1px solid #C6C6C6 !important;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #2e2e2d;
    transition: border-color 0.2s;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    text-align: center;
    box-sizing: border-box;
    line-height: normal;
}

.vsn-email-input:focus {
    outline: none;
    border-color: #4E7758;
    color: #2e2e2d;
}

.vsn-email-input::placeholder {
    color: #989898;
}

/* Submit Button (ähnlich Warenkorb-Button) */
.vsn-submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #4E7758;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
    width: 100%;
    height: 48px;
}

.vsn-submit-button:hover {
    background: #3d5e46;
}

.vsn-submit-button:active {
    transform: translateY(1px);
}

.vsn-submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.vsn-button-icon {
    display: flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.vsn-button-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Consent Checkbox */
.vsn-consent-row {
    margin-top: 8px;
    max-width: 500px;
    width: 100%;
}

.vsn-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.vsn-consent-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
}

.vsn-consent-text {
    font-size: 13px;
    line-height: 1.4;
}

.vsn-consent-text a {
    color: #4E7758;
    text-decoration: underline;
    font-size: 13px;
}

.vsn-consent-text a:hover {
    color: #3d5e46;
}

/* Success Message */
.vsn-success-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #d4edda;
    border: 2px solid #4E7758;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    animation: slideIn 0.3s ease-out;
}

.vsn-success-icon {
    flex-shrink: 0;
}

.vsn-success-text {
    margin: 0;
    color: #155724;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
}

/* Error Message */
.vsn-error-message {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    animation: shake 0.5s;
}

.vsn-error-text {
    margin: 0;
    color: #721c24;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Loading State */
.vsn-loading-state {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Subscribed State */
.vsn-subscribed-state {
    padding-top: 20px;
}

.vsn-subscribed-message {
    text-align: center;
    padding: 20px;
}

.vsn-check-icon {
    margin: 0 auto 16px;
    display: block;
}

.vsn-subscribed-text {
    font-size: 18px;
    font-weight: 600;
    color: #4E7758;
    margin: 0 0 8px 0;
}

.vsn-subscribed-date {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px 0;
}

.vsn-unsubscribe-button {
    background: transparent;
    border: 1px solid #C6C6C6;
    color: #666;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.vsn-unsubscribe-button:hover {
    border-color: #999;
    color: #333;
}

.vsn-unsubscribe-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.vsn-notification-form.is-loading .vsn-submit-button {
    opacity: 0.6;
    cursor: wait;
}

.vsn-notification-form.is-loading .vsn-email-input {
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .vsn-form-row {
        max-width: 100%;
    }
    
    .vsn-consent-row {
        max-width: 100%;
    }
}

