/* assets/paleta.css */

/* ✅ Garante que o widget/container do Elementor possam preencher altura */
.elementor-widget-softplan_paleta,
.elementor-widget-softplan_paleta .elementor-widget-container {
    height: 100%;
}

/* ✅ Box */
.softplan-colorbox {
    background: var(--sp-bg, #00687e);
    color: var(--sp-text, #fff);
    position: relative;
    overflow: hidden;

    /* trocando flex por block evita “gap” de altura */
    display: block;
    width: 100%;
    height: 100%;
}

/* ✅ Panel ocupa tudo */
.softplan-colorbox__panel {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Nome */
.softplan-colorbox__name {
    position: relative;
    z-index: 1;
    font-weight: 600;
    /* pode ser sobrescrito pela tipografia do Elementor */
}

/* INFO */
.softplan-colorbox__info {
    position: relative;
    z-index: 1;
    transition: opacity .15s ease;
}

.softplan-colorbox__info ul,
.softplan-colorbox__hover ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.softplan-colorbox__info li {
    line-height: 1.45;
    font-size: 18px;
    font-weight: 400;
}

/* ✅ Hover “pinta” 100% */
.softplan-colorbox__hover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;
    opacity: 0;
    pointer-events: none;

    background: var(--sp-hover-bg, var(--sp-bg));
    transition: opacity .15s ease;

    display: flex;
    align-items: center;

    /* ajuda quando a altura vem de min-height no box */
    min-height: inherit;
}

/* No hover some info + nome */
.softplan-colorbox:hover .softplan-colorbox__info,
.softplan-colorbox:hover .softplan-colorbox__name {
    opacity: 0;
    pointer-events: none;
}

.softplan-colorbox:hover .softplan-colorbox__hover {
    opacity: 1;
    pointer-events: auto;
}

.softplan-colorbox__hover ul {
    width: 100%;
}

/* Botões */
.softplan-colorbox__hover li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--sp-text, #fff);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: transform .12s ease, background-color .12s ease, opacity .12s ease;
}

/* Hover do botão */
.softplan-colorbox__hover li a:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateX(2px);
}

/* Ícone antes do texto (copy) */
.softplan-colorbox__hover li a::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background-color: currentColor;

    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 1H6a2 2 0 0 0-2 2v12h2V3h10V1Zm3 4H10a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm0 16H10V7h9v14Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M16 1H6a2 2 0 0 0-2 2v12h2V3h10V1Zm3 4H10a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h9a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm0 16H10V7h9v14Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Copiado: muda texto e muda ícone para check */
.softplan-colorbox__hover li a.is-copied {
    font-weight: 600;
}

.softplan-colorbox__hover li a.is-copied::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12 3.4 13.4 9 19 21 7 19.6 5.6 9 16.2Z'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12 3.4 13.4 9 19 21 7 19.6 5.6 9 16.2Z'/%3E%3C/svg%3E") no-repeat center / contain;
}