.wtvp-bar-anchor {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    padding: 0 12px 12px;
    pointer-events: none;
    font-size: 1.125rem;
    line-height: 1.75;
}

.wtvp-bar {
    pointer-events: auto;
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    background: #ebf0f2;
    --wtvp-soft-blue: #1e4468;
    --wtvp-soft-blue-light: #2a5278;
    --wtvp-soft-green: #1e6040;
    --wtvp-yellow-green: #b8c928;
    color: var(--wtvp-soft-blue);
    border: 2px solid var(--wtvp-yellow-green);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    padding: 16px 18px;
    font: inherit;
}

.wtvp-bar-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wtvp-bar-top {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 40px;
    padding-right: 96px;
    box-sizing: border-box;
}

.wtvp-bar-header {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.75;
    color: var(--wtvp-soft-green);
    text-align: center;
}

.wtvp-bar-offer {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

.wtvp-discount-badge {
    flex-shrink: 0;
    display: inline-block;
    background: #e6f4ea;
    color: #1e6b3a;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    padding: 6px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.wtvp-discount-wrap {
    flex-shrink: 0;
}

.wtvp-tooltip-wrap {
    position: relative;
}

.wtvp-hover-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    z-index: 1;
    width: max-content;
    max-width: min(280px, 70vw);
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #dcdcde;
    background: #fff;
    color: var(--wtvp-soft-blue);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.wtvp-hover-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
}

.wtvp-tooltip-wrap:hover .wtvp-hover-tooltip,
.wtvp-tooltip-wrap:focus .wtvp-hover-tooltip,
.wtvp-tooltip-wrap:focus-within .wtvp-hover-tooltip {
    opacity: 1;
    visibility: visible;
}

.wtvp-hover-tooltip s {
    position: relative;
    display: inline-block;
    color: #b32d2e;
    text-decoration: none;
}

.wtvp-hover-tooltip s::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid #b32d2e;
    pointer-events: none;
}

.wtvp-tooltip-pricing-line {
    display: block;
    margin-top: 6px;
}

.wtvp-code-wrap {
    flex: 0 0 auto;
    max-width: 100%;
}

.wtvp-code-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    max-width: calc(100% - 12rem);
}

.wtvp-code {
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
    font-family: Consolas, Monaco, monospace;
    font-size: 15px;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--wtvp-soft-blue);
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    padding: 6px 12px;
    border-radius: 6px;
}

.wtvp-purchase-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #1e6b3a;
    background: #e6f4ea;
    color: #1e6b3a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
}

.wtvp-purchase-btn:hover,
.wtvp-purchase-btn:focus {
    background: #d8ecdf;
    color: #185a31;
    border-color: #185a31;
}

.wtvp-countdown-wrap {
    flex-shrink: 0;
    margin-left: auto;
}

.wtvp-countdown-wrap .wtvp-hover-tooltip {
    left: auto;
    right: 0;
    transform: none;
    text-align: left;
}

.wtvp-countdown-wrap .wtvp-hover-tooltip::after {
    left: auto;
    right: 20px;
    transform: none;
}

.wtvp-countdown {
    flex-shrink: 0;
    margin-left: 0;
    font-size: 1.25rem;
    line-height: 1.5;
    font-weight: 600;
    color: #b32d2e;
    white-space: nowrap;
    text-align: right;
}

.wtvp-countdown-time {
    display: inline-block;
    min-width: 8ch;
    text-align: center;
    font-family: Consolas, Monaco, monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.wtvp-bar-tools {
    position: absolute;
    top: 0;
    right: 0;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.wtvp-icon-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    background: #fff;
    color: var(--wtvp-soft-blue-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wtvp-icon-btn:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
    color: var(--wtvp-soft-blue);
}

.wtvp-share-menu {
    position: relative;
}

.wtvp-share-trigger {
    color: #2271b1;
}

.wtvp-share-trigger svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.wtvp-bar-close {
    font-size: 24px;
    line-height: 1;
}

.wtvp-share-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wtvp-share-dropdown.wtvp-hidden {
    display: none;
}

.wtvp-share-dropdown button,
.wtvp-share-dropdown a {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 1.125rem;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--wtvp-soft-blue);
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.wtvp-share-dropdown button:hover,
.wtvp-share-dropdown a:hover {
    background: #f0f0f1;
}

.wtvp-dismiss-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 4px 0;
}

.wtvp-dismiss-confirm p {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.75;
    color: var(--wtvp-soft-green);
}

.wtvp-dismiss-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.wtvp-dismiss-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    white-space: nowrap;
    box-sizing: border-box;
}

.wtvp-dismiss-btn-yes {
    border: 1px solid #c3c4c7;
    background: #fff;
    color: var(--wtvp-soft-blue);
}

.wtvp-dismiss-btn-yes:hover,
.wtvp-dismiss-btn-yes:focus {
    background: #f6f7f7;
    border-color: #8c8f94;
    color: var(--wtvp-soft-blue);
}

.wtvp-dismiss-btn-keep {
    border: 1px solid #1e6b3a;
    background: #e6f4ea;
    color: #1e6b3a;
}

.wtvp-dismiss-btn-keep:hover,
.wtvp-dismiss-btn-keep:focus {
    background: #d8ecdf;
    color: #185a31;
    border-color: #185a31;
}

.wtvp-hidden {
    display: none !important;
}

@media (max-width: 640px) {
    .wtvp-bar-top {
        padding-right: 0;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .wtvp-bar-tools {
        position: static;
        justify-content: center;
        width: 100%;
    }

    .wtvp-bar-offer {
        flex-wrap: wrap;
        align-items: stretch;
    }

    .wtvp-code-group {
        max-width: 100%;
        flex-wrap: wrap;
    }

    .wtvp-code-wrap {
        max-width: 100%;
    }

    .wtvp-code {
        max-width: 100%;
        white-space: normal;
        word-break: break-all;
    }

    .wtvp-countdown-wrap {
        margin-left: 0;
        width: 100%;
    }

    .wtvp-countdown-wrap .wtvp-hover-tooltip {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
    }

    .wtvp-countdown-wrap .wtvp-hover-tooltip::after {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .wtvp-countdown {
        width: 100%;
        text-align: left;
        white-space: normal;
    }
}
