/* =============================================================
   Stellar Pricing Tables — Front-End Styles
   ============================================================= */

/* ---- Shared base ------------------------------------------ */
.spt-wrap {
    font-family: inherit;
    max-width: 100%;
    margin: 0 auto;
}

.spt-starting-at {
    text-align: center;
    font-style: italic;
    margin: 0 0 8px;
    color: #888;
    font-size: 0.85em;
}

/* ---- Service item ----------------------------------------- */
.spt-service {
    border-bottom: 1px solid #efefef;
    padding: 10px 0;
}
.spt-service:last-child {
    border-bottom: none;
}
.spt-service-inner {
    display: flex;
    flex-direction: column;
}
.spt-service-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.spt-service-name {
    font-weight: 700;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex: 1;
}
.spt-service-price {
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    color: inherit;
}
.spt-service-meta {
    margin-top: 3px;
    font-size: 0.85em;
    color: #666;
    font-style: italic;
}
.spt-duration {
    margin-right: 6px;
}
.spt-panel {
    padding: 12px 0;
}
.spt-services {
    padding: 0;
}

/* ---- Tier heading (stacked / columns) --------------------- */
.spt-tier-heading {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid currentColor;
}

/* =============================================================
   TABS
   ============================================================= */
.spt-tabs .spt-tab-nav {
    display: flex;
    list-style: none;
    margin: 0 0 -1px;
    padding: 0;
    flex-wrap: wrap;
    gap: 4px;
}
.spt-tabs .spt-tab-nav li {
    padding: 8px 18px;
    cursor: pointer;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px 4px 0 0;
    font-size: 0.9em;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.spt-tabs .spt-tab-nav li:hover {
    background: #e8e8e8;
}
.spt-tabs .spt-tab-nav li.active {
    background: #222;
    color: #fff;
    border-color: #222;
}
.spt-tabs .spt-tab-content {
    display: none;
    border: 1px solid #ddd;
    padding: 16px;
    background: #fff;
}
.spt-tabs .spt-tab-content.spt-active {
    display: block;
}

/* =============================================================
   SLIDER
   ============================================================= */
.spt-slider .spt-slider-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}
.spt-slider .spt-prev,
.spt-slider .spt-next {
    background: #222;
    color: #fff;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}
.spt-slider .spt-prev:hover,
.spt-slider .spt-next:hover {
    background: #555;
}
.spt-slider .spt-slide-label {
    font-weight: 700;
    font-size: 1em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-width: 160px;
    text-align: center;
}
.spt-slider .spt-slides {
    border: 1px solid #ddd;
    padding: 16px;
    background: #fff;
    position: relative;
    overflow: hidden;
}
.spt-slider .spt-slide {
    display: none;
}
.spt-slider .spt-slide.spt-active {
    display: block;
}

/* =============================================================
   STACKED
   ============================================================= */
.spt-stacked .spt-tier-block {
    margin-bottom: 32px;
    border: 1px solid #ddd;
    padding: 16px;
    background: #fff;
}
.spt-stacked .spt-tier-block:last-child {
    margin-bottom: 0;
}

/* =============================================================
   COLUMNS
   ============================================================= */
.spt-columns {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.spt-columns .spt-column {
    flex: 1;
    border: 1px solid #ddd;
    padding: 16px;
    background: #fff;
    min-width: 0;
}
@media ( max-width: 680px ) {
    .spt-columns {
        flex-direction: column;
    }
}

/* =============================================================
   Block editor preview styles
   ============================================================= */
.spt-block-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #f9f9f9;
    border: 1px dashed #ccc;
    border-radius: 4px;
    font-size: 0.9em;
}
.spt-block-hint {
    font-size: 0.8em;
    color: #888;
    margin: 0;
}
