.massage-price-card {
    display: flex;
    justify-content: left;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: space-between;
    height: 100%;
}

.price-display {
    text-align: left;
    margin-bottom: 2rem;
}

.currency {
    font-size: 2rem;
    font-weight: 600;
    color: #1f2937;
    vertical-align: top;
    line-height: 1;
}

.price {
    font-size: 3.75rem;
    font-weight: 700;
    color: #1f2937;
    display: none;
    line-height: 1;
}

.price.active {
    display: inline;
}

.period-text {
    color: #6b7280;
    font-size: 1rem;
    margin-left: 0.25rem;
}

/* Remove features list styles */
.features-list,
.feature-item,
.checkmark {
    display: none;
}

.button {
    /* display: inline-block;
    width: 100%;
    background-color: #7c3aed;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s; */
}

.button:hover {
    /* background-color: #6d28d9;
    color: white; */
}

.card-content {
    /* background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    width: 100%;
    max-width: 28rem;
    padding: 2rem; */
}

.card-content h1 {
    /* font-size: 1.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: #1c1917; */
}

.subtitle {
    /* font-size: 0.875rem;
    color: #44403c;
    margin-bottom: 1.5rem; */
}


.card-content-bottom {
    width: 100%;
}

.duration-tabs {
    display: flex;
    flex-wrap: wrap;
    /* margin-bottom: 1.5rem; */
    position: relative;
    justify-content: center;
}

.duration-input {
    position: absolute;
    opacity: 0;
}

.duration-label {
    padding: 0.75rem 1rem;  /* Changed default padding */
    font-size: 12px;
    color: #78716c;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 400;
    line-height: 26px;
    text-transform: uppercase;
}

.duration-input:checked + .duration-label {
    color: #1c1917;
    font-weight: 500;
}

/* .duration-input:checked + .duration-label::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #1c1917;
} */

.price-panel {
    display: none;
    width: 100%;
    order: 99;
    padding: 1rem 0;
}

.duration-input:checked + .duration-label + .price-panel {
    display: block;
}

.price-display {
    margin-bottom: 2rem;
}

.price-info {
    align-items: baseline;
    display: flex;
        
}

.price-info.active {
    display: flex;
}

.price {
    font-size: 3rem;
    font-weight: 300;
    color: #1c1917;
    display: block;
}

.duration {
    margin-left: 0.5rem;
    color: #78716c;
}

/* Animation styles */

.massage-price-card *[data-animation="line-text-animation-2"] .line {
    overflow: hidden;
}

.buttons-container {
    display: flex;
    gap: 1rem;
    /* padding-bottom: 16px; */
}

.card-content-bottom > .buttons-container .button-wrapper {
    padding-bottom: 16px;
} 

.button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.book-button {
    border: 1px solid #1c1917;
    background: transparent;
    color: #1c1917;
}

.book-button:hover {
    background-color: #1c1917;
    color: white;
}

.info-button {
    border: 1px solid #d6d3d1;
    color: #78716c;
    /* Share core button styles */
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-family: inherit;
}

.info-button:hover {
    background-color: #f5f5f4;
}

/* Popover styles */
.button-wrapper[data-popover] {
    position: relative;
}

.popover-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    min-width: 250px;
    max-width: 400px;
    color: #333;
    z-index: 100; /* Increase z-index */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: all 0.3s ease;
    cursor: default; /* Add default cursor for non-link content */
}

.popover-content.active {
    visibility: visible;
    opacity: 1;
    bottom: calc(100% + 15px);
}

.popover-content a {
    color: inherit;
    text-decoration: underline;
    cursor: pointer; /* Show pointer cursor only on links */
    position: relative;
    z-index: 2;
    pointer-events: all;
    display: inline-block;
}

.popover-content a:hover {
    /* opacity: 0.8; */
}

/* .popover-content:after,
.popover-content:before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.popover-content:before {
    border: 8px solid transparent;
    border-top-color: #eee;
    bottom: -16px;
}

.popover-content:after {
    border: 7px solid transparent;
    border-top-color: #fff;
    bottom: -14px;
} */

/* Add styles for single duration */
.duration-tabs.single-item-duration .duration-label {
    display: none;
}

.duration-tabs.single-item-duration .price-panel {
    display: block;
    padding-top: 0;
}

.elementor-widget-price_card_duration_switcher {
    /* width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    background: #ffffff; */
}

.elementor-widget-price_card_duration_switcher .card-content {
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    display: flex;
    flex-direction: column;
}

.elementor-widget-price_card_duration_switcher .card-content h1 {
    margin: 0 0 8px;
}

.elementor-widget-price_card_duration_switcher .subtitle {
    margin: 0 0 3px;
}
.elementor-widget-price_card_duration_switcher .description {
    margin-bottom: 2rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.5;
}

.elementor-widget-price_card_duration_switcher .description p {
    margin: 0 0 1rem 0;
}

.elementor-widget-price_card_duration_switcher .description p:last-child {
    margin-bottom: 0;
}

.panel-buttons {
    margin-top: 1.5rem;
}

.elementor-widget-price_card_duration_switcher .button {
    gap: 0;
    max-width: 161px;
}

.elementor-widget-price_card_duration_switcher .button .arrow-icon {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transform: translateX(9px);
}

/* Button rise effect*/

.button-wrapper {
    position: relative;
    flex: 1;
    max-width: 161px;
}

.button.arrax-button-rise {
    position: relative;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    background: transparent;
    /* transition: color 0.5s ease-in-out, border-color 0.5s ease-in-out; */
    transition: all 0.5s ease-in-out;
}

.button.arrax-button-rise:hover{
    background: transparent !important;
}

.button.arrax-button-rise span {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    border-radius: 50%;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    background-color: #462c6d;
}

.button.arrax-button-rise:hover span {
    width: 225%;
    height: 300px;
}

.button.arrax-button-rise:active {
    background-color: #744ab5;
}

/* Overlay styles */
.elementor-widget-price_card_duration_switcher .elementor-widget-container[data-overlay="yes"] {
    background-blend-mode: multiply;
}

@media screen and (max-width: 767px) {
    .massage-price-card {    
        align-items: center;
    }

    .price-display {
        text-align: center;
    }

    .price-info {
        flex-direction: column;
        align-items: center;
    }

    .price-info.active {
        display: block;
    }

    .price {
        font-size: 2.5rem;
    }

    .duration {
        margin-left: 0;
        margin-top: 0.5rem;
    }
    .buttons-container {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .button-wrapper {
        width: 100%;
    }
    
}