/* Кнопка "Купить в один клик" */
.amn-boc-wrapper {
    margin-top: 15px;
    padding-top: 0;
    border-top: none;
    clear: both;
}

.amn-boc-btn {
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.amn-boc-btn:hover {
    background: #000;
    color: #fff;
}

/* Модальное окно */
.amn-boc-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.amn-boc-overlay.amn-active {
    display: flex;
}

.amn-boc-modal {
    background: #fff;
    width: 100%;
    max-width: 400px;
    position: relative;
    padding: 40px 30px;
    border-radius: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

/* Крестик как span */
span.amn-boc-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 32px;
    cursor: pointer;
    color: #000;
    padding: 0;
    margin: 0;
    text-align: center;
    z-index: 10;
    display: block;
    font-family: Arial, sans-serif;
    font-weight: 300;
}

span.amn-boc-close:hover {
    opacity: 0.6;
}

.amn-boc-title {
    margin: 0 0 10px 0;
    padding-right: 40px;
    font-size: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
}

.amn-boc-product {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #666;
}

.amn-boc-field {
    margin-bottom: 15px;
}

.amn-boc-field input {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #000;
    font-size: 14px;
    background: #fff;
    color: #000;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.2s;
    height: auto;
    line-height: normal;
}

.amn-boc-field input:focus {
    outline: none;
    border-color: #666;
}

.amn-boc-field input::placeholder {
    color: #999;
}

.amn-boc-submit {
    width: 100%;
    padding: 14px 20px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    margin-top: 10px;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.amn-boc-submit:hover {
    background: #333;
}

.amn-boc-submit:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Успешная отправка */
.amn-boc-success {
    text-align: center;
}

.amn-boc-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 2px solid #000;
    font-size: 30px;
    line-height: 56px;
    color: #000;
    display: block;
}

.amn-boc-success-text {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Адаптив */
@media (max-width: 480px) {
    .amn-boc-modal {
        padding: 30px 20px;
    }
    
    .amn-boc-title {
        font-size: 18px;
    }
    
    .amn-boc-field input,
    .amn-boc-submit,
    .amn-boc-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
}

/* Чекбокс согласия */
.amn-boc-checkbox {
    margin: 15px 0;
}

.amn-boc-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.amn-boc-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #000;
}

.amn-boc-checkbox a {
    color: #000;
    text-decoration: underline;
}

.amn-boc-checkbox a:hover {
    text-decoration: none;
}

/* Исправляем центрирование success */
.amn-boc-success {
    text-align: center;
    display: block;
    width: 100%;
}

.amn-boc-success .amn-boc-title {
    padding-right: 0;
    text-align: center;
}

.amn-boc-success .amn-boc-submit {
    margin-left: auto;
    margin-right: auto;
}

/* Чекбокс согласия */
.amn-boc-checkbox {
    margin: 15px 0;
}

.amn-boc-checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
}

.amn-boc-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #000;
}

.amn-boc-checkbox a {
    color: #000;
    text-decoration: underline;
}

.amn-boc-checkbox a:hover {
    text-decoration: none;
}

/* Исправляем центрирование success */
.amn-boc-success {
    text-align: center;
    display: block;
    width: 100%;
}

.amn-boc-success .amn-boc-title {
    padding-right: 0;
    text-align: center;
}

.amn-boc-success .amn-boc-submit {
    margin-left: auto;
    margin-right: auto;
}
