/* ===================================================================
   Pricing Table Shortcode Styles - Final Version
   =================================================================== */

/* Main container for the shortcode */
.pricing-container-shortcode {
    font-family: "Overused Grotesk", Sans-serif;
    width: 100%;
    margin: 0 auto;
}

/* --- Header Layout --- */
.pricing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows wrapping on very narrow screens */
    gap: 20px;
    margin-bottom: 20px;
}

.pricing-note{
    width: 75%;
    text-align: center;
    margin-bottom: 10px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discount-label {
    color: #6F37DB;
    font-weight: 400;
    font-size: 16px;
}

.currency-label {
    color: #858496;
    font-size: 14px;
    margin: 0;
}

/* --- Pill Toggle Styles --- */
.pill-toggle .toggle-track {
    display: flex;
    position: relative;
    background-color: #6F37DB;
    border-radius: 50px;
    padding: 5px;
    cursor: pointer;
    user-select: none;
}
.pill-toggle .toggle-option {
    padding: 9px 25px;
    font-weight: 600;
    font-size: 16px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease-in-out;
}
.pill-toggle .toggle-track::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(50% - 5px);
    height: calc(100% - 10px);
    background-color: #ffffff;
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}
/* Unchecked (Left position = Yearly Default): Make Yearly dark, Monthly gray */
.pill-toggle input:not(:checked) + .toggle-track .monthly { color: #212529; }
.pill-toggle input:not(:checked) + .toggle-track .yearly { color: white; }
.pill-toggle input:checked + .toggle-track .monthly { color: white; }
.pill-toggle input:checked + .toggle-track .yearly { color: #212529; }

/* The slider movement logic stays the same (Right = Checked) */
.pill-toggle input:checked + .toggle-track::before { transform: translateX(100%); }
.pill-toggle input { display: none; }


/* --- Pricing Grid & Plans --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    align-items: start;
}
.plan {
    position: relative;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 27px;
    padding-top: 50px;
    box-shadow: 0 0 10px #20275E1A;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan:not(.enterprise) {
    padding-bottom: 50%;
}

.plan .hat{
    content: '';
    position: absolute;
    border-radius: 15px 15px 0 0;
    height: 30px;
    top: 0;
    left: 0;
    background-color: #BDACF0;
    width: 100%;
}

.plan.enterprise .hat{
    background-color: #6F37DB;
}

.plan h2 {
    font-size: 18px; font-weight: 600; margin-top: 0; margin-bottom: 0; color: #000000;
}
.plan .price {
    font-size: 45px; font-weight: 300; margin: 0;
}
.plan .price span {
    font-size: 16px; font-weight: 400; color: #000000;
}
.plan .custom-price {
    font-size: 18px; font-weight: 500; margin-top: 45px; margin-bottom: 0px;
}

.plan.enterprise .custom-price {
        margin-top: 36px;
    margin-bottom: 7px;
}
.plan ul {
    list-style: none; padding: 0; margin: 0; color: #000000;
    font-size: 18px; flex-grow: 1;
}
.plan ul li {
    padding: 10px 0;
    border-top: 2px solid #DEDEF933;
    position: relative;
    padding-left: 1.5rem;
}
.plan ul li:first-child::before {
    content: none;
    padding-left: unset;
}

.plan ul li:first-child {
    border-top: none;
    padding-left: unset;
}
.plan ul li::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236F37DB' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425z'/%3E%3C/svg%3E");
    position: absolute;
    left: 0;
    top: 12px;
}


.plan ul li:first-child { border-top: none; }
.plan.enterprise ul li a {
    color: #6F37DB; text-decoration: none; position: relative; display: inline-block;
}
.plan.enterprise ul li a::after {
    content: ''; position: absolute; width: 100%; transform: scaleX(0); height: 1px;
    bottom: -2px; left: 0; background-color: #6F37DB; transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}
.plan.enterprise ul li a:hover::after { transform: scaleX(1); transform-origin: bottom left; }

.toggle-track {
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 992px) {
.plan.enterprise{
    transform: scale(1.05);
    box-shadow: 0 0 20px #DEDEF9;
    border-color: #DEDEF9;
    position: relative;
}
}
/* --- Responsive Adjustments --- */
@media (max-width: 992px) {
    .pricing-container-shortcode {
        width: 90%;
    }
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .plan:hover {
        transform: none;
        box-shadow: 0 0 10px #20275E1A;
        border-color: transparent;
    }
}

/* --- Mobile Header Layout --- */
@media (max-width: 768px) {

    .plan.enterprise {
        box-shadow: 0 0 20px #DEDEF9;
        border: 2px solid #6F37DB;
    }
    .pricing-header {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .header-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 10px;
    }
    .toggle-container {
        justify-content: center;
        width: 100%;
    }
    .pill-toggle {
        width: 100%;
        max-width: 330px;
    }
    .pill-toggle .toggle-option {
        flex: 1;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }

    .pricing-note{
        width: 100%;
    }
}