.yc-support-widget,
.yc-support-widget * {
    box-sizing: border-box;
}

.yc-support-widget {
    --yc-support-accent: #111111;
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 999999;
    color: #171717;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
}

.yc-support-widget--right {
    right: max(24px, env(safe-area-inset-right));
}

.yc-support-widget--left {
    left: max(24px, env(safe-area-inset-left));
}

.yc-support-trigger {
    min-width: 132px;
    height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: var(--yc-support-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.yc-support-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 30px rgba(0, 0, 0, 0.24);
}

.yc-support-trigger:focus-visible,
.yc-support-close:focus-visible,
.yc-support-channel:focus-visible,
.yc-support-modal-close:focus-visible {
    outline: 3px solid #f4c542;
    outline-offset: 3px;
}

.yc-support-trigger-icon,
.yc-support-trigger-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.yc-support-panel {
    position: absolute;
    bottom: 64px;
    width: min(340px, calc(100vw - 32px));
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transform-origin: bottom;
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.yc-support-widget--right .yc-support-panel {
    right: 0;
}

.yc-support-widget--left .yc-support-panel {
    left: 0;
}

.yc-support-widget.is-open .yc-support-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.yc-support-header {
    min-height: 78px;
    padding: 18px 18px 16px;
    background: #111;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.yc-support-header strong,
.yc-support-header span {
    display: block;
}

.yc-support-header strong {
    margin-bottom: 5px;
    font-size: 17px;
    line-height: 1.25;
}

.yc-support-header span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.4;
}

.yc-support-close,
.yc-support-modal-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    padding: 7px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.yc-support-close svg,
.yc-support-modal-close svg {
    display: block;
    width: 100%;
    height: 100%;
}

.yc-support-channels {
    padding: 8px;
}

.yc-support-channel {
    min-height: 66px;
    padding: 10px;
    border-radius: 6px;
    color: #171717;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    text-decoration: none !important;
    transition: background-color 140ms ease;
}

.yc-support-channel:hover {
    background: #f5f5f5;
    color: #171717;
}

.yc-support-channel-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.yc-support-channel--line .yc-support-channel-mark {
    background: #06c755;
}

.yc-support-channel--wechat .yc-support-channel-mark {
    background: #07c160;
}

.yc-support-channel--whatsapp .yc-support-channel-mark {
    background: #25d366;
}

.yc-support-channel--instagram .yc-support-channel-mark {
    background: #c13584;
}

.yc-support-channel-copy {
    min-width: 0;
}

.yc-support-channel-copy strong,
.yc-support-channel-copy small {
    display: block;
    overflow-wrap: anywhere;
}

.yc-support-channel-copy strong {
    margin-bottom: 3px;
    color: #171717;
    font-size: 15px;
    line-height: 1.25;
}

.yc-support-channel-copy small {
    color: #6b6b6b;
    font-size: 12px;
    line-height: 1.35;
}

.yc-support-arrow {
    color: #999;
    font-size: 24px;
    line-height: 1;
    text-align: center;
}

.yc-support-modal {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 160ms ease;
}

.yc-support-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.yc-support-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.yc-support-modal-card {
    position: relative;
    width: min(360px, calc(100vw - 32px));
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 65px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.yc-support-modal-card > strong,
.yc-support-modal-card > span,
.yc-support-modal-card > small {
    display: block;
}

.yc-support-modal-card > strong {
    margin-bottom: 5px;
    font-size: 21px;
}

.yc-support-modal-card > span,
.yc-support-modal-card > small {
    color: #666;
    font-size: 13px;
}

.yc-support-modal-card img {
    display: block;
    width: min(240px, 100%);
    height: auto;
    margin: 18px auto;
    border: 1px solid #eee;
}

.yc-support-modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #333;
}

body.yc-support-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .yc-support-widget {
        bottom: max(16px, env(safe-area-inset-bottom));
    }

    .yc-support-widget--right {
        right: max(16px, env(safe-area-inset-right));
    }

    .yc-support-widget--left {
        left: max(16px, env(safe-area-inset-left));
    }

    .yc-support-trigger {
        width: 54px;
        min-width: 54px;
        height: 54px;
        padding: 0;
        border-radius: 50%;
    }

    .yc-support-trigger-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .yc-support-panel {
        bottom: 66px;
        width: min(326px, calc(100vw - 32px));
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yc-support-trigger,
    .yc-support-panel,
    .yc-support-modal {
        transition: none;
    }
}

