/* Template: Hex Download (isolated) */
.ufa365-hex-footer,
.ufa365-hex-footer *,
.ufa365-hex-footer *::before,
.ufa365-hex-footer *::after {
    box-sizing: border-box;
}

.ufa365-hex-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    padding: 14px 12px 16px;
    background: radial-gradient(120% 140% at 50% -20%, #1f3a3f 0%, #0b1b1f 45%, #071113 100%);
    color: var(--hex-text-color, #dfe9e9);
    font-size: 12px;
    --hex-text-color: #dfe9e9;
    --hex-center-text: #fdf1c5;
    --hex-top-start: #15333a;
    --hex-top-mid: #0b1d22;
    --hex-top-end: #07161a;
    --hex-panel-start: #0f2a2f;
    --hex-panel-end: #08161a;
    --hex-panel-border: rgba(255, 255, 255, 0.08);
    --hex-border: rgba(255, 255, 255, 0.16);
    --hex-inner-border: rgba(255, 255, 255, 0.08);
    --hex-center-start: #f7e39f;
    --hex-center-mid: #c69334;
    --hex-center-end: #9a6420;
    --hex-center-border: rgba(255, 244, 210, 0.55);
    --hex-center-inner-border: rgba(120, 84, 24, 0.6);
}

.ufa365-hex-footer::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 215, 130, 0.2), rgba(255, 215, 130, 0.45), rgba(255, 215, 130, 0.2));
    opacity: 0.35;
}

@media (min-width: 768px) {
    .ufa365-hex-footer:not(.is-editor-preview) {
        display: none;
    }
}

.ufa365-hex-footer a {
    text-decoration: none;
    color: inherit;
}

.ufa365-hex-footer img {
    display: block;
    height: auto;
}

.ufa365-hex-footer__top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.ufa365-hex-footer.is-top-hidden .ufa365-hex-footer__top {
    display: none;
}

.ufa365-hex-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ufa365-hex-footer__hex {
    position: relative;
    width: 124px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.ufa365-hex-footer__hex::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--hex-top-start) 0%, var(--hex-top-mid) 55%, var(--hex-top-end) 100%);
    border: 1px solid var(--hex-border);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
    clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
}

.ufa365-hex-footer__hex::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1px solid var(--hex-inner-border);
    opacity: 0.6;
    -webkit-clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
    clip-path: polygon(12% 0%, 88% 0%, 100% 50%, 88% 100%, 12% 100%, 0% 50%);
}

.ufa365-hex-footer__hex img,
.ufa365-hex-footer__hex .ufa365-hex-footer__label {
    position: relative;
    z-index: 1;
}

.ufa365-hex-footer__hex img {
    width: 46px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.45));
}

.ufa365-hex-footer__hex .ufa365-hex-footer__label {
    display: none;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.ufa365-hex-footer__hex.is-text .ufa365-hex-footer__label {
    display: block;
}

.ufa365-hex-footer__panel {
    flex: 1 1 0;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(180deg, var(--hex-panel-start) 0%, var(--hex-panel-end) 100%);
    border: 1px solid var(--hex-panel-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0 4px;
}

.ufa365-hex-footer__panel--left {
    border-radius: 12px 20px 20px 12px;
}

.ufa365-hex-footer__panel--right {
    border-radius: 20px 12px 12px 20px;
}

.ufa365-hex-footer__panel-item {
    flex: 1 1 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ufa365-hex-footer__panel-item + .ufa365-hex-footer__panel-item {
    border-left: 1px solid var(--hex-panel-border);
}

.ufa365-hex-footer__panel-item img {
    width: 26px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.ufa365-hex-footer__label {
    font-size: 11px;
    letter-spacing: 0.02em;
}

.ufa365-hex-footer__center {
    width: 190px;
    height: 82px;
    margin-top: -12px;
    flex-shrink: 0;
}

.ufa365-hex-footer__center-button {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--hex-center-text);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45));
}

.ufa365-hex-footer__center-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--hex-center-start) 0%, var(--hex-center-mid) 55%, var(--hex-center-end) 100%);
    border: 1px solid var(--hex-center-border);
    box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.3);
    -webkit-clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.ufa365-hex-footer__center-button::after {
    content: "";
    position: absolute;
    inset: 7px;
    border: 1px solid var(--hex-center-inner-border);
    -webkit-clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
    clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}

.ufa365-hex-footer__center-button img,
.ufa365-hex-footer__center-text {
    position: relative;
    z-index: 1;
}

.ufa365-hex-footer__center-button img {
    width: 30px;
    opacity: 0.85;
}

.ufa365-hex-footer__center-text {
    font-size: 15px;
}

.ufa365-hex-footer__hex:hover::before {
    filter: brightness(1.15);
}

.ufa365-hex-footer__panel-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 480px) {
    .ufa365-hex-footer {
        padding: 10px 10px 14px;
    }

    .ufa365-hex-footer__top {
        gap: 12px;
        margin-bottom: 6px;
    }

    .ufa365-hex-footer__hex {
        width: 112px;
        height: 62px;
    }

    .ufa365-hex-footer__hex img {
        width: 40px;
    }

    .ufa365-hex-footer__panel {
        height: 62px;
    }

    .ufa365-hex-footer__panel-item img {
        width: 24px;
    }

    .ufa365-hex-footer__center {
        width: 170px;
        height: 74px;
        margin-top: -10px;
    }
}

@media (max-width: 425px) {
    .ufa365-hex-footer {
        padding: 8px 8px 12px;
    }

    .ufa365-hex-footer__top {
        gap: 10px;
    }

    .ufa365-hex-footer__hex {
        width: 104px;
        height: 58px;
    }

    .ufa365-hex-footer__center {
        width: 156px;
        height: 70px;
    }

    .ufa365-hex-footer__panel {
        height: 58px;
    }

    .ufa365-hex-footer__label {
        font-size: 10px;
    }

    .ufa365-hex-footer__center-text {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .ufa365-hex-footer__hex {
        width: 96px;
        height: 54px;
    }

    .ufa365-hex-footer__hex img {
        width: 34px;
    }

    .ufa365-hex-footer__center {
        width: 144px;
        height: 64px;
    }

    .ufa365-hex-footer__panel {
        height: 54px;
    }

    .ufa365-hex-footer__panel-item img {
        width: 20px;
    }

    .ufa365-hex-footer__label {
        font-size: 9px;
    }

    .ufa365-hex-footer__center-text {
        font-size: 12px;
    }
}
