/* ===== Базовые стили формы ===== */
.wc-pa-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
}
.wc-pa-description {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}
.wc-pa-input {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.wc-pa-btn {
    margin-top: 15px;
    width: 100%;
}
.wc-pa-status {
    margin-top: 12px;
    color: #0073aa;
    font-weight: 500;
}
.wc-pa-error {
    margin-top: 12px;
    color: #d63638;
    font-weight: 500;
}

.wc-pa-fallback-hint a {
    color: #d63638 !important;
    font-weight: bold;
}
.wc-pa-fallback-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .wc-pa-fallback-hint {
        text-align: left;
        margin-left: 5px;
    }
}

/* ===== Зелёная кнопка в стиле WoodMart ===== */
#wc-pa-submit.button,
#wc-pa-submit.button-primary {
    background-color: #83b735 !important;
    color: #ffffff !important;
    border-color: #83b735 !important;
    box-shadow: 0 2px 4px rgba(131, 183, 53, 0.3) !important;
    transition: all 0.2s ease;
}
#wc-pa-submit.button:hover,
#wc-pa-submit.button-primary:hover {
    background-color: #72a32f !important;
    border-color: #72a32f !important;
    box-shadow: 0 4px 8px rgba(131, 183, 53, 0.4) !important;
}
#wc-pa-submit.button[disabled],
#wc-pa-submit.button-primary[disabled] {
    background-color: #bdc3c7 !important;
    border-color: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
    box-shadow: none !important;
}

/* ===== Overlay поверх формы оформления заказа ===== */

.wc-pa-checkout-overlay-container {
    position: relative;
    min-height: 300px;
}

/* Полупрозрачный overlay — форма авторизации поверх чекаута */
.wc-pa-checkout-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 15px;
    overflow-y: auto;
}

/* ===== Блокировка полей для неавторизованных ===== */
.wc-pa-checkout-locked {
    opacity: 0.45;
    pointer-events: none;
}

#place_order.wc-pa-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

/* ===== Блок подтверждения изменённого телефона ===== */
.wc-pa-checkout-confirm-block {
    margin: 10px 0;
    padding: 12px;
  
    border-radius: 4px;
}

.wc-pa-checkout-confirm-btn {
    background-color: #83b735 !important;
    color: #ffffff !important;
    border: 1px solid #83b735 !important;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.wc-pa-checkout-confirm-btn:hover {
    background-color: #72a32f !important;
    border-color: #72a32f !important;
}
.wc-pa-checkout-confirm-btn[disabled] {
    background-color: #bdc3c7 !important;
    border-color: #bdc3c7 !important;
    color: #7f8c8d !important;
    cursor: not-allowed;
}

.wc-pa-success {
    color: #83b735;
    font-weight: 600;
}


/* ===== Разделитель между способами входа ===== */
.wc-pa-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: #999;
    font-size: 14px;
}
.wc-pa-divider::before,
.wc-pa-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}
.wc-pa-divider span {
    padding: 0 12px;
}

.wc-pa-yandex-login {
    text-align: center;
}
