/* Welcome-offer popup — editorial split (ICS.Desktop) */
/* Markup: Views/Shared/_Layout.cshtml (guest-only welcome discount popup) */
/* Matches reference: "Welcome Offer - Editorial" — B / Desktop (Espresso Ombre) */

#ics-welcome-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 10, 0.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.icswp-card {
    position: relative;
    display: flex;
    width: 960px;
    height: 540px;
    max-width: 95vw;
    max-height: 92vh;
    background: #F7F1E8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 40px 90px -40px rgba(40, 20, 12, 0.55);
    animation: icswpRise 0.7s cubic-bezier(.2, .7, .2, 1) both;
}

/* Left photo panel */
.icswp-photo {
    position: relative;
    width: 42%;
    flex-shrink: 0;
    overflow: hidden;
    background: #F7F1E8 url(../images/welcomepopup/lehenga-ombre.avif) center 14% / cover no-repeat;
}

.icswp-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(42, 26, 22, 0.04) 24%, rgba(30, 16, 10, 0.5) 58%, rgba(22, 11, 7, 0.94) 100%);
}

.icswp-photo-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 28px 36px;
    text-align: center;
    color: #F7F1E8;
}

.icswp-rule {
    width: 36px;
    height: 1px;
    margin: 0 auto 16px;
    background: rgba(244, 223, 166, 0.75);
}

.icswp-gold {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 0.85;
    background: linear-gradient(90deg, #C9A24B, #F4DFA6, #C9A24B);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: icswpGoldShift 3s linear infinite;
}

.icswp-photo-sub {
    margin-top: 12px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: rgba(247, 241, 232, 0.92);
}

/* Right form panel */
.icswp-panel {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 58px;
}

.icswp-close {
    position: absolute;
    top: 24px;
    right: 26px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(42, 26, 22, 0.18);
    border-radius: 50%;
    background: transparent;
    color: #7A6A60;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

.icswp-eyebrow {
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #9B1E2F;
}

.icswp-title {
    margin: 14px 0 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 500;
    font-size: 46px;
    line-height: 1.04;
    color: #2A1A16;
}

.icswp-desc {
    max-width: 380px;
    margin: 18px 0 30px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: #6B5B52;
}

.icswp-form {
    display: flex;
    align-items: stretch;
    max-width: 430px;
    margin-bottom: 6px;
    border: 1px solid rgba(42, 26, 22, 0.2);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

/* Override Materialize input[type=email] underline + content-box from custom.min.css */
#ics-welcome-overlay .icswp-form input#ics-popup-email.icswp-input {
    flex: 1;
    min-width: 0;
    height: 52px;
    margin: 0;
    padding: 0 16px;
    border: none;
    border-bottom: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    background: #fff;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 13px;
    color: #2A1A16;
    transition: none;
}

#ics-welcome-overlay .icswp-form input#ics-popup-email.icswp-input:focus {
    border: none;
    border-bottom: none;
    box-shadow: none;
    outline: none;
}

.icswp-btn {
    position: relative;
    overflow: hidden;
    height: 52px;
    padding: 0 26px;
    border: none;
    background: linear-gradient(135deg, #7A1626, #9B1E2F);
    color: #F7F1E8;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.icswp-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(244, 223, 166, 0.6), transparent);
    animation: icswpSheen 3.4s ease-in-out infinite;
}

.icswp-msg {
    min-height: 16px;
    margin-bottom: 8px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #c0392b;
}

.icswp-decline {
    margin-top: 20px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 300;
    color: #9A8A80;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.icswp-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(155, 30, 47, 0.12);
}

.icswp-timer-bar {
    height: 100%;
    width: 100%;
    background: #9B1E2F;
}

#ics-welcome-toast {
    display: none;
    position: fixed;
    right: 24px;
    bottom: 24px;
    max-width: 320px;
    padding: 14px 20px;
    background: #27ae60;
    color: #fff;
    border-radius: 4px;
    font-family: 'Roboto', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 99999;
}

@keyframes icswpGoldShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes icswpSheen {
    0% { transform: translateX(-130%) skewX(-18deg); }
    60%, 100% { transform: translateX(260%) skewX(-18deg); }
}

@keyframes icswpRise {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
