:root {
    --mailtribe-main-color: #4D594A;
    --mailtribe-accent-color: #EC790D;
}

/* Styling for the tooltip container */
.tooltip {
    font-size: 14px;
    margin-left: 8px;
    color: white;
    position: relative;
    display: inline-block;
    cursor: pointer;
    background: var(--mailtribe-accent-color);
    font-weight: bold;
    border-radius: 25px;
    padding: 0 12px;
}

/* Styling for the tooltip content */
.tooltip .tooltiptext {
    font-weight: normal;
    visibility: hidden;
    width: 400px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Show the tooltip content on hover */
.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 768px) {
    .tooltip {
        font-size: 12px; /* Adjust font size for mobile */
    }

    .tooltip .tooltiptext {
        width: 250px; /* Adjust width for mobile */
        font-size: 12px; /* Adjust font size for mobile */
        left: auto;
        right: 0px;
        transform: translateX(0);
    }
}

/* The switch - the box around the slider */
.switch {
    margin: 0 12px;
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--mailtribe-accent-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--mailtribe-accent-color);
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.small-loading-icon {
    display: none;
    margin: 5px auto;
    border: 1px solid rgba(22, 69, 126, 0.2);
    border-top: 1px solid #16457E;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.mailtribe-pricetable-header {
    display: flex;
}

.mailtribe-pricetable-header .package,
.mailtribe-pricetable-header .user-input {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    margin-bottom: 1em;
    background-color: white;
}

.mailtribe-pricetable-header .inner {
    padding: 1.5em 1em;
}

.mailtribe-pricetable-header .package .inner {
    text-align: center;
}

.mailtribe-pricetable-header .inner p {
    margin: 0;
}

.mailtribe-pricetable-header .package-footer .price-wrapper,
.mailtribe-sticky-header .price-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    gap: .5em;
}

.mailtribe-sticky-header .paid-by-year,
.mailtribe-pricetable-header .paid-by-year {
    display: block;
    margin-bottom: 1em;
    text-align: center;
    line-height: 1;
}


.mailtribe-pricetable-header .package-footer,
.mailtribe-sticky-header .package-footer {
    text-align: center;
    margin-top: auto;
    padding: .25em 1em 1em 1em;
    background-color: white;
}

.mailtribe-pricetable-header .package-footer a.trial,
.mailtribe-sticky-header .package-footer a.trial {
    font-weight: bold;
    color: var(--mailtribe-accent-color);
    font-size: 14px;
}

.mailtribe-pricetable-header .package-footer a.button,
.mailtribe-sticky-header a.button {
    width: 100%;
    border-radius: 8px;
    display: block;
    background-color: var(--mailtribe-accent-color);
    text-align: center;
    padding: .33em;
    text-decoration: none;
    font-weight: 500;
}

.mailtribe-pricetable-header .package-footer a.button:hover,
.mailtribe-sticky-header a.button:hover {
    color: white;
    background-color: black !important;
}

.mailtribe-pricetable-header .package-footer a.trial:hover,
.mailtribe-sticky-header .package-footer a.trial:hover {
    color: black;
}

.mailtribe-pricetable-header .user-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 31%;
}

.mailtribe-pricetable-header .user-input .input-wrapper {
    width: 100%;
}

.mailtribe-pricetable-header .user-input .input-wrapper label:first-child {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: .5em;
}

.mailtribe-pricetable-header .user-input .input-wrapper .discount {
    font-size: 11px;
    font-weight: normal;
}

.mailtribe-pricetable-header .user-input .input-wrapper .pricetable-switch-wrapper span:first-child {
    display: inline-block;
    width: 40%;
    text-align: right;
}

.mailtribe-pricetable-header .package-header,
.mailtribe-sticky-header .package-header {
    background-color: var(--mailtribe-main-color);
    padding: 1.5em 1em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mailtribe-pricetable-header .plus .package-header,
.mailtribe-sticky-header .plus .package-header {
    background-color: var(--mailtribe-accent-color);
}

.mailtribe-pricetable-header .package-header h2,
.mailtribe-sticky-header .package-header h2 {
    color: white;
}

.mailtribe-pricetable-header .price,
.mailtribe-sticky-header .price {
    font-size: 30px;
    font-weight: bold;
}

.mailtribe-pricetable-header .package,
.mailtribe-sticky-header .package {
    width: 23%;
}

.mailtribe-pricetable-header .input-wrapper.contacts {
    text-align: center;
}

.mailtribe-pricetable-header #contacts {
    width: 50%;
    border-radius: 14px;
    padding: .5em 1em;
    background-color: white;
    border: 1px solid black;
    margin: auto;
}

.mailtribe-sticky-header {
    display: none;
    justify-content: flex-end;
    position: sticky;
    top: 0;
    background-color: #FCF3ED;
    z-index: 9999;
}
.admin-bar .mailtribe-sticky-header {
    top: 32px;
}

.mailtribe-sticky-header .package {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
}

.mailtribe-pricetable {
    width: 100%;
    overflow-x: auto;
}

.mailtribe-pricetable table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: left;
}

.mailtribe-pricetable th,
.mailtribe-pricetable td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.mailtribe-pricetable td:first-child {
    width: 31%;
    font-weight: bold;
    background-color: #FCF3ED;
}

.mailtribe-pricetable td:not(:first-child) {
    width: 23%;
}

@media screen and (max-width: 1024px) {

    .mailtribe-pricetable-header {
        flex-wrap: wrap;
    }

    .mailtribe-pricetable-header .user-input {
        width: 100%;
        border: none;
        height: 400px;
    }

    .mailtribe-pricetable-header .package,
    .mailtribe-sticky-header .package {
        width: 33.33%;
    }

    .mailtribe-sticky-header .package h2 {
        font-size: 20px;
    }

    .mailtribe-sticky-header .package .price-wrapper {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .mailtribe-sticky-header .package .price-wrapper .price {
        line-height: 1.2;
    }

    .mailtribe-sticky-header .package a.button {
        padding: 0;
    }

    .mailtribe-pricetable tr {
        display: flex;
        flex-wrap: wrap;
    }

    .mailtribe-pricetable td {
        font-size: 14px;
    }

    .mailtribe-pricetable td:not(:first-child) {
        display: block;
        padding-left: 15px;
        flex: 33%;
        box-sizing: border-box;
    }

    .mailtribe-pricetable td:first-child {
        width: 100%;
        text-align: left;
        padding-left: 15px;
    }

    .mailtribe-pricetable td::before {
        content: attr(data-label);
        display: none;
    }
}

@media screen and (max-width: 786px) {

    .mailtribe-pricetable-header .package {
        width: 100%;
    }

    .mailtribe-sticky-header .package-footer {
        padding: .25em;
    }
}

@media screen and (max-width: 600px) {
    .admin-bar .mailtribe-sticky-header {
        top: 0;
    }
}