/* ================================================
   Langrushi Card Widget — v1.3.0
   Author: Shrikant (shreebhandare@gmail.com)
   ================================================ */

/* ── Widget wrapper: stretch to fill Elementor column height ── */
.elementor-widget-langrushi_card {
    display: flex;
    flex-direction: column;
}

/* ── Card ──────────────────────────────────────────────────── */
.lgr-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    background-color: #cef567;
    border-radius: 20px;
    padding: 24px 20px;
    box-sizing: border-box;
    width: 100%;
}

/*
 * Match Height mode:
 * The card stretches to fill the Elementor column's full height.
 * The spacer div grows to fill empty space, pushing buttons to bottom.
 */
.lgr-card--match-height {
    flex: 1 1 auto;   /* grow to fill column height */
    height: 100%;
}

.lgr-card--match-height .lgr-spacer {
    flex: 1 1 auto;   /* push buttons to bottom */
}

/* Elementor equal height columns support */
.elementor-column .elementor-widget-wrap {
    /* Elementor handles this — our widget stretches via flex: 1 */
}

/* ── Pill ──────────────────────────────────────────────────── */
.lgr-pill-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.lgr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #4caf6e;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

.lgr-pill-text {
    color: #ffffff;
    line-height: 1;
}

.lgr-pill-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.lgr-pill-icon i {
    color: #ffffff;
    font-size: 16px;
    line-height: 1;
}

.lgr-pill-icon svg {
    width: 16px;
    height: 16px;
    fill: #ffffff;
}

.lgr-pill-icon svg path {
    fill: #ffffff;
}

/* ── Image ─────────────────────────────────────────────────── */
.lgr-card-image {
    width: 100%;
    display: flex;
    justify-content: center;
}

.lgr-card-image img {
    max-width: 100%;
    height: 120px;
    width: 100%;
    object-fit: contain;
    display: block;
}

/* ── Description ───────────────────────────────────────────── */
.lgr-description {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0;
    width: 100%;
}

/* ── Pricing Row ───────────────────────────────────────────────
   Layout: [hours | vertically centered] [vertical line] [old price / new price stacked]
   ─────────────────────────────────────────────────────────── */
.lgr-pricing-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.lgr-hours-wrap {
    display: flex;
    align-items: center;
}

.lgr-hours {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Vertical divider */
.lgr-divider {
    width: 2px;
    height: 36px;
    background-color: #1a1a1a;
    flex-shrink: 0;
    align-self: center;
    border-radius: 2px;
}

/* Old price above, new price below */
.lgr-price-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.lgr-old-price {
    font-size: 14px;
    color: #888888;
    text-decoration: line-through;
    line-height: 1.2;
}

.lgr-new-price {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

/* ── Matched Pricing Styling ────────────────────────────────
   When toggle is ON: Duration and New Price share styling
   Old Price is slightly smaller and lighter
   ─────────────────────────────────────────────────────────── */
.lgr-card--matched-pricing .lgr-hours,
.lgr-card--matched-pricing .lgr-new-price {
    font-size: var(--lgr-matched-font-size, 20px);
    font-weight: 700;
    line-height: 1.2;
}

.lgr-card--matched-pricing .lgr-old-price {
    text-decoration: line-through;
    line-height: 1.2;
    /* Size and opacity controlled via Elementor controls */
}

/* ── Spacer (match height only) ────────────────────────────── */
.lgr-spacer {
    flex: 0 0 0;  /* default: no space; overridden by .lgr-card--match-height */
}

/* ── Buttons ───────────────────────────────────────────────── */
.lgr-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: center;
}

.lgr-btn {
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    outline: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    line-height: 1;
    white-space: nowrap;
}

.lgr-btn:hover {
    transform: translateY(-1px);
}

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

/* Details Button */
.lgr-btn-details {
    background-color: #2d3e50;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    min-width: 160px;
}

.lgr-btn-details:hover {
    background-color: #1a2a38;
}

/* CTA Button */
.lgr-btn-cta {
    background-color: #e53935;
    color: #ffffff !important;
    padding: 12px 30px;
    border-radius: 50px;
    min-width: 160px;
}

.lgr-btn-cta:hover {
    background-color: #c62828;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 767px) {
    .lgr-description { font-size: 18px; }
    .lgr-new-price   { font-size: 18px; }
    .lgr-card--matched-pricing .lgr-hours,
    .lgr-card--matched-pricing .lgr-new-price {
        font-size: 18px;
    }
}