.apmsqb-wrap,
.apmsqb-wrap * {
    box-sizing: border-box;
}

.apmsqb-wrap {
    --apmsqb-primary: #9a946c;
    --apmsqb-primary-hover: #182012;
    --apmsqb-text: #ffffff;
    --apmsqb-radius: 0px;

    display: block;
    width: 100%;
    margin: 24px 0;
}

.apmsqb-wrap--align-left {
    text-align: left;
}

.apmsqb-wrap--align-center {
    text-align: center;
}

.apmsqb-wrap--align-right {
    text-align: right;
}

.apmsqb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 30px;
    color: var(--apmsqb-text) !important;
    background: var(--apmsqb-primary);
    border: 0;
    border-radius: var(--apmsqb-radius);
    box-shadow: none;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.apmsqb-wrap--uppercase .apmsqb-button {
    letter-spacing: .08em;
    text-transform: uppercase;
}

.apmsqb-button:hover {
    color: var(--apmsqb-text) !important;
    background: var(--apmsqb-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0,0,0,.18);
}

.apmsqb-wrap--width-full .apmsqb-button {
    display: flex;
    width: 100%;
}

.apmsqb-admin-note {
    padding: 12px 14px;
    color: #5f4b0f;
    background: #fff8d8;
    border-left: 4px solid #bda45a;
    font-size: 14px;
}

@media (max-width: 600px) {
    .apmsqb-button {
        width: 100%;
    }
}


/* v1.0.4: modo de previsualización para administradores */
.apmsqb-wrap--admin-preview .apmsqb-button {
    outline: 1px dashed rgba(189,164,90,.45);
    outline-offset: 4px;
}


/* v1.0.5: ocultación segura del botón nativo de Sensei cuando el shortcode APM está presente */
.apmsqb-native-hidden {
    display: none !important;
}


/* v1.0.6: mensaje sencillo de espera al abrir el cuestionario */
.apmsqb-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 26, 20, .74);
    backdrop-filter: blur(4px);
}

.apmsqb-loading-box {
    width: min(380px, 100%);
    padding: 32px 26px;
    background: #ffffff;
    border: 1px solid rgba(154, 148, 108, .45);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    text-align: center;
    color: #1f241d;
}

.apmsqb-loading-spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 18px;
    border: 4px solid rgba(154, 148, 108, .22);
    border-top-color: var(--apmsqb-primary);
    border-radius: 50%;
    animation: apmsqbSpin .8s linear infinite;
}

.apmsqb-loading-box strong {
    display: block;
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.05;
    font-weight: 900;
}

.apmsqb-loading-box span {
    display: block;
    font-size: 15px;
    line-height: 1.45;
    color: #4b4f48;
}

@keyframes apmsqbSpin {
    to { transform: rotate(360deg); }
}
