/* WooCommerce Preço por Cadastro — Modal CSS */

/* Botão de cadastro no lugar do "Comprar" */
.wpl-btn-register {
    background-color: #2c2c2c !important;
    color: #fff !important;
    border-color: #2c2c2c !important;
    letter-spacing: .03em;
}
.wpl-btn-register:hover {
    background-color: #444 !important;
    color: #fff !important;
}
.wpl-single-btn {
    width: 100%;
    padding: 14px !important;
    font-size: 15px !important;
    margin-top: 12px;
}

/* Mensagem de preço oculto */
.wpl-price-hidden .wpl-price-link {
    font-size: 13px;
    color: #666;
    text-decoration: underline dotted;
    cursor: pointer;
}
.wpl-price-hidden .wpl-price-link:hover { color: #2c2c2c; }

/* Overlay */
.wpl-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}
.wpl-overlay.wpl-active {
    opacity: 1;
    visibility: visible;
}

/* Modal */
.wpl-modal {
    background: #fff;
    border-radius: 12px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 600px;
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(16px);
    transition: transform .2s;
}
.wpl-overlay.wpl-active .wpl-modal { transform: translateY(0); }

/* Fechar */
.wpl-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 4px 8px;
}
.wpl-modal-close:hover { color: #2c2c2c; }

/* Abas */
.wpl-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}
.wpl-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #999;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.wpl-tab.active {
    color: #2c2c2c;
    border-bottom-color: #2c2c2c;
}

/* Conteúdo da aba */
.wpl-tab-content { display: none; }
.wpl-tab-content.active { display: block; }

/* Títulos */
.wpl-modal h2 {
    font-size: 20px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 6px;
}
.wpl-subtitle {
    font-size: 13px;
    color: #777;
    margin: 0 0 22px;
}

/* Campos */
.wpl-field {
    margin-bottom: 14px;
}
.wpl-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    margin-bottom: 5px;
}
.wpl-field input[type="text"],
.wpl-field input[type="email"],
.wpl-field input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #2c2c2c;
    background: #fafafa;
    transition: border-color .15s;
    box-sizing: border-box;
}
.wpl-field input:focus {
    outline: none;
    border-color: #2c2c2c;
    background: #fff;
}
.wpl-field input.wpl-error { border-color: #e24b4a; }

/* Campo de senha com toggle */
.wpl-password-wrap { position: relative; }
.wpl-password-wrap input { padding-right: 42px; }
.wpl-toggle-pw {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #aaa;
    padding: 0;
    line-height: 1;
}

/* Checkbox */
.wpl-field-check label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    cursor: pointer;
}
.wpl-field-check input[type="checkbox"] { width: auto; margin: 0; }
.wpl-field-check a { color: #2c2c2c; }

/* Botão submit */
.wpl-btn-submit {
    width: 100%;
    padding: 13px;
    background: #2c2c2c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    transition: background .15s;
}
.wpl-btn-submit:hover { background: #444; }
.wpl-btn-submit:disabled { background: #aaa; cursor: not-allowed; }

/* Mensagem de feedback */
.wpl-message {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
}
.wpl-message.wpl-success { background: #eaf3de; color: #3b6d11; }
.wpl-message.wpl-error-msg { background: #fcebeb; color: #a32d2d; }

/* Esqueci senha */
.wpl-forgot {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}
.wpl-forgot a { color: #666; text-decoration: underline; }

/* Rótulos de seção */
.wpl-section-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #999;
    margin: 20px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.wpl-section-label:first-of-type { margin-top: 0; }
.wpl-required { color: #e24b4a; }
.wpl-optional { font-weight: 400; text-transform: none; letter-spacing: 0; color: #bbb; font-size: 11px; }

/* Grid de dois campos lado a lado */
.wpl-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.wpl-field-cep { max-width: 100%; }

/* Select */
.wpl-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #2c2c2c;
    background: #fafafa;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color .15s;
}
.wpl-field select:focus {
    outline: none;
    border-color: #2c2c2c;
    background-color: #fff;
}

@media (max-width: 420px) {
    .wpl-field-row { grid-template-columns: 1fr; }
}

/* Rótulos de seção */
@media (max-width: 480px) {
    .wpl-modal { padding: 28px 20px 24px; }
    .wpl-modal h2 { font-size: 18px; }
}
