.fpb-product-builder {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fpb-main-offers,
.fpb-addons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fpb-main-offers h3,
.fpb-addons h3 {
    margin: 0 0 4px;
    font-size: 18px;
    line-height: 1.2;
}

.fpb-card {
    position: relative;
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #d9e2ef;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
}

.fpb-card input {
    margin-top: 4px;
}

.fpb-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.fpb-card-title {
    font-size: 16px;
    line-height: 1.25;
}

.fpb-card-description {
    font-size: 14px;
    line-height: 1.45;
    opacity: 0.8;
}

.fpb-badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #2563eb;
    color: #ffffff;
}

.fpb-card:has(input:checked) {
    border-color: #2563eb;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.16);
}

.fpb-checkout-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 14px 22px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.fpb-checkout-button:hover {
    filter: brightness(0.95);
}

.fpb-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 4px;
}

.fpb-price {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.fpb-compare-price {
    font-size: 14px;
    opacity: 0.55;
    text-decoration: line-through;
}

.fpb-card-media {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f6;
}

.fpb-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fpb-card-subtitle {
    display: block;
    font-size: 13px;
    font-weight: 700;
    opacity: 0.75;
}

.fpb-savings {
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    opacity: 0.85;
}

.fpb-error {
    padding: 12px 14px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
}

.fpb-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
}

.fpb-summary-label {
    font-size: 14px;
    font-weight: 700;
    opacity: 0.75;
}

.fpb-total-price {
    font-size: 22px;
    font-weight: 900;
}

.fpb-items-count {
    font-size: 13px;
    opacity: 0.7;
}

.fpb-layout-grid .fpb-main-offers,
.fpb-layout-grid .fpb-addons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fpb-layout-horizontal .fpb-main-offers,
.fpb-layout-horizontal .fpb-addons {
    flex-direction: row;
    flex-wrap: wrap;
}

.fpb-layout-horizontal .fpb-card {
    flex: 1 1 220px;
}

.elementor-widget-fpb_product_builder .fpb-card-media {
    display: flex;
}

.fpb-front-error {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
}

.fpb-checkout-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

.fpb-price-updated {
    animation: fpbPricePulse 260ms ease;
}

.fpb-is-loading {
    pointer-events: none;
    opacity: 0.7;
}

@keyframes fpbPricePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@media (max-width: 767px) {
    .fpb-layout-grid .fpb-main-offers,
    .fpb-layout-grid .fpb-addons {
        grid-template-columns: 1fr;
    }

    .fpb-product-builder {
        width: 100%;
    }

    .fpb-card {
        width: 100%;
    }

    .fpb-price-row {
        flex-wrap: wrap;
    }

    .fpb-summary {
        width: 100%;
    }
}

.fpb-card:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.fpb-checkout-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.fpb-total-compare-price {
    font-size: 14px;
    font-weight: 800;
    text-decoration: line-through;
    opacity: 0.65;
}

.fpb-total-savings {
    font-size: 12px;
    font-weight: 800;
    opacity: 0.85;
}

.fpb-total-price-wrap {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.fpb-total-price-wrap .fpb-total-price {
    line-height: 1;
}

.fpb-total-price-wrap .fpb-total-compare-price {
    font-size: 13px;
    font-weight: 800;
    text-decoration: line-through;
    opacity: 0.55;
    line-height: 1;
}

.fpb-total-savings {
    display: none !important;
}

.fpb-expand-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.fpb-expand-content {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.85;
}

.fpb-expand-content[hidden] {
    display: none;
}

.fpb-expand-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 8px 0;
    background: transparent;
    border: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.fpb-expand-toggle::before {
    content: "▸";
    display: inline-block;
    font-size: 12px;
    line-height: 1;
    transition: transform 180ms ease;
}

.fpb-expand-toggle.fpb-expanded::before {
    transform: rotate(90deg);
}

.fpb-expand-content {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border-radius: 10px;
}

.fpb-expand-toggle {
    display: inline-flex !important;
    width: auto !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 6px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.fpb-expand-toggle::before {
    content: "▸";
    display: inline-block;
    font-size: 10px;
    line-height: 1;
    transition: transform 160ms ease;
}

.fpb-expand-toggle.fpb-expanded::before {
    transform: rotate(90deg);
}

.fpb-expand-content {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    font-size: 12px;
    line-height: 1.45;
    opacity: 0.85;
}

.fpb-expand-content[hidden] {
    display: none !important;
}
