/* TREJKA Project Calculator - Frontend Styles */

.tpc-calculator {
    --tpc-primary: #BC0000;
    --tpc-primary-dark: #8B0000;
    --tpc-success: #10b981;
    --tpc-text: #111827;
    --tpc-muted: #6b7280;
    --tpc-border: #e5e7eb;
    --tpc-bg-soft: #f9fafb;

    font-family: inherit;
    color: var(--tpc-text);
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
}

.tpc-calculator * { box-sizing: border-box; }

.tpc-section-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px;
    padding: 0;
}

.tpc-calc-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
}

@media (max-width: 900px) {
    .tpc-calc-grid { grid-template-columns: 1fr; }
}

/* === SERVICES === */
.tpc-services-column { min-width: 0; }

.tpc-services-group { margin-bottom: 30px; }
.tpc-category-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--tpc-muted);
    margin: 0 0 14px;
    padding: 0;
    font-weight: 600;
}

.tpc-services-list.tpc-layout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.tpc-services-list.tpc-layout-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tpc-service-card {
    background: #fff;
    border: 1px solid var(--tpc-border);
    border-radius: 10px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.15s;
}
.tpc-service-card:hover {
    border-color: var(--tpc-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.tpc-service-card.is-added {
    border-color: var(--tpc-success);
    background: #f0fdf4;
}

.tpc-service-info { flex: 1; }
.tpc-service-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    padding: 0;
    color: var(--tpc-text);
}
.tpc-service-desc {
    font-size: 13px;
    color: var(--tpc-muted);
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.4;
}
.tpc-service-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--tpc-primary);
}

.tpc-service-actions { margin-top: auto; }

.tpc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid var(--tpc-border);
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    color: var(--tpc-text);
    transition: all 0.15s;
    font-family: inherit;
}
.tpc-btn:hover { border-color: var(--tpc-primary); color: var(--tpc-primary); }
.tpc-btn-add { background: var(--tpc-primary); color: #fff; border-color: var(--tpc-primary); width: 100%; }
.tpc-btn-add:hover { background: var(--tpc-primary-dark); border-color: var(--tpc-primary-dark); color: #fff; }
.tpc-btn-add.is-added { background: var(--tpc-success); border-color: var(--tpc-success); }
.tpc-btn-add.is-added:hover { background: #059669; border-color: #059669; }

.tpc-btn-primary {
    background: var(--tpc-primary);
    color: #fff;
    border-color: var(--tpc-primary);
    width: 100%;
}
.tpc-btn-primary:hover { background: var(--tpc-primary-dark); color: #fff; }
.tpc-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e1;
    border-color: #cbd5e1;
    color: #fff;
}
.tpc-btn-large { padding: 14px 28px; font-size: 16px; }

.tpc-btn-icon { font-size: 18px; line-height: 1; font-weight: 700; }

/* === CART STICKY === */
.tpc-cart-column { position: relative; }
.tpc-cart-sticky {
    position: sticky;
    top: 20px;
    background: #fff;
    border: 2px solid var(--tpc-border);
    border-radius: 12px;
    overflow: hidden;
}

.tpc-cart-header {
    background: var(--tpc-primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tpc-cart-header h3 { margin: 0; padding: 0; font-size: 16px; color: #fff; }
.tpc-cart-count {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.tpc-cart-items {
    padding: 16px 20px;
    max-height: 350px;
    overflow-y: auto;
}
.tpc-cart-empty {
    text-align: center;
    color: var(--tpc-muted);
    padding: 30px 10px;
    margin: 0;
    font-size: 14px;
}

.tpc-cart-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tpc-border);
}
.tpc-cart-item:last-child { border-bottom: none; }
.tpc-cart-item-info { flex: 1; min-width: 0; }
.tpc-cart-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--tpc-text);
    word-break: break-word;
}
.tpc-cart-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--tpc-muted);
}
.tpc-cart-qty {
    display: flex;
    align-items: center;
    gap: 4px;
}
.tpc-cart-qty button {
    width: 22px;
    height: 22px;
    border: 1px solid var(--tpc-border);
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tpc-cart-qty button:hover { border-color: var(--tpc-primary); color: var(--tpc-primary); }
.tpc-cart-qty input {
    width: 38px;
    height: 22px;
    padding: 0 4px;
    border: 1px solid var(--tpc-border);
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
}
.tpc-cart-item-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tpc-primary);
    text-align: right;
    white-space: nowrap;
}
.tpc-cart-item-price small { display: block; color: var(--tpc-muted); font-weight: 400; font-size: 10px; }
.tpc-cart-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    align-self: flex-start;
}

.tpc-cart-summary {
    padding: 16px 20px;
    border-top: 2px solid var(--tpc-border);
    background: var(--tpc-bg-soft);
}
.tpc-cart-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}
.tpc-cart-subtotal span { color: var(--tpc-muted); font-size: 13px; }
.tpc-cart-subtotal strong { font-size: 22px; color: var(--tpc-primary); }
.tpc-cart-disclaimer { margin: 6px 0 0; padding: 0; }
.tpc-cart-disclaimer small { color: var(--tpc-muted); font-size: 11px; line-height: 1.4; }

.tpc-cart-sticky .tpc-show-form-btn {
    margin: 0;
    border-radius: 0;
    padding: 16px;
    width: 100%;
    border: none;
}

/* === FORM === */
.tpc-form-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--tpc-border);
}

.tpc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
@media (max-width: 600px) {
    .tpc-form-grid { grid-template-columns: 1fr; }
}

.tpc-field { margin: 0; }
.tpc-field-full { grid-column: 1 / -1; }
.tpc-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--tpc-text);
}
.tpc-field .required { color: var(--tpc-primary); }
.tpc-field input,
.tpc-field select,
.tpc-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--tpc-border);
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    color: var(--tpc-text);
    font-family: inherit;
}
.tpc-field input:focus,
.tpc-field select:focus,
.tpc-field textarea:focus {
    outline: none;
    border-color: var(--tpc-primary);
    box-shadow: 0 0 0 3px rgba(188,0,0,0.1);
}

.tpc-checkbox {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 13px !important;
    color: var(--tpc-muted) !important;
    line-height: 1.4;
}
.tpc-checkbox input { margin-top: 3px; }
.tpc-checkbox span { flex: 1; }

.tpc-form-actions {
    text-align: center;
    margin-top: 20px;
}

.tpc-form-message {
    padding: 16px 20px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}
.tpc-form-message.success {
    background: #d1fae5;
    color: #065f46;
}
.tpc-form-message.error {
    background: #fee2e2;
    color: #991b1b;
}

.tpc-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--tpc-muted);
}


/* ============================================
   v1.1 — CALCULATOR FORM (Image 2 style)
   ============================================ */

.tpc-form-builder {
    --tpc-c-primary: #BC0000;
    --tpc-c-primary-bg: rgba(188, 0, 0, 0.05);
    --tpc-c-primary-border: rgba(188, 0, 0, 0.4);
    --tpc-c-text: #1f2937;
    --tpc-c-text-soft: #4b5563;
    --tpc-c-muted: #9ca3af;
    --tpc-c-border: #e5e7eb;
    --tpc-c-border-hover: #d1d5db;
    --tpc-c-bg: #ffffff;
    --tpc-c-bg-soft: #f9fafb;
    --tpc-radius: 10px;
    --tpc-radius-lg: 14px;
    --tpc-shadow: 0 1px 3px rgba(0,0,0,0.04);
    --tpc-shadow-card: 0 4px 12px rgba(0,0,0,0.06);

    margin: 30px 0;
    color: var(--tpc-c-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

/* Layout */
.tpc-form-builder .tpc-form-grid-layout {
    display: grid;
    gap: 24px;
}
.tpc-form-builder.tpc-form-layout-vertical .tpc-form-grid-layout {
    grid-template-columns: 1fr 360px;
}
.tpc-form-builder.tpc-form-layout-inline .tpc-form-grid-layout {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}
@media (max-width: 980px) {
    .tpc-form-builder.tpc-form-layout-vertical .tpc-form-grid-layout {
        grid-template-columns: 1fr;
    }
}

/* === LEFT — fields card === */
.tpc-form-builder .tpc-form-fields {
    background: var(--tpc-c-bg);
    border: 1px solid var(--tpc-c-border);
    border-radius: var(--tpc-radius-lg);
    padding: 32px;
    box-shadow: var(--tpc-shadow);
}

.tpc-form-builder .tpc-form-description {
    color: var(--tpc-c-text-soft);
    font-size: 14px;
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tpc-c-border);
}

.tpc-form-builder .tpc-form-field {
    margin-bottom: 26px;
}
.tpc-form-builder .tpc-form-field:last-child {
    margin-bottom: 0;
}

.tpc-form-builder .tpc-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--tpc-c-text);
}
.tpc-form-builder .tpc-field-label .required {
    color: var(--tpc-c-primary);
    margin-left: 2px;
}

.tpc-form-builder .tpc-field-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--tpc-c-muted);
}

/* Generic inputs */
.tpc-form-builder .tpc-form-control,
.tpc-form-builder input[type=text],
.tpc-form-builder input[type=email],
.tpc-form-builder input[type=tel],
.tpc-form-builder input[type=url],
.tpc-form-builder input[type=number],
.tpc-form-builder textarea,
.tpc-form-builder select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--tpc-c-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--tpc-c-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}
.tpc-form-builder .tpc-form-control:focus,
.tpc-form-builder input:focus,
.tpc-form-builder textarea:focus,
.tpc-form-builder select:focus {
    outline: none;
    border-color: var(--tpc-c-primary);
    box-shadow: 0 0 0 3px var(--tpc-c-primary-bg);
}

/* === RADIO CARDS (Image 2 style) === */
.tpc-form-builder .tpc-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 600px) {
    .tpc-form-builder .tpc-radio-group {
        grid-template-columns: 1fr;
    }
}

.tpc-form-builder .tpc-radio-item {
    cursor: pointer;
    display: block;
    margin: 0;
}
.tpc-form-builder .tpc-radio-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.tpc-form-builder .tpc-radio-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1.5px solid var(--tpc-c-border);
    border-radius: var(--tpc-radius);
    transition: all 0.15s;
    background: #fff;
    min-height: 64px;
    box-sizing: border-box;
}
.tpc-form-builder .tpc-radio-box:hover {
    border-color: var(--tpc-c-border-hover);
}
.tpc-form-builder .tpc-radio-dot {
    width: 18px;
    height: 18px;
    border: 2px solid var(--tpc-c-border);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.15s;
    position: relative;
    background: #fff;
}
.tpc-form-builder .tpc-radio-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.tpc-form-builder .tpc-radio-title {
    font-weight: 600;
    color: var(--tpc-c-text);
    font-size: 14px;
    line-height: 1.3;
}
.tpc-form-builder .tpc-radio-subtitle {
    font-size: 12.5px;
    color: var(--tpc-c-muted);
    line-height: 1.3;
}
.tpc-form-builder .tpc-radio-item input:checked + .tpc-radio-box,
.tpc-form-builder .tpc-radio-item.is-selected .tpc-radio-box {
    border-color: var(--tpc-c-primary);
    background: var(--tpc-c-primary-bg);
}
.tpc-form-builder .tpc-radio-item input:checked + .tpc-radio-box .tpc-radio-dot,
.tpc-form-builder .tpc-radio-item.is-selected .tpc-radio-dot {
    border-color: var(--tpc-c-primary);
    background: var(--tpc-c-primary);
    box-shadow: inset 0 0 0 3px #fff;
}
.tpc-form-builder .tpc-radio-item input:checked + .tpc-radio-box .tpc-radio-title,
.tpc-form-builder .tpc-radio-item.is-selected .tpc-radio-title {
    color: var(--tpc-c-primary);
}

/* === CHECKBOXES (Image 2 style) === */
.tpc-form-builder .tpc-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tpc-form-builder .tpc-checkbox-item {
    cursor: pointer;
    display: block;
    margin: 0;
}
.tpc-form-builder .tpc-checkbox-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.tpc-form-builder .tpc-checkbox-box {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    border: 1.5px solid var(--tpc-c-border);
    border-radius: 8px;
    transition: all 0.15s;
    background: #fff;
    gap: 12px;
}
.tpc-form-builder .tpc-checkbox-box:hover {
    border-color: var(--tpc-c-border-hover);
}
.tpc-form-builder .tpc-checkbox-mark {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--tpc-c-border);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.15s;
    background: #fff;
}
.tpc-form-builder .tpc-checkbox-label {
    flex: 1;
    font-size: 14px;
    color: var(--tpc-c-text);
}
.tpc-form-builder .tpc-checkbox-item input:checked + .tpc-checkbox-box,
.tpc-form-builder .tpc-checkbox-item.is-checked .tpc-checkbox-box {
    border-color: var(--tpc-c-primary);
    background: var(--tpc-c-primary-bg);
}
.tpc-form-builder .tpc-checkbox-item input:checked + .tpc-checkbox-box .tpc-checkbox-mark,
.tpc-form-builder .tpc-checkbox-item.is-checked .tpc-checkbox-mark {
    background: var(--tpc-c-primary);
    border-color: var(--tpc-c-primary);
    color: #fff;
}
.tpc-form-builder .tpc-checkbox-item input:checked + .tpc-checkbox-box .tpc-checkbox-label,
.tpc-form-builder .tpc-checkbox-item.is-checked .tpc-checkbox-label {
    color: var(--tpc-c-text);
    font-weight: 500;
}

/* Price tag inside checkbox/radio */
.tpc-form-builder .tpc-opt-price {
    font-weight: 600;
    font-size: 12.5px;
    color: var(--tpc-c-primary);
    background: var(--tpc-c-primary-bg);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
    margin-left: 8px;
}
.tpc-form-builder .tpc-opt-price-zero {
    color: #059669;
    background: rgba(16, 185, 129, 0.08);
}

/* === SLIDER === */
.tpc-form-builder .tpc-slider-wrap {
    padding: 8px 0;
}
.tpc-form-builder .tpc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    margin: 18px 0 10px;
}
.tpc-form-builder .tpc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tpc-c-primary);
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(188, 0, 0, 0.3);
    transition: transform 0.15s;
}
.tpc-form-builder .tpc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.tpc-form-builder .tpc-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--tpc-c-primary);
    cursor: pointer;
    border: 4px solid #fff;
    box-shadow: 0 2px 8px rgba(188, 0, 0, 0.3);
}
.tpc-form-builder .tpc-slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--tpc-c-muted);
    margin-top: 8px;
}
.tpc-form-builder .tpc-slider-current {
    background: var(--tpc-c-primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 12px;
}
.tpc-form-builder .tpc-slider-current strong {
    font-size: 14px;
}

/* === NUMBER === */
.tpc-form-builder .tpc-number-wrap {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--tpc-c-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.tpc-form-builder .tpc-number-wrap button {
    width: 38px;
    height: 40px;
    border: none;
    background: var(--tpc-c-bg-soft);
    color: var(--tpc-c-text);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
    line-height: 1;
}
.tpc-form-builder .tpc-number-wrap button:hover {
    background: #e5e7eb;
}
.tpc-form-builder .tpc-number {
    width: 70px !important;
    text-align: center;
    border: none !important;
    font-size: 14px;
    height: 40px;
    background: transparent !important;
    -moz-appearance: textfield;
    box-shadow: none !important;
    padding: 0 !important;
}
.tpc-form-builder .tpc-number::-webkit-outer-spin-button,
.tpc-form-builder .tpc-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.tpc-form-builder .tpc-num-unit {
    padding: 0 14px;
    font-size: 13px;
    color: var(--tpc-c-muted);
    background: var(--tpc-c-bg-soft);
    border-left: 1.5px solid var(--tpc-c-border);
    height: 40px;
    display: flex;
    align-items: center;
}

/* === TOGGLE === */
.tpc-form-builder .tpc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1.5px solid var(--tpc-c-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    gap: 14px;
    transition: all 0.15s;
    margin: 0;
}
.tpc-form-builder .tpc-toggle-row:hover {
    border-color: var(--tpc-c-border-hover);
}
.tpc-form-builder .tpc-toggle-row.is-checked {
    border-color: var(--tpc-c-primary);
    background: var(--tpc-c-primary-bg);
}
.tpc-form-builder .tpc-toggle-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.tpc-form-builder .tpc-toggle-text {
    font-size: 14px;
    font-weight: 600;
}
.tpc-form-builder .tpc-toggle {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.tpc-form-builder .tpc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.tpc-form-builder .tpc-toggle-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #cbd5e1;
    transition: 0.2s;
    border-radius: 26px;
}
.tpc-form-builder .tpc-toggle-slider:before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    transition: 0.2s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.tpc-form-builder .tpc-toggle input:checked + .tpc-toggle-slider {
    background: var(--tpc-c-primary);
}
.tpc-form-builder .tpc-toggle input:checked + .tpc-toggle-slider:before {
    transform: translateX(20px);
}

/* === SUMMARY CARD === */
.tpc-form-builder .tpc-form-summary {
    position: relative;
}
.tpc-form-builder .tpc-summary-card {
    background: var(--tpc-c-bg);
    border: 1px solid var(--tpc-c-border);
    border-radius: var(--tpc-radius-lg);
    padding: 24px;
    box-shadow: var(--tpc-shadow-card);
}
.tpc-form-layout-inline .tpc-summary-card {
    /* same styling — no special positioning */
}
.tpc-form-builder .tpc-summary-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tpc-c-border);
    color: var(--tpc-c-text);
}
.tpc-form-builder .tpc-summary-items {
    margin-bottom: 16px;
}
.tpc-form-builder .tpc-summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px dashed #e5e7eb;
    font-size: 13px;
}
.tpc-form-builder .tpc-summary-line:last-child {
    border-bottom: none;
}
.tpc-form-builder .tpc-summary-line-field {
    flex: 1;
    color: var(--tpc-c-text-soft);
    line-height: 1.4;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}
.tpc-form-builder .tpc-summary-line-value {
    color: var(--tpc-c-text);
    font-weight: 400;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    display: inline-block;
    margin-top: 2px;
}
.tpc-form-builder .tpc-summary-line-price {
    font-weight: 600;
    color: var(--tpc-c-text);
    white-space: nowrap;
    font-size: 13px;
}
.tpc-form-builder .tpc-summary-zero {
    color: #6b7280;
    font-size: 12px;
    font-weight: 400;
}
.tpc-form-builder .tpc-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 16px 0 8px;
    border-top: 2px solid var(--tpc-c-primary);
    margin-top: 12px;
    gap: 10px;
}
.tpc-form-builder .tpc-summary-total-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.tpc-form-builder .tpc-summary-total-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--tpc-c-primary);
    line-height: 1;
}
.tpc-form-builder .tpc-summary-suffix {
    font-size: 12px;
    color: var(--tpc-c-muted);
    margin-left: 4px;
}
.tpc-form-builder .tpc-summary-disclaimer {
    margin: 12px 0 16px;
    color: var(--tpc-c-muted);
    font-size: 11px;
    line-height: 1.5;
}

/* === CTA Button === */
.tpc-form-builder .tpc-btn-large {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    background: var(--tpc-c-primary) !important;
    color: #fff !important;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s, transform 0.05s;
    text-align: center;
    line-height: 1.3;
}
.tpc-form-builder .tpc-btn-large:hover {
    background: #8a0000 !important;
}
.tpc-form-builder .tpc-btn-large:active {
    transform: translateY(1px);
}
.tpc-form-builder .tpc-btn-large:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === TABS === */
.tpc-tabs-wrapper {
    margin: 30px 0;
}
.tpc-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--tpc-c-border, #e5e7eb);
    margin-bottom: 24px;
}
.tpc-tab-btn {
    background: none;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}
.tpc-tab-btn:hover {
    color: #1f2937;
}
.tpc-tab-btn.active {
    color: #BC0000;
    border-bottom-color: #BC0000;
}
.tpc-tab-icon {
    font-size: 18px;
}
.tpc-tab-panel {
    display: none;
}
.tpc-tab-panel.active {
    display: block;
}

/* === Contact form section === */
.tpc-form-builder .tpc-form-section {
    background: var(--tpc-c-bg);
    border: 1px solid var(--tpc-c-border);
    border-radius: var(--tpc-radius-lg);
    padding: 32px;
    margin-top: 20px;
    box-shadow: var(--tpc-shadow);
}
.tpc-form-builder .tpc-section-title {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tpc-c-border);
    color: var(--tpc-c-text);
}
.tpc-form-builder .tpc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}
.tpc-form-builder .tpc-field-full {
    grid-column: 1 / -1;
}
.tpc-form-builder .tpc-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tpc-c-text-soft);
    margin-bottom: 6px;
}
.tpc-form-builder .tpc-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer;
    font-weight: 400 !important;
    color: var(--tpc-c-text-soft);
    font-size: 13px !important;
}
.tpc-form-builder .tpc-checkbox input[type=checkbox] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--tpc-c-primary);
}
.tpc-form-builder .tpc-form-actions {
    margin-top: 24px;
}

/* Success */
.tpc-form-builder .tpc-form-success {
    text-align: center;
    padding: 40px 20px;
}
.tpc-form-builder .tpc-form-success-icon {
    width: 64px;
    height: 64px;
    background: #10b981;
    color: #fff;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}
.tpc-form-builder .tpc-form-success h3 {
    color: #10b981;
    margin: 0 0 8px;
    font-size: 22px;
}

.tpc-form-builder .tpc-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
}
.tpc-form-builder .tpc-form-message.tpc-error {
    background: #fef2f2;
    border-left: 4px solid #dc2626;
    color: #991b1b;
    display: block;
}
.tpc-form-builder .tpc-form-message.tpc-success {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #065f46;
    display: block;
}

/* Empty state */
.tpc-empty {
    padding: 40px;
    text-align: center;
    background: #f9fafb;
    border: 2px dashed #e5e7eb;
    border-radius: 12px;
    color: #6b7280;
}

@media (max-width: 600px) {
    .tpc-form-builder .tpc-form-fields,
    .tpc-form-builder .tpc-summary-card,
    .tpc-form-builder .tpc-form-section {
        padding: 20px;
    }
    .tpc-form-builder .tpc-form-grid {
        grid-template-columns: 1fr;
    }
    .tpc-tab-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    .tpc-tab-name {
        display: none;
    }
    .tpc-tab-icon {
        font-size: 22px;
    }
}

/* ============================================
   v1.2.1 — calculator title + option features
   ============================================ */

.tpc-form-builder .tpc-form-header {
    margin: 0 -32px 24px;
    padding: 0 32px 20px;
    border-bottom: 1px solid var(--tpc-c-border);
}
.tpc-form-builder .tpc-form-title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: var(--tpc-c-text);
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 12px;
}
.tpc-form-builder .tpc-form-title-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.tpc-form-builder .tpc-form-header .tpc-form-description {
    margin: 0;
    padding: 0;
    border: none;
    color: var(--tpc-c-text-soft);
    font-size: 14px;
}

/* Option features (description) */
.tpc-form-builder .tpc-option-features {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    padding: 14px 16px;
    background: rgba(188, 0, 0, 0.03);
    border: 1px solid rgba(188, 0, 0, 0.12);
    border-radius: 8px;
    font-size: 13px;
    color: var(--tpc-c-text-soft);
    line-height: 1.6;
}
.tpc-form-builder .tpc-option-features ul,
.tpc-form-builder .tpc-option-features ol {
    margin: 0;
    padding-left: 20px;
}
.tpc-form-builder .tpc-option-features li {
    margin: 4px 0;
}
.tpc-form-builder .tpc-option-features p {
    margin: 0 0 8px;
}
.tpc-form-builder .tpc-option-features p:last-child {
    margin-bottom: 0;
}
.tpc-form-builder .tpc-option-features strong {
    color: var(--tpc-c-text);
}

/* Hide features in non-selected radio cards */
.tpc-form-builder .tpc-radio-item:not(.is-selected) .tpc-option-features {
    display: none;
}
.tpc-form-builder .tpc-radio-item.is-selected .tpc-option-features {
    display: block;
}
/* Same for checkbox */
.tpc-form-builder .tpc-checkbox-item:not(.is-checked) .tpc-option-features {
    display: none;
}
.tpc-form-builder .tpc-checkbox-item.is-checked .tpc-option-features {
    display: block;
}

/* Make label flex-column to position features below box */
.tpc-form-builder .tpc-radio-item,
.tpc-form-builder .tpc-checkbox-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.tpc-form-builder .tpc-radio-group .tpc-radio-item .tpc-option-features {
    margin-left: 0;
}

@media (max-width: 600px) {
    .tpc-form-builder .tpc-form-header {
        margin: 0 -20px 20px;
        padding: 0 20px 16px;
    }
    .tpc-form-builder .tpc-form-title {
        font-size: 20px;
    }
}

/* ============================================
   v1.2.5 — currency switcher pills (frontend)
   ============================================ */

.tpc-form-builder .tpc-form-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.tpc-form-builder .tpc-form-header-row .tpc-form-title {
    margin: 0;
}

.tpc-currency-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 999px;
    padding: 3px;
    gap: 0;
    flex-shrink: 0;
}
.tpc-currency-switcher-bare {
    display: inline-flex;
    margin-bottom: 16px;
}
.tpc-currency-pill {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--tpc-c-text-soft, #6b7280);
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.15s ease;
    letter-spacing: 0.3px;
    line-height: 1.2;
    min-width: 44px;
}
.tpc-currency-pill:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--tpc-c-text, #1f2937);
}
.tpc-currency-pill.is-active {
    background: var(--tpc-c-primary, #BC0000);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.tpc-currency-pill:focus-visible {
    outline: 2px solid var(--tpc-c-primary, #BC0000);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .tpc-form-builder .tpc-form-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .tpc-currency-switcher {
        align-self: flex-end;
    }
}

/* ============================================
   v1.2.8 — bottom grid (contact + banners) + icon image
   ============================================ */

/* Bottom grid — contact form (left) + optional banners (right) */
.tpc-form-builder .tpc-form-bottom-grid {
    display: block;
    margin-top: 20px;
}
.tpc-form-builder .tpc-form-bottom-grid-with-banners {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 30px;
    align-items: start;
    margin-top: 20px;
}
/* Inside bottom-grid, contact section shouldn't add extra top margin */
.tpc-form-builder .tpc-form-bottom-grid > .tpc-form-section {
    margin-top: 0;
}
.tpc-form-builder.tpc-form-layout-inline .tpc-form-bottom-grid-with-banners {
    grid-template-columns: 1fr;
}
@media (max-width: 900px) {
    .tpc-form-builder .tpc-form-bottom-grid-with-banners {
        grid-template-columns: 1fr;
    }
}

.tpc-form-builder .tpc-form-contact-wrap {
    /* legacy class — unused after restructure */
}

/* Banners (right column under summary) */
.tpc-form-banners {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tpc-banner-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    background: var(--tpc-c-bg, #fff);
    border: 1px solid var(--tpc-c-border, #e5e7eb);
    border-radius: var(--tpc-radius-lg, 12px);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: var(--tpc-shadow-card, 0 1px 2px rgba(0,0,0,0.04));
}
a.tpc-banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: var(--tpc-c-primary, #BC0000);
}
.tpc-banner-link img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.tpc-banner-title {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tpc-c-text, #1f2937);
    text-align: center;
    background: rgba(0,0,0,0.02);
    border-top: 1px solid var(--tpc-c-border, #e5e7eb);
}

/* Icon as image (inline with title) */
.tpc-form-builder .tpc-form-title-icon-img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 4px;
}
@media (max-width: 600px) {
    .tpc-form-builder .tpc-form-title-icon-img {
        width: 24px;
        height: 24px;
    }
}

/* ==========================================================================
   v1.7.5 — Dwukolumnowy układ formularza (2/3 + 1/3) + slot boczny (aside)
   Wspólne dla formularza cennika i kalkulatora. W frontend.css bo ładuje się
   globalnie na obu typach stron.
   ========================================================================== */
.tpc-form2col { display: block; }
.tpc-form2col__main { min-width: 0; }
.tpc-form2col:not(.tpc-form2col--has-aside) .tpc-form2col__main {
    max-width: 640px;
    margin: 0 auto;
}
.tpc-form2col--has-aside {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: stretch;
}

/* Slot boczny — wspólny renderer TPC_Form_Aside */
.tpc-faside {
    border-radius: 18px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.tpc-faside--dark  { background: #1a1a1a; color: #fff; }
.tpc-faside--light { background: #fff; border: 1px solid #eef0f3; color: #111827; box-shadow: 0 10px 40px rgba(17,24,39,0.06); }
.tpc-faside__heading {
    font-family: 'Figtree', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 18px; font-weight: 700; line-height: 1.25; margin: 0 0 16px;
}
.tpc-faside__rows { display: flex; flex-direction: column; gap: 13px; }
.tpc-faside__row {
    display: flex; align-items: center; gap: 10px;
    font-size: 14.5px; color: inherit; text-decoration: none; line-height: 1.4;
}
a.tpc-faside__row { transition: opacity 0.15s; }
a.tpc-faside__row:hover { opacity: 0.82; text-decoration: none; }
.tpc-faside__ico { flex: 0 0 auto; }
.tpc-faside--dark  .tpc-faside__ico { color: #ff8a8a; }
.tpc-faside--light .tpc-faside__ico { color: #BC0000; }
.tpc-faside__note {
    display: flex; align-items: center; gap: 8px;
    margin-top: auto; padding-top: 16px; font-size: 13px; line-height: 1.4;
}
.tpc-faside--dark  .tpc-faside__note { border-top: 1px solid rgba(255,255,255,0.12); color: #e5e5e5; }
.tpc-faside--light .tpc-faside__note { border-top: 1px solid #eef0f3; color: #4b5563; }
.tpc-faside__html { font-size: 14px; line-height: 1.6; }
.tpc-faside__html > :first-child { margin-top: 0; }
.tpc-faside__html > :last-child  { margin-bottom: 0; }
.tpc-faside__html img { max-width: 100%; height: auto; border-radius: 10px; }

/* Slot wpięty w istniejący grid kalkulatora (.tpc-form-bottom-grid) */
.tpc-form-bottom-grid > .tpc-faside { align-self: stretch; }

@media (max-width: 768px) {
    .tpc-form2col--has-aside { grid-template-columns: 1fr; gap: 16px; }
}

/* =====================================================================
   v1.8.2 — Sticky "Podsumowanie" layout dla kalkulatorów
   Zmiana strukturalna: .tpc-form-builder to teraz jeden grid 2fr/1fr
   z .tpc-form-main-column (fields + Twoje dane) po lewej i
   .tpc-form-summary sticky po prawej. Zastępuje wcześniejszy podział
   na dwa oddzielne gridy (top calc+summary / bottom form+aside).
   ===================================================================== */
.tpc-form-builder.tpc-form-layout-vertical {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
/* Legacy grid-layout becomes a simple wrapper (summary moved out) */
.tpc-form-builder.tpc-form-layout-vertical .tpc-form-grid-layout {
    display: block;
}
/* Main column stacks calculator fields + contact form in a single column */
.tpc-form-builder .tpc-form-main-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;  /* prevent grid overflow when child content is wide */
}
/* Contact form section spans the full width of the main column */
.tpc-form-builder .tpc-form-main-column .tpc-form-section {
    max-width: none;
}
/* THE MONEY LINE — summary follows the scroll across the whole builder.
   `align-self: start` prevents grid stretching (sticky needs finite parent). */
.tpc-form-builder.tpc-form-layout-vertical .tpc-form-summary {
    position: sticky;
    top: 20px;
    align-self: start;
}
/* Mobile: single column, summary un-sticks and sits between calc and form */
@media (max-width: 980px) {
    .tpc-form-builder.tpc-form-layout-vertical {
        grid-template-columns: 1fr;
    }
    .tpc-form-builder.tpc-form-layout-vertical .tpc-form-summary {
        position: static;
        top: auto;
    }
    /* Show summary before the contact form on mobile for context */
    .tpc-form-builder.tpc-form-layout-vertical .tpc-form-main-column {
        order: 1;
    }
    .tpc-form-builder.tpc-form-layout-vertical .tpc-form-summary {
        order: 0;
    }
}

/* ==========================================================================
   v1.9.0 — pricing_selector field: cards from a linked pricing table
   Used in calculators as a "package base" that replaces the static base_price.
   Modules (other fields) stack on top.
   ========================================================================== */
.tpc-pricing-selector {
    margin-bottom: 8px;
}
.tpc-pricing-selector-billing-toggle {
    display: inline-flex;
    background: #f4f5f7;
    border-radius: 100px;
    padding: 4px;
    margin: 0 auto 20px;
    gap: 4px;
}
.tpc-pricing-selector-billing-btn {
    background: transparent;
    border: 0;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tpc-pricing-selector-billing-btn.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.tpc-pricing-selector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}
/* v1.9.1 — When there are exactly 4 cards, force 2×2 grid instead of auto-fit.
   Reason: 4 cards in a single row inside the calculator's 2/3 column (~750px)
   become too narrow (~180px each). 2×2 gives ~365px per card — room for
   name/description/price to breathe. Selector reads "container has 4th child
   that is also the last child" = exactly 4 cards.
   `:has()` supported in Chrome 105+, Safari 15.4+, Firefox 121+ (all evergreen).
   Older browsers fall back to auto-fit (3+1 layout) — degrades gracefully. */
.tpc-pricing-selector-cards:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(2, 1fr);
}
.tpc-pricing-selector-card {
    position: relative;
    display: block;
    background: #fff;
    border: 1.5px solid #e7eaee;
    border-radius: 12px;
    padding: 18px 16px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tpc-pricing-selector-card:hover {
    border-color: #d6dbe2;
}
.tpc-pricing-selector-card.is-selected {
    border-color: #bc0000;
    box-shadow: 0 6px 20px rgba(188,0,0,0.12);
    background: #fef7f7;
}
.tpc-pricing-selector-card.is-featured {
    border-color: #bc0000;
}
.tpc-pricing-selector-card > input[type=radio] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.tpc-pricing-selector-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    background: #bc0000;
    color: #fff;
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
.tpc-pricing-selector-card-check {
    position: absolute;
    top: 12px; right: 12px;
    width: 24px; height: 24px;
    border: 1.5px solid #d6dbe2;
    border-radius: 100px;
    color: transparent;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.tpc-pricing-selector-card.is-selected .tpc-pricing-selector-card-check {
    background: #bc0000;
    border-color: #bc0000;
    color: #fff;
}
.tpc-pricing-selector-card-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin-bottom: 4px;
}
.tpc-pricing-selector-card.is-selected .tpc-pricing-selector-card-name,
.tpc-pricing-selector-card.is-featured .tpc-pricing-selector-card-name {
    color: #bc0000;
}
.tpc-pricing-selector-card-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 12px;
}
.tpc-pricing-selector-card-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 8px;
}
.tpc-pricing-selector-card-price-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
}
.tpc-pricing-selector-card-price-currency {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}
.tpc-pricing-selector-card-price-suffix {
    font-size: 12px;
    color: #6b7280;
    margin-left: 2px;
}

@media (max-width: 600px) {
    .tpc-pricing-selector-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v1.9.2 — pricing_selector: full comparison accordion below cards
   Closed by default. Opens on click, smooth-scrolls table into view.
   ========================================================================== */
.tpc-pricing-selector-compare {
    margin-top: 24px;
    text-align: center;
}
.tpc-pricing-selector-compare-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1.5px solid #e7eaee;
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tpc-pricing-selector-compare-toggle:hover {
    border-color: #bc0000;
    color: #bc0000;
    background: #fef7f7;
}
.tpc-pricing-selector-compare-toggle-chevron {
    transition: transform 0.2s ease;
}
.tpc-pricing-selector-compare-toggle.is-open .tpc-pricing-selector-compare-toggle-chevron {
    transform: rotate(180deg);
}
.tpc-pricing-selector-compare-toggle.is-open {
    border-color: #bc0000;
    color: #bc0000;
}
.tpc-pricing-selector-compare-content {
    margin-top: 20px;
    text-align: left;
    /* Kill horizontal scroll on the wrapper so the table inside stays inside the calc column */
    overflow-x: auto;
}

/* ==========================================================================
   v1.9.3 — Compact tightening for the pricing_selector accordion table only.
   Scoped so standalone [tpc_pricing] pages keep their comfortable 14px 18px
   padding / 14px font — those pages have full page width and don't need squeezing.
   Inside the calculator, the accordion lives in the ~750px main column, where
   4 plan columns × cell padding 18px = "kolumna 120px per plan → tekst łamie się w 3 linie".
   ========================================================================== */
.tpc-pricing-selector-compare-content .tpc-pricing-compare-table th,
.tpc-pricing-selector-compare-content .tpc-pricing-compare-table td {
    padding: 6px 8px;
    font-size: 13px;
}
/* Hide "Cena" row inside the accordion — prices already visible in the cards above.
   Standalone [tpc_pricing] unaffected (no scoping conflict). */
.tpc-pricing-selector-compare-content .tpc-pricing-compare-price-row {
    display: none;
}
/* Group headers get tighter padding + smaller font too */
.tpc-pricing-selector-compare-content .tpc-pricing-compare-group-row .tpc-pricing-compare-group-header {
    padding: 10px 8px 6px;
    font-size: 11px;
}

/* v1.10.0 — Hourly-rate pill next to option label
   Shows "10 h × 150 zł" so client sees the calculation, not just the total. */
.tpc-hourly-note {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    background: #f4f5f7;
    border-radius: 100px;
    white-space: nowrap;
}
