/* Стили для страницы выбора типов оплаты в форме подачи */
.payment-types-selection-container {
    max-width: 1000px;
    text-align: center;
    padding: 0;
    margin: 0;
}

.payment-types-selection-container h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.payment-types-selection-container .subtitle {
    font-size: 16px;
    color: #747474;
    margin-bottom: 20px;
}

.price-constructor-help {
    margin-top: 15px;
    text-align: left;
}

.price-constructor-help .subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

.constructor-indicator {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 0;
    font-style: italic;
}

/* Скрытие constructor-mode при переключении на единую цену */
.constructor-mode-hidden,
.constructor-mode.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.payment-types-grid {
    display: grid;
    justify-content: center;
    gap: 20px;
    width: auto;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-types-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(200px, 280px));
}

.payment-type-tile {
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    transition: border 0.2s ease;
    max-width: 280px;
    border-radius: 8px;
}

.payment-type-tile img {
    max-width: 60px;
    width: 50px;
    height: auto;
    margin-bottom: 10px;
}

.payment-type-tile span {
    font-size: 16px;
    text-align: left;
    margin-left: 5px;
}

.payment-type-tile.selected {
    border: 2px solid #228B22; /* Зелёная рамка для выбранной плитки */
}

.price-inputs {
    margin-top: 20px;
}

.price-field {
    display: none; /* Поле скрыто по умолчанию */
    margin-top: 10px;
    width: 100%;
    max-width: 1200px;
    margin: 15px auto;
    text-align: left;
}

.price-field > div:first-child {
    margin-top: 0;
    margin-bottom: 15px;
}

.price-field h2 {
    margin-top: 0;
    margin-bottom: 10px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.price-field h2 label {
    text-align: left;
}

.price-field h2 .tooltip-trigger {
    margin-left: 5px;
}

.price-field input {
    width: 100%;
    max-width: 200px;
    font-size: 16px;
    padding: 8px 20px;
    margin: 0;
    border: solid 1px #747474;
    border-radius: 16px;
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .payment-types-selection-container {
        width: 100%;
    }

    .payment-types-selection-container h2 {
        font-size: 22px;
    }

    .payment-types-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(150px, 200px));
    }
}

/* Стили для поля минимального количества часов */
.min-hours-field {
    display: none;
    margin-top: 20px;
}

.min-hours-field h2 {
    margin-bottom: 10px;
    text-align: left;
}

.min-hours-field h2 label {
    text-align: left;
}

.min-hours-field .subtitle {
    margin-bottom: 15px;
    text-align: left;
}

.min-hours-field .counter-field {
    margin-bottom: 0;
    max-width: 200px;
}

.min-hours-field .counter-controls {
    justify-content: flex-start;
}

.min-hours-field .counter-controls input {
    width: 60px;
    text-align: center;
    border: 1px solid #747474;
    border-radius: 16px;
    padding: 8px;
    font-size: 16px;
}

.min-hours-field .counter-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #747474;
    background: #fff;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.min-hours-field .counter-btn:hover {
    background: #f0f0f0;
    border-color: #228B22;
}

.min-hours-field .counter-btn:active {
    background: #e0e0e0;
}

/* Выравнивание элементов по левому краю на десктопе */
@media (min-width: 769px) {
    .price-field h2 {
        text-align: left !important;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    .price-field h2 label {
        text-align: left !important;
    }

    .price-field h2 .tooltip-trigger {
        margin-left: 5px;
    }

    .price-field h2 .tooltip-icon {
        margin-left: 5px;
    }

    .pricing-mode.fixed-price-mode {
        text-align: left !important;
    }

    .pricing-mode.fixed-price-mode > div[style*="display: flex"] {
        justify-content: flex-start !important;
        text-align: left !important;
        width: auto !important;
        max-width: fit-content !important;
    }

    .pricing-mode.fixed-price-mode .transparent-button {
        margin-left: 0 !important;
        margin-right: 0;
        flex-shrink: 0;
    }

    .pricing-mode.fixed-price-mode .tooltip-trigger {
        margin-left: 0;
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }

    .pricing-mode.fixed-price-mode p {
        text-align: left !important;
        max-width: 100%;
    }

    .min-hours-field h2 {
        text-align: left !important;
    }

    .min-hours-field h2 label {
        text-align: left !important;
    }

    .min-hours-field .subtitle {
        text-align: left !important;
    }
}

/* Стили для отображения правил конструктора цен */
.pricing-rules-display {
    margin-top: 20px;
}

.pricing-rule-group {
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.rule-condition-header {
    font-size: 16px;
    font-weight: 600;
    color: #383a3f;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #228B22;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.rule-guests {
    font-weight: 500;
    color: #383a3f;
    flex: 0 0 auto;
    margin-right: 15px;
}

.rule-price {
    color: #383a3f;
    text-align: right;
    flex: 1 1 auto;
    line-height: 1.4;
}

.pricing-rules-empty {
    padding: 20px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .rule-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .rule-guests {
        margin-right: 0;
        margin-bottom: 5px;
    }
    
    .rule-price {
        text-align: left;
    }
}

