/* Ana Terra Tattoo Sistema v1.16.2 | Ajuda contextual mobile first */
.att-help27 {
    --att-help-earth: #3A211A;
    --att-help-sand: #F3E7D3;
    --att-help-gold: #D99A2B;
    --att-help-leaf: #667044;
    --att-help-ivory: #FFF9EF;
    position: relative;
    z-index: 12000;
}

.att-help27-trigger {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 12002;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255,249,239,.24) !important;
    border-radius: 50% !important;
    background: var(--att-help-earth) !important;
    color: var(--att-help-ivory) !important;
    box-shadow: 0 14px 34px rgba(58,33,26,.24);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.att-help27-trigger > span {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-1px);
}
.att-help27-trigger > small {
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--att-help-earth);
    color: var(--att-help-ivory);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}
.att-help27-trigger:hover,
.att-help27-trigger:focus-visible {
    background: #4A2C22 !important;
    color: var(--att-help-ivory) !important;
    border-color: var(--att-help-gold) !important;
    box-shadow: 0 16px 38px rgba(58,33,26,.30), 0 0 0 3px rgba(217,154,43,.16);
    transform: translateY(-2px);
    outline: none !important;
}
.att-help27-trigger:hover > small,
.att-help27-trigger:focus-visible > small {
    opacity: 1;
    transform: translate(-2px,-50%);
}

.att-help27-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(34,21,17,.38);
    backdrop-filter: blur(2px);
}
.att-help27-overlay[hidden] { display: none !important; }

.att-help27-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12001;
    width: 100%;
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(58,33,26,.10);
    border-radius: 24px 24px 0 0;
    background: var(--att-help-ivory);
    color: var(--att-help-earth);
    box-shadow: 0 -26px 70px rgba(58,33,26,.18);
    transform: translateY(calc(100% + 20px));
    visibility: hidden;
    transition: transform .26s cubic-bezier(.22,.8,.32,1), visibility .26s;
    overflow: hidden;
}
.att-help27-panel.is-open {
    transform: translateY(0);
    visibility: visible;
}
.att-help27-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 20px 17px;
    border-bottom: 1px solid rgba(58,33,26,.10);
    background: linear-gradient(180deg, #fffaf2 0%, var(--att-help-ivory) 100%);
}
.att-help27-head span {
    display: block;
    margin-bottom: 5px;
    color: #9B6C18;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}
.att-help27-head h2 {
    margin: 0;
    color: var(--att-help-earth);
    font-family: var(--att-font-display, Georgia, serif);
    font-size: 27px;
    font-weight: 400;
    line-height: 1.05;
}
.att-help27-head > button {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin: -4px -4px 0 0;
    padding: 0;
    border: 1px solid rgba(58,33,26,.12) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: var(--att-help-earth) !important;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}
.att-help27-head > button svg {
    width: 15px;
    height: 15px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    pointer-events: none;
}
.att-help27-head > button:hover,
.att-help27-head > button:focus-visible {
    border-color: var(--att-help-gold) !important;
    background: var(--att-help-sand) !important;
    color: var(--att-help-earth) !important;
    outline: none !important;
}
.att-help27-body {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}
.att-help27-intro {
    margin: 0;
    color: #604C45;
    font-size: 13px;
    line-height: 1.65;
}
.att-help27-guide {
    margin-top: 22px;
}
.att-help27-label {
    display: block;
    margin-bottom: 10px;
    color: #9B6C18;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
}
.att-help27-guide ol {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: att-help-step;
}
.att-help27-guide li {
    counter-increment: att-help-step;
    position: relative;
    min-height: 48px;
    padding: 13px 13px 13px 50px;
    border: 1px solid rgba(58,33,26,.09);
    border-radius: 15px;
    background: rgba(255,255,255,.62);
    color: #4D3932;
    font-size: 11px;
    line-height: 1.55;
}
.att-help27-guide li::before {
    content: counter(att-help-step, decimal-leading-zero);
    position: absolute;
    left: 13px;
    top: 13px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(217,154,43,.13);
    color: #8D6115;
    font-size: 9px;
    font-weight: 900;
}
.att-help27-tip {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: start;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(102,112,68,.20);
    border-radius: 15px;
    background: rgba(102,112,68,.08);
}
.att-help27-tip > span {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(102,112,68,.14);
    color: var(--att-help-leaf);
}
.att-help27-tip p {
    margin: 2px 0 0;
    color: #4A5134;
    font-size: 11px;
    line-height: 1.55;
}
body.att-help27-open { overflow: hidden; }
body.att-help27-open .att-help27-trigger { opacity: 0; pointer-events: none; }

@media (min-width: 760px) {
    .att-help27-trigger {
        right: max(22px, env(safe-area-inset-right));
        bottom: max(22px, env(safe-area-inset-bottom));
        width: 58px;
        height: 58px;
    }
    .att-help27-panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(410px, 92vw);
        max-height: none;
        border-radius: 0;
        border-top: 0;
        border-right: 0;
        border-bottom: 0;
        transform: translateX(calc(100% + 24px));
        box-shadow: -28px 0 80px rgba(58,33,26,.18);
    }
    .att-help27-panel.is-open { transform: translateX(0); }
    .att-help27-head { padding: 30px 28px 22px; }
    .att-help27-head h2 { font-size: 31px; }
    .att-help27-body { padding: 25px 28px 34px; }
    .att-help27-intro { font-size: 13px; }
    .att-help27-guide li { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .att-help27-panel,
    .att-help27-trigger,
    .att-help27-trigger > small { transition: none !important; }
}
