/* Pricing page styles, moved here from chat-pricing.php, which links it where the inline <style> was */
#live-chat-payment-plans label {
    font-weight: 500 !important;
    font-size: 0.83rem !important;
    padding: 0.32rem 0.64rem !important;
}

.owc-pricing-hero-row-pad {
    padding-bottom: 35px;
}
@media (max-width: 768px) {
    .owc-pricing-hero-row-pad {
        padding-bottom: 12px;
    }
}

/* Mobile responsive styles for pricing buttons */
@media (max-width: 768px) {
    #live-chat-payment-plans {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        width: auto !important;
        max-width: 100% !important;
    }
    #live-chat-payment-plans label {
        display: inline-block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        font-size: 0.77rem !important;
        padding: 0.35rem 0.47rem !important;
        white-space: nowrap !important;
        line-height: 1.25 !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    #live-chat-payment-plans {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
    }
    #live-chat-payment-plans label {
        display: inline-block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        font-size: 0.71rem !important;
        padding: 0.31rem 0.35rem !important;
        white-space: nowrap !important;
    }
    /* Smaller mobile payment plans buttons on small screens */
    #live-chat-payment-plans-mobile label {
        font-size: 0.68rem !important;
        padding: 0.36rem 0.4rem !important;
    }
}

@media (max-width: 380px) {
    #live-chat-payment-plans {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: auto !important;
    }
    #live-chat-payment-plans label {
        display: inline-block !important;
        flex: 0 1 auto !important;
        width: auto !important;
        font-size: 0.5rem !important;
        padding: 0.24rem 0.25rem !important;
        white-space: nowrap !important;
    }
    /* Even smaller mobile payment plans buttons on very small screens */
    #live-chat-payment-plans-mobile label {
        font-size: 0.58rem !important;
        padding: 0.32rem 0.38rem !important;
    }
}

.rotated-text {
    transform: rotate(-12deg);
}

.agent-slider-flex-wrapper {
    display: inline-block;
    position: relative;
    max-width: 90vw;
}

.agent-slider-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(320px, 90vw);
}

.agent-slider-label {
    display: flex;
    align-items: left;
    justify-content: left;
    font-weight: 400;
    color: #1f2933;
    font-size: 1rem;
}

.agent-slider-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4169e1;
    color: #fff;
    border-radius: 11px;
    padding: 4px 12px;
    font-weight: 500;
    min-width: 44px;
    font-size: 1rem;
    line-height: 1;
}

.agent-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    /* The empty part of the track needs its own colour: white disappears on the card */
    background: linear-gradient(90deg, #4169e1 0%, #d5def4 0%);
    outline: none;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.agent-slider:hover {
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.15);
}

.agent-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #4169e1;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-slider::-webkit-slider-thumb:hover,
.agent-slider::-webkit-slider-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(65, 105, 225, 0.45);
}

.agent-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #4169e1;
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agent-slider::-moz-range-thumb:hover,
.agent-slider::-moz-range-thumb:active {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(65, 105, 225, 0.45);
}

.agent-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: #d5def4;
}

.agent-slider::-moz-range-progress {
    height: 6px;
    border-radius: 999px;
    background: #4169e1;
}

.agent-slider::-ms-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid #4169e1;
}

.agent-slider::-ms-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

.agent-slider::-ms-fill-lower {
    background: #4169e1;
    border-radius: 999px;
}

.agent-slider::-ms-fill-upper {
    background: #d5def4;
    border-radius: 999px;
}

/* The price and its unit must stay on one line, even for the longest value the
   seats slider can produce ("3.20 per seat / month") */
#price-section .owc-price-value {
    font-size: 38px;
}

#price-section .owc-price-meta {
    font-size: 21px;
}

#price-section .owc-price-unit {
    font-size: 15px;
    margin-left: 6px;
}



/* The amount that is really charged for the selected billing cycle. It keeps its
   place in the card when it is not shown, so the cards never change height. */
#price-section .owc-plan-total {
    margin: 4px 0 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
    min-height: 18px;
    color: #4169e1;
}

#price-section .owc-price-card-aiagent .owc-plan-total {
    color: #ffffff;
}

/* Seats slider inside the Pro card: narrower than the old full-width one */
#price-section .owc-price-card-pro .owc-plan-seats {
    width: min(100%, 206px);
    margin: 16px auto 10px;
}

#price-section .owc-price-card-pro .agent-slider-flex-wrapper {
    display: block;
    width: 100%;
    max-width: none;
}

#price-section .owc-price-card-pro .agent-slider-wrapper {
    display: flex;
    width: 100%;
    gap: 8px;
}

#price-section .owc-price-card-pro .agent-slider-label {
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    margin-bottom: 0;
}

#price-section .owc-price-card-pro .agent-slider-value {
    font-size: 0.9rem;
    min-width: 38px;
    padding: 3px 10px;
}

/* The tooltip floats over the text under the slider, so the card keeps its height */
#price-section .owc-price-card-pro .contact-message {
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(-8px);
    width: 236px;
    margin: 0;
    z-index: 6;
}

#price-section .owc-price-card-pro .contact-message.show {
    transform: translateX(-50%) translateY(0);
}

#price-section .owc-price-card-pro .contact-message-content {
    width: 100%;
    padding: 14px 12px;
    box-shadow: 0 16px 32px rgba(102, 126, 234, 0.45);
}

#price-section .owc-price-card-pro .owc-plan-tag,
#price-section .owc-price-card-pro .owc-plan-list {
    transition: opacity 0.3s ease;
}

#price-section .owc-price-card-pro.owc-seats-max .owc-plan-tag,
#price-section .owc-price-card-pro.owc-seats-max .owc-plan-list {
    opacity: 0.25;
}

/* Contact message styles */
.contact-message {
    position: absolute;
    left: calc(100% + 50px);
    top: calc(50% - 40px);
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.contact-message.show {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

.contact-message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 18px 18px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 220px;
}

.contact-message-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.contact-icon {
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.contact-message-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    position: relative;
    z-index: 1;
}

.contact-message-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0 0 16px 0;
    position: relative;
    z-index: 1;
}

.contact-btn {
    display: inline-block;
    background: #ffffff;
    color: #667eea;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: #667eea;
    text-decoration: none;
}

.contact-btn:active {
    transform: translateY(0);
}

/* Mobile line break - hide on desktop */
.mobile-br {
    display: none;
}

/* Mobile agent positioning */
@media (max-width: 768px) {


    .mobile-br {
        display: block !important;
    }
    .page-top-banner-pricing h1 {
        margin-top: 0px !important;
        font-size: 25px !important;
    }
    .payment-plans-container-desktop {
        display: none !important;
    }
    .payment-plans-container-mobile {
        display: block !important;
    }
    .price-right {
        flex-wrap: wrap !important;
    }
    .payment-plans-container-mobile {
        order: 2 !important;
    }
    /* Make mobile payment plans buttons smaller to fit screen width */
    #live-chat-payment-plans-mobile label {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.5rem !important;
    }
    #live-chat-payment-plans-mobile {
        width: auto !important;
        display: inline-flex !important;
        justify-content: center !important;
    }
    /* Add margin between the two pricing plans on mobile */

    .single-price.main {
        margin-top: 10px !important;
        /* margin-left: 10px !important; */
    }

    .price-section .single-price {
        padding-bottom: 20px !important;
    }
    /* Reduce container padding-bottom on mobile */
    .price-section .container {
        padding-bottom: 46px !important;
    }

    /* Mobile contact message adjustments */
    .agent-slider-flex-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .contact-message {
        position: static;
        transform: translateY(-10px);
        margin-top: 15px;
    }

    .contact-message.show {
        transform: translateY(0);
    }

    .contact-message-content {
        width: 100%;
        max-width: 280px;
        padding: 16px 14px;
    }

    .contact-message-title {
        font-size: 1rem;
    }

    .contact-message-text {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .contact-btn {
        padding: 7px 18px;
        font-size: 0.85rem;
    }
}

@media (min-width: 769px) {
    .payment-plans-container-mobile {
        display: none !important;
    }
}

/* Desktop optimizations for contact message */
@media (min-width: 1024px) {
    .contact-message-content {
        width: 240px;
    }
}

@media (max-width: 1023px) and (min-width: 769px) {
    .contact-message {
        left: calc(100% + 40px);
        top: calc(50% - 40px);
    }

    .contact-message-content {
        width: 200px;
        padding: 16px 14px;
    }

    .contact-message-title {
        font-size: 1rem;
    }

    .contact-message-text {
        font-size: 0.8rem;
    }
}

#price-section .owc-pricing-figma-shell {
    max-width: 980px;
    margin: 0 auto;
    padding-bottom: 120px;
    border-bottom: 1px solid #eee;
}

#price-section .owc-pricing-toggle-wrap {
    text-align: center;
}

#price-section #live-chat-payment-plans,
#price-section #live-chat-payment-plans-mobile {
    border: 1px solid rgba(65, 105, 225, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

#price-section #live-chat-payment-plans label,
#price-section #live-chat-payment-plans-mobile label {
    box-shadow: none;
    font-size: 0.84rem !important;
    padding: 0.44rem 0.78rem !important;
    border: 0;
    color: #24366c;
    background: rgba(255, 255, 255, 0.7);
    font-weight: 500 !important;
}

#price-section #live-chat-payment-plans label.active,
#price-section #live-chat-payment-plans-mobile label.active {
    background: #4169e1;
    color: #fff;
}

/* Vertical separator between payment plan options */
#price-section #live-chat-payment-plans label:not(:last-child)::after,
#price-section #live-chat-payment-plans-mobile label:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 66%;
    background: rgba(36, 54, 108, 0.86);
}

#price-section #live-chat-payment-plans label:hover:not(:last-child)::after,
#price-section #live-chat-payment-plans-mobile label:hover:not(:last-child)::after {
    background: rgba(36, 54, 108, 0.29);
}
#price-section #live-chat-payment-plans label,
#price-section #live-chat-payment-plans-mobile label {
    position: relative;
}

#price-section .owc-plan-list li .ti-check,
#price-section .owc-pricing-note .ti-check {
    display: inline-block;
    width: 18px;
    height: 18px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background-image: url('/img/check-icon.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

#price-section .owc-pricing-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#price-section .owc-pricing-vat-note {
    text-align: center;
    margin: 18px 0 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

#price-section .owc-pricing-note .ti-check {
    flex-shrink: 0;
    align-self: center;
    margin-top: -6px;
}

#plan-comparison .owc-plan-compare-title {
    margin-bottom: 45px;
    text-align: left !important;
    color: #24366c;
}

#plan-comparison .owc-plan-comparison-table {
    text-align: center;
    background: rgba(255, 255, 255, 0.36);
    border: 1px solid rgba(169, 189, 243, 0.45);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 0;
}

#plan-comparison .owc-plan-comparison-table thead th {
    border-top: 0;
    border-bottom: none !important;
    padding-top: 1.95rem;
    padding-bottom: 0.75rem;
    color: #24366c;
    font-weight: 600;
}

#plan-comparison .owc-plan-comparison-table th,
#plan-comparison .owc-plan-comparison-table td {
    border-color: transparent;
    padding: 0.9rem 0.85rem;
    vertical-align: middle;
    font-size: 18px;
}

#plan-comparison .owc-plan-comparison-table tbody td {
    border-top: none !important;
    padding: 0.15rem 0.85rem !important;
    height: 3.65rem;
    box-sizing: border-box;
}

/* Draw one clean 1px inset separator per row */
#plan-comparison .owc-plan-comparison-table thead tr,
#plan-comparison .owc-plan-comparison-table tbody tr {
    position: relative;
}

#plan-comparison .owc-plan-comparison-table thead tr::after,
#plan-comparison .owc-plan-comparison-table tbody tr::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0;
    height: 1px;
    background: rgba(169, 189, 243, 0.42);
    pointer-events: none;
}

#plan-comparison .owc-plan-comparison-table tbody tr:last-child::after {
    content: none;
}

#plan-comparison .owc-plan-comparison-table th:first-child,
#plan-comparison .owc-plan-comparison-table td:first-child {
    text-align: left;
    width: 46%;
    padding-left: 2.5rem !important;
    color: #24366c;
    font-weight: 500;
}

#plan-comparison .owc-plan-comparison-table th:not(:first-child),
#plan-comparison .owc-plan-comparison-table td:not(:first-child) {
    width: 18%;
}

#plan-comparison .owc-plan-comparison-table .owc-compare-mo {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #697db9;
    margin-top: -4px;
}

#plan-comparison .owc-plan-comparison-table .ti-check,
#plan-comparison .owc-plan-comparison-table .ti-close {
    display: inline-block;
    width: 28px;
    height: 28px;
    font-size: 0;
    line-height: 0;
    color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-bottom: 8px;
}

#plan-comparison .owc-plan-comparison-table .ti-check {
    background-image: url('/img/pricing-table-check.png');
}

#plan-comparison .owc-plan-comparison-table .ti-close {
    background-image: url('/img/pricing-table-close.png');
}

@media (max-width: 768px) {
    #price-section .owc-pricing-figma-shell {
        padding-bottom: 70px;
    }

    #price-section #live-chat-payment-plans-mobile label {
        font-size: 0.72rem !important;
        padding: 0.4rem 0.46rem !important;
    }

    #plan-comparison .owc-plan-compare-title {
        text-align: center !important;
    }

    #plan-comparison .owc-plan-comparison-table th,
    #plan-comparison .owc-plan-comparison-table td {
        font-size: 13px;
        padding: 0.6rem 0.3rem;
    }

    /* Long words (Greek, German, Polish) must not push the table wider than the screen */
    #plan-comparison .owc-plan-comparison-table tbody td {
        padding: 0.15rem 0.2rem !important;
    }

    #plan-comparison .owc-plan-comparison-table td:not(:first-child) {
        font-size: 12px;
    }

    #plan-comparison .owc-plan-comparison-table th:first-child,
    #plan-comparison .owc-plan-comparison-table td:first-child {
        width: 40%;
        padding-left: 0.75rem !important;
        overflow-wrap: anywhere;
        hyphens: auto;
    }

    #plan-comparison .owc-plan-comparison-table th:not(:first-child),
    #plan-comparison .owc-plan-comparison-table td:not(:first-child) {
        width: 20%;
    }

    #plan-comparison .owc-plan-comparison-table .ti-check,
    #plan-comparison .owc-plan-comparison-table .ti-close {
        width: 22px;
        height: 22px;
    }
}

/* FAQ: match support.php "top questions" colors and backgrounds */
#plan-comparison .owc-faq-box {
    background: rgba(248, 250, 255, 0.8);
    border-radius: 22px;
    border: 1px solid rgba(198, 212, 253, 0.6);
    box-shadow: 0 8px 18px rgba(65, 105, 225, 0.08);
}
#plan-comparison .owc-faq-box dt > a {
    color: #4169e1;
    background: transparent;
}
#plan-comparison .owc-faq-box dt > a:hover {
    background: rgba(65, 105, 225, 0.06);
    color: #2f54c7;
}
#plan-comparison .owc-faq-box dt > a.active {
    background: rgba(65, 105, 225, 0.03);
    color: #2f54c7;
}
#plan-comparison .owc-faq-box dt > a.active:hover {
    background: rgba(65, 105, 225, 0.08);
}
#plan-comparison .owc-faq-box dt > a:before,
#plan-comparison .owc-faq-box dt > a:after {
    background: #4169e1;
}
#plan-comparison .owc-faq-box dt > a.active:before,
#plan-comparison .owc-faq-box dt > a.active:after {
    background: #2f54c7;
}
#plan-comparison .owc-faq-box dd {
    color: #24366c;
    background: rgba(65, 105, 225, 0.03);
}
/* AI credit packs FAQ: one row per pack, price aligned right */
.owc-credit-packs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
    margin: 12px 0 14px;
    padding: 0;
    list-style: none;
}
.owc-credit-packs li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border: 1px solid rgba(198, 212, 253, 0.85);
    border-radius: 8px;
    background: #fff;
}
.owc-credit-packs b {
    color: #2f54c7;
    white-space: nowrap;
}
