/* ==========================================
   Calculadora de Concreto — contêiner do shortcode
   ========================================== */
.calculamax-embed {
    position: relative;
    width: 100%;
    height: var(--calculamax-altura, 90vh);
    min-height: 560px;
    background: #0a1220;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(10, 18, 32, 0.25);
}

.calculamax-embed__frame {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    background: transparent;
}

.calculamax-embed__loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculamax-embed__loading span {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(74, 144, 196, 0.2);
    border-top-color: #4a90c4;
    border-radius: 50%;
    animation: calculamax-spin 0.9s linear infinite;
}

.calculamax-embed.is-loaded .calculamax-embed__loading {
    display: none;
}

@keyframes calculamax-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tela cheia (acionada pelo botão ⛶ dentro da calculadora) */
.calculamax-embed.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

html.calculamax-lock,
html.calculamax-lock body {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .calculamax-embed {
        height: var(--calculamax-altura-mobile, 85svh);
        min-height: 480px;
        border-radius: 12px;
    }
}
