/* Discounted Price — frontend default styles (v1.4.0)
   Стили из настроек админки переопределяют правила ниже.
*/

.dp-form-wrap {
    width: 800px;
    max-width: 100%;
    margin: 10px auto;
    position: relative;
    font-family: 'Manrope', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.dp-form {
    width: 100%;
    height: 70px;
    border: 1px solid rgba(250, 250, 250, 0.30);
    border-radius: 10px;
    display: flex;
    align-items: stretch;
    box-sizing: border-box;
    font-family: inherit;
}

.dp-form .dp-input {
    flex: 1 1 0%;
    min-width: 0;
    height: 100%;
    background: transparent;
    border: 0;
    padding: 0 45px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    box-sizing: border-box;
}

.dp-form .dp-input::placeholder {
    color: rgba(250, 250, 250, 0.6);
    font-family: inherit;
    font-weight: 700;
    font-size: 20px;
    opacity: 1;
}

.dp-form .dp-input:focus,
.dp-form .dp-input:focus-visible {
    background: transparent;
    color: #ffffff;
    outline: none;
}

.dp-form .dp-button {
    flex: 0 0 auto;
    height: 100%;
    background: linear-gradient(90deg, #0353DD 0%, #6FB1FC 100%);
    color: #ffffff;
    border: 0;
    border-radius: 10px;
    padding: 0 50px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-image 0.3s ease;
    box-sizing: border-box;
}

.dp-form .dp-button:hover,
.dp-form .dp-button:focus-visible {
    background: linear-gradient(90deg, #6FB1FC 0%, #0353DD 100%);
}

.dp-form .dp-button[disabled] {
    opacity: 0.7;
    cursor: default;
}

/* Сообщение — снаружи блока формы, под ним */
.dp-form-message {
    margin-top: 10px;
    font-size: 14px;
    font-family: inherit;
    color: rgba(250, 250, 250, 0.85);
    opacity: 1;
    transition: opacity 0.4s ease;
    text-align: left;
}

.dp-form-message:empty { display: none; }
.dp-form-message.dp-fade-out { opacity: 0; }
.dp-form-message.dp-error    { color: #ff6b6b; }
.dp-form-message.dp-success  { color: #6ee7b7; }

/* Цены */
.dp-price          { font-weight: 600; }
.dp-price-original { text-decoration: line-through; color: #999; font-weight: 400; margin-right: 6px; }
.dp-price-discount { color: #00a32a; font-weight: 700; }
.dp-price-old      { text-decoration: line-through; }

/* Мобильная версия (<= 767px) */
@media (max-width: 1023px) {
    .dp-form-wrap {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .dp-form {
        height: auto;
        flex-direction: column;
    }
    .dp-form .dp-input {
        height: auto;
        width: 100%;
        padding: 25px 22px;
        font-size: 14px;
        font-weight: 500;
    }
    .dp-form .dp-input::placeholder {
        font-size: 14px;
        font-weight: 500;
    }
    .dp-form .dp-button {
        width: 100%;
        height: auto;
        padding: 25px 50px;
    }
}
