/* Han Kam - scoped styles */
.han-kam-wrap,
.han-kam-wrap * {
    box-sizing: border-box;
}

.han-kam-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 auto;
    font-family: Poppins, Inter, Arial, sans-serif;
}

.han-kam-banner {
    width: 100%;
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #ecfff0;
    border: 1px solid rgba(34, 197, 94, .18);
    border-radius: 18px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    position: relative;
    overflow: hidden;
    outline: none;
    isolation: isolate;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.han-kam-banner:hover,
.han-kam-banner:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(34, 197, 94, .34);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.han-kam-content {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.han-kam-text-area {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.han-kam-dot {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(34, 197, 94, .24);
}

.han-kam-title {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    color: #101827;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.han-kam-title-typed::after {
    content: '';
    width: 2px;
    height: 1.1em;
    margin-left: 4px;
    display: inline-block;
    background: #22c55e;
    border-radius: 10px;
    animation: hanKamCaret .8s steps(1, end) infinite;
}

@keyframes hanKamCaret {
    0%, 45% { opacity: 1; }
    46%, 100% { opacity: 0; }
}

.han-kam-code-area {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #12b9cf;
    color: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    min-height: 46px;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.han-kam-code-label {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    opacity: .86;
    letter-spacing: .02em;
}

.han-kam-code-text {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.han-kam-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: inherit;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.han-kam-banner.is-copied .han-kam-status {
    opacity: 1;
    transform: translateY(0);
}

.han-kam-banner.is-copied .han-kam-code-label,
.han-kam-banner.is-copied .han-kam-code-text {
    opacity: 0;
}

.han-kam-logo-area {
    width: 170px;
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 0;
}

.han-kam-logo {
    width: 130px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.elementor-widget-han_kam_banner .han-kam-wrap a,
.elementor-widget-han_kam_banner .han-kam-wrap button {
    box-shadow: none;
}

@media (max-width: 1024px) {
    .han-kam-title {
        font-size: 16px;
    }

    .han-kam-logo-area {
        width: 130px;
    }

    .han-kam-logo {
        width: 110px;
    }
}

@media (max-width: 767px) {
    .han-kam-banner {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        border-radius: 15px;
        gap: 12px;
    }

    .han-kam-content {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 12px;
    }

    .han-kam-text-area {
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
    }

    .han-kam-dot {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        font-size: 15px;
    }

    .han-kam-title {
        width: 100%;
        min-height: 44px;
        font-size: 15px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .han-kam-code-area {
        width: 100%;
        justify-content: center;
        min-height: 44px;
        padding: 10px 14px;
    }

    .han-kam-logo-area {
        width: 100%;
        justify-content: center;
        padding-top: 2px;
    }

    .han-kam-logo {
        width: 108px;
    }
}
