.wcrp-request-button {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .wcrp-request-button {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
}

.wcrp-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wcrp-popup {
    position: relative;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: wcrpFadeIn 0.3s ease;
    margin: 0 auto;
    cursor: default;
}

@keyframes wcrpFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.wcrp-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    z-index: 10;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
}
.wcrp-popup-close:hover {
    color: #333;
    background: rgba(0,0,0,0.06);
}
.wcrp-popup-close svg {
    stroke-width: 2.5;
}

#wcrp-request-form p {
    margin-bottom: 15px;
}
#wcrp-request-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
#wcrp-request-form input[type="text"],
#wcrp-request-form input[type="tel"],
#wcrp-request-form input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
#wcrp-request-form input:required {
    border-color: #ccc;
}

#wcrp-request-form .wcrp-form-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 4px;
}
#wcrp-request-form .wcrp-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
#wcrp-request-form .wcrp-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 480px) {
    .wcrp-popup {
        padding: 20px;
        width: 95%;
    }
    .wcrp-popup h3 {
        font-size: 18px;
    }
    #wcrp-request-form input[type="text"],
    #wcrp-request-form input[type="tel"],
    #wcrp-request-form input[type="email"] {
        font-size: 16px;
    }
    .wcrp-popup-close {
        width: 30px;
        height: 30px;
        top: 8px;
        right: 8px;
    }
    .wcrp-popup-close svg {
        width: 24px;
        height: 24px;
    }
}
/* Блок замены цены */
.wcrp-price-wrapper {
    margin: 20px 0;
}

.wcrp-price-text {
    background-color: #dff2fe;
    border: 1px solid #cfebfe;
    padding: 15px 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    width: 100%;
}

.wcrp-price-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #0073aa;
}

.wcrp-price-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
}

.wcrp-price-content {
    flex: 1;
    margin: 0;
    line-height: 1.5;
}

/* Если включена опция «Использовать стили шаблона» — наследуем шрифт и размер */
.wcrp-price-theme-style .wcrp-price-content {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .wcrp-price-text {
        padding: 12px 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .wcrp-price-icon {
        width: 20px;
        height: 20px;
    }
}