/* Newsletter Subscription Block Frontend Styles */
.my-e-shop-newsletter-subscription-block {
    margin: 0;
    width: 100%;
    margin-bottom: -40px;
    padding-bottom: 100px;
}

.my-e-shop-newsletter-subscription-container {
    max-width: 1100px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 90px;
    margin-bottom: 40px;
    display: flex;
    align-items: stretch;
    background-color: #2C2C2C;
    border-radius: 10px;
    overflow: hidden;
}

/* Левая часть - изображение */
.my-e-shop-newsletter-left {
    flex: 0 0 587px;
    position: relative;
    min-height: 680px;
    width: 587px;
    max-width: 587px;
}

.my-e-shop-newsletter-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Правая часть - форма */
.my-e-shop-newsletter-right {
    flex: 1;
    background-color: #F4F3F5;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title,
.page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #2C2C2C !important;
}

.my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-description,
.page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #454545 !important;
}

.my-e-shop-newsletter-form {
    width: 100%;
    margin-bottom: 20px;
}

.my-e-shop-newsletter-form-group {
    display: flex;
    gap: 0;
    align-items: stretch;
    border: 1px solid #B539DB;
    border-radius: 4px;
    overflow: hidden;
}

.my-e-shop-newsletter-email-input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    color: #333;
}

.my-e-shop-newsletter-email-input:focus {
    outline: none;
}

.my-e-shop-newsletter-email-input::placeholder {
    color: #999;
}

.my-e-shop-newsletter-submit-button {
    position: relative;
    padding: 14px 24px;
    background-color: #2C2C2C;
    color: #B539DB;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.my-e-shop-newsletter-submit-button .newsletter-btn-text {
    position: relative;
    z-index: 20;
    transition: color 0.3s ease;
}

.my-e-shop-newsletter-submit-button:hover .newsletter-btn-text {
    color: #F4F0EB;
}

.my-e-shop-newsletter-submit-button .newsletter-anim-layer {
    position: absolute;
    width: 200px;
    height: 150px;
    top: -50px;
    left: -10px;
    transform: rotate(12deg) scaleX(0);
    transform-origin: left;
    transition: transform 1s ease;
    pointer-events: none;
    z-index: 1;
}

.my-e-shop-newsletter-submit-button .newsletter-anim-layer-1 {
    background-color: #000000;
    transition: transform 0.5s ease;
}

.my-e-shop-newsletter-submit-button .newsletter-anim-layer-2 {
    background-color: #c084fc;
    transition: transform 0.7s ease;
}

.my-e-shop-newsletter-submit-button .newsletter-anim-layer-3 {
    background-color: #9333ea;
    transition: transform 1s ease;
}

.my-e-shop-newsletter-submit-button:hover .newsletter-anim-layer {
    transform: rotate(12deg) scaleX(1);
}

.my-e-shop-newsletter-submit-button:hover .newsletter-anim-layer-1 {
    transition: transform 0.5s ease;
}

.my-e-shop-newsletter-submit-button:hover .newsletter-anim-layer-2 {
    transition: transform 0.7s ease;
}

.my-e-shop-newsletter-submit-button:hover .newsletter-anim-layer-3 {
    transition: transform 1s ease;
}

.my-e-shop-newsletter-submit-button:hover {
    background-color: #B539DB;
    color: #2C2C2C;
}

.my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-disclaimer,
.page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-disclaimer {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    line-height: 1.5;
    color: #888 !important;
    margin: 0;
}

/* Responsive Design */

/* Tablets and small desktops (до 1024px) */
@media (max-width: 1024px) {
    .my-e-shop-newsletter-subscription-block {
        padding-bottom: 80px;
    }
    
    .my-e-shop-newsletter-subscription-container {
        max-width: 95%;
        margin-top: 60px;
    }
    
    .my-e-shop-newsletter-left {
        flex: 0 0 45%;
        width: 45%;
        height: auto;
        min-height: 500px;
    }
    
    .my-e-shop-newsletter-right {
        padding: 50px 40px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title {
        font-size: 26px;
    }
}

/* Tablets (до 768px) */
@media (max-width: 768px) {
    .my-e-shop-newsletter-subscription-block {
        margin-bottom: -20px;
        padding-bottom: 60px;
    }
    
    .my-e-shop-newsletter-subscription-container {
        flex-direction: column;
        max-width: 90%;
        margin-top: 40px;
    }
    
    .my-e-shop-newsletter-left {
        flex: none;
        width: 100%;
        height: 600px;
        min-height: 600px;
    }
    
    .my-e-shop-newsletter-right {
        padding: 40px 35px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-description,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-description {
        font-size: 13px;
        margin-bottom: 25px;
    }
}

/* Mobile devices (до 576px) */
@media (max-width: 576px) {
    .my-e-shop-newsletter-subscription-block {
        margin-bottom: 0;
        padding-bottom: 40px;
    }
    
    .my-e-shop-newsletter-subscription-container {
        max-width: 95%;
        margin-top: 30px;
        margin-bottom: 30px;
        border-radius: 8px;
    }
    
    .my-e-shop-newsletter-right {
        padding: 30px 20px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-description,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-description {
        font-size: 12px;
        margin-bottom: 20px;
    }
    
    .my-e-shop-newsletter-form-group {
        flex-direction: column;
        border: none;
        gap: 10px;
    }
    
    .my-e-shop-newsletter-email-input {
        border: 1px solid #B539DB;
        border-radius: 4px;
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .my-e-shop-newsletter-submit-button {
        width: 100%;
        border-radius: 4px;
        padding: 12px 20px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-disclaimer,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-disclaimer {
        font-size: 10px;
    }
}

/* Extra small devices (до 400px) */
@media (max-width: 400px) {
    .my-e-shop-newsletter-subscription-container {
        max-width: 98%;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .my-e-shop-newsletter-right {
        padding: 25px 15px;
    }
    
    .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title,
    .page-theme-dark .my-e-shop-newsletter-subscription-block .my-e-shop-newsletter-offer-title {
        font-size: 18px;
    }
}