/**
 * Upsell Builder - Checkout Styles
 *
 * שני סגנונות:
 * .ub-style-clean   - לבן ומקצועי (default)
 * .ub-style-vibrant - מודרני וצבעוני
 *
 * שניהם משתמשים באותם elements (.ub-hero, .ub-upsells, .ub-upsell וכו')
 * הסגנון נקבע ע"י class על ה-body
 */

/* ===========================
   COMMON BASE - משותף לשניהם
   =========================== */

.ub-checkout {
    direction: rtl;
}

.ub-checkout .ub-hero,
.ub-checkout .ub-upsells {
    box-sizing: border-box;
    font-family: inherit;
    direction: rtl;
}

.ub-checkout .ub-hero *,
.ub-checkout .ub-upsells * {
    box-sizing: border-box;
}

/* Hero base */
.ub-checkout .ub-hero {
    margin: 0 0 28px;
    width: 100%;
}

.ub-checkout .ub-hero-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.ub-checkout .ub-hero-image {
    width: 130px;
    height: 130px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.ub-checkout .ub-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ub-checkout .ub-hero-info {
    flex: 1;
    min-width: 0;
}

.ub-checkout .ub-hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.ub-checkout .ub-hero-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
}

.ub-checkout .ub-hero-desc {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 12px;
}

.ub-checkout .ub-hero-price {
    font-size: 22px;
    font-weight: 700;
}

.ub-checkout .ub-hero-price del {
    font-weight: 400;
    font-size: 14px;
    opacity: 0.5;
    margin-left: 6px;
}

.ub-checkout .ub-hero-price ins {
    text-decoration: none;
}

/* Upsells block base */
.ub-checkout .ub-upsells {
    margin: 0 0 32px;
}

.ub-checkout .ub-upsells-header {
    margin-bottom: 16px;
}

.ub-checkout .ub-upsells-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.ub-checkout .ub-upsells-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.3;
}

.ub-checkout .ub-upsells-subtitle {
    font-size: 14px;
    margin: 0;
}

.ub-checkout .ub-upsells-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.ub-checkout .ub-upsell {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ub-checkout .ub-upsell-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.ub-checkout .ub-upsell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ub-checkout .ub-upsell-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.ub-checkout .ub-upsell-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
    line-height: 1.3;
}

.ub-checkout .ub-upsell-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.ub-checkout .ub-upsell-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.ub-checkout .ub-upsell-price {
    font-size: 17px;
    font-weight: 700;
}

.ub-checkout .ub-upsell-price del {
    font-weight: 400;
    font-size: 13px;
    opacity: 0.5;
    margin-left: 6px;
}

.ub-checkout .ub-upsell-price ins {
    text-decoration: none;
}

.ub-checkout .ub-upsell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    font-family: inherit;
}

.ub-checkout .ub-upsell-btn:active:not(:disabled) {
    transform: scale(0.97);
}

.ub-checkout .ub-upsell-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.ub-checkout .ub-upsell-btn.is-loading {
    pointer-events: none;
}

.ub-checkout .ub-btn-text-add,
.ub-checkout .ub-btn-text-added {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ub-checkout .ub-btn-text-added {
    display: none;
}

.ub-checkout .ub-upsell.is-in-cart .ub-btn-text-add {
    display: none;
}

.ub-checkout .ub-upsell.is-in-cart .ub-btn-text-added {
    display: inline-flex;
}

.ub-checkout .ub-upsell-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ub-spin 0.7s linear infinite;
}

.ub-checkout .ub-upsell-btn.is-loading .ub-btn-text-add,
.ub-checkout .ub-upsell-btn.is-loading .ub-btn-text-added {
    display: none;
}

@keyframes ub-spin { to { transform: rotate(360deg); } }

@keyframes ub-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.04); }
    100% { transform: scale(1); }
}

.ub-checkout .ub-upsell.just-added {
    animation: ub-pulse 0.5s ease;
}

/* ===========================
   STYLE 1: CLEAN (לבן ומקצועי)
   =========================== */

.ub-style-clean .ub-hero {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}

.ub-style-clean .ub-hero-image {
    background: #f9fafb;
    border: 1px solid #f3f4f6;
}

.ub-style-clean .ub-hero-tag {
    background: #f3f4f6;
    color: #4b5563;
}

.ub-style-clean .ub-hero-name {
    color: #111827;
}

.ub-style-clean .ub-hero-desc {
    color: #6b7280;
}

.ub-style-clean .ub-hero-price {
    color: #111827;
}

.ub-style-clean .ub-upsells-badge {
    background: #fff7ed;
    color: #c2410c;
}

.ub-style-clean .ub-upsells-title {
    color: #111827;
}

.ub-style-clean .ub-upsells-subtitle {
    color: #6b7280;
}

.ub-style-clean .ub-upsell {
    background: #ffffff;
    border: 2px solid #e5e7eb;
}

.ub-style-clean .ub-upsell::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 3px;
    background: #f97316;
    opacity: 0;
    transition: opacity 0.25s;
}

.ub-style-clean .ub-upsell:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.ub-style-clean .ub-upsell:hover::before {
    opacity: 1;
}

.ub-style-clean .ub-upsell.is-in-cart {
    background: #f0fdf4;
    border-color: #86efac;
}

.ub-style-clean .ub-upsell.is-in-cart::before {
    background: #10b981;
    opacity: 1;
}

.ub-style-clean .ub-upsell-image {
    background: #f3f4f6;
}

.ub-style-clean .ub-upsell-name {
    color: #111827;
}

.ub-style-clean .ub-upsell-desc {
    color: #6b7280;
}

.ub-style-clean .ub-upsell-price {
    color: #111827;
}

.ub-style-clean .ub-upsell-btn {
    background: #111827;
    color: #ffffff;
    border-radius: 8px;
}

.ub-style-clean .ub-upsell-btn:hover:not(:disabled) {
    background: #1f2937;
}

.ub-style-clean .ub-upsell.is-in-cart .ub-upsell-btn {
    background: #10b981;
}

.ub-style-clean .ub-upsell.is-in-cart .ub-upsell-btn:hover {
    background: #ef4444;
}

/* ===========================
   STYLE 2: VIBRANT (מודרני וצבעוני)
   =========================== */

.ub-style-vibrant .ub-hero {
    background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
    border-radius: 16px;
    padding: 4px;
}

.ub-style-vibrant .ub-hero-inner {
    background: #ffffff;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.06);
}

.ub-style-vibrant .ub-hero-image {
    background: linear-gradient(135deg, #c084fc, #ec4899);
}

.ub-style-vibrant .ub-hero-tag {
    background: linear-gradient(135deg, #fae8ff, #fce7f3);
    color: #9d174d;
}

.ub-style-vibrant .ub-hero-name {
    color: #1e1b4b;
}

.ub-style-vibrant .ub-hero-desc {
    color: #6b7280;
}

.ub-style-vibrant .ub-hero-price {
    color: #7c3aed;
    font-size: 26px;
}

.ub-style-vibrant .ub-upsells-badge {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    padding: 5px 12px;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.ub-style-vibrant .ub-upsells-title {
    color: #1e1b4b;
}

.ub-style-vibrant .ub-upsells-subtitle {
    color: #6b7280;
}

.ub-style-vibrant .ub-upsell {
    background: #ffffff;
    border: 2px solid #f3e8ff;
    box-shadow: 0 1px 4px rgba(139, 92, 246, 0.04);
}

.ub-style-vibrant .ub-upsell:hover {
    border-color: #d8b4fe;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.12);
    transform: translateY(-1px);
}

.ub-style-vibrant .ub-upsell.is-in-cart {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #6ee7b7;
}

.ub-style-vibrant .ub-upsell-image {
    background: linear-gradient(135deg, #fae8ff, #fbcfe8);
}

.ub-style-vibrant .ub-upsell-name {
    color: #1e1b4b;
}

.ub-style-vibrant .ub-upsell-desc {
    color: #6b7280;
}

.ub-style-vibrant .ub-upsell-price {
    color: #ec4899;
}

.ub-style-vibrant .ub-upsell-btn {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #ffffff;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.25);
}

.ub-style-vibrant .ub-upsell-btn:hover:not(:disabled) {
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.4);
    transform: scale(1.04);
}

.ub-style-vibrant .ub-upsell.is-in-cart .ub-upsell-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.ub-style-vibrant .ub-upsell.is-in-cart .ub-upsell-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

/* ===========================
   CHECKOUT FORM STYLING - שניהם
   =========================== */

.ub-style-clean .woocommerce form.checkout {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-top: 8px;
}

.ub-style-clean .woocommerce form.checkout h3 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.ub-style-clean .woocommerce form.checkout input[type="text"],
.ub-style-clean .woocommerce form.checkout input[type="email"],
.ub-style-clean .woocommerce form.checkout input[type="tel"],
.ub-style-clean .woocommerce form.checkout textarea,
.ub-style-clean .woocommerce form.checkout select {
    background: #fafafa;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-size: 14px;
    transition: all 0.15s ease;
}

.ub-style-clean .woocommerce form.checkout input:focus,
.ub-style-clean .woocommerce form.checkout textarea:focus,
.ub-style-clean .woocommerce form.checkout select:focus {
    background: #ffffff;
    border-color: #111827 !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
    outline: none;
}

.ub-style-clean #place_order,
.ub-style-clean .woocommerce-checkout-payment button.button {
    background: #111827 !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.15) !important;
}

.ub-style-clean #place_order:hover {
    background: #1f2937 !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.25) !important;
}

/* Vibrant form styling */
.ub-style-vibrant .woocommerce form.checkout {
    background: linear-gradient(135deg, #faf5ff 0%, #fce7f3 100%);
    border-radius: 16px;
    padding: 4px;
    margin-top: 8px;
}

.ub-style-vibrant .woocommerce form.checkout > * {
    background: #ffffff;
}

.ub-style-vibrant .woocommerce form.checkout h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e1b4b;
    margin-bottom: 16px;
}

.ub-style-vibrant .woocommerce form.checkout #customer_details,
.ub-style-vibrant .woocommerce form.checkout #order_review_heading,
.ub-style-vibrant .woocommerce form.checkout #order_review {
    background: #ffffff;
    padding: 20px;
    border-radius: 13px;
    margin-bottom: 8px;
}

.ub-style-vibrant .woocommerce form.checkout input[type="text"],
.ub-style-vibrant .woocommerce form.checkout input[type="email"],
.ub-style-vibrant .woocommerce form.checkout input[type="tel"],
.ub-style-vibrant .woocommerce form.checkout textarea,
.ub-style-vibrant .woocommerce form.checkout select {
    background: #ffffff !important;
    border: 1.5px solid #f3e8ff !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 14px;
    transition: all 0.15s ease;
}

.ub-style-vibrant .woocommerce form.checkout input:focus,
.ub-style-vibrant .woocommerce form.checkout textarea:focus,
.ub-style-vibrant .woocommerce form.checkout select:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12) !important;
    outline: none;
}

.ub-style-vibrant #place_order,
.ub-style-vibrant .woocommerce-checkout-payment button.button {
    background: linear-gradient(135deg, #a855f7, #ec4899) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 6px 18px rgba(168, 85, 247, 0.3) !important;
}

.ub-style-vibrant #place_order:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(168, 85, 247, 0.45) !important;
}

/* ===========================
   ORDER REVIEW TABLE
   =========================== */

.ub-style-clean .woocommerce-checkout-review-order-table {
    border-radius: 10px !important;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.ub-style-clean .woocommerce-checkout-review-order-table th,
.ub-style-clean .woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 12px !important;
}

.ub-style-clean .woocommerce-checkout-review-order-table tfoot tr.order-total {
    background: #f9fafb;
}

.ub-style-clean .woocommerce-checkout-review-order-table tfoot tr.order-total strong {
    font-size: 18px;
    color: #111827;
}

.ub-style-vibrant .woocommerce-checkout-review-order-table {
    border-radius: 10px !important;
    overflow: hidden;
    background: #ffffff;
}

.ub-style-vibrant .woocommerce-checkout-review-order-table th,
.ub-style-vibrant .woocommerce-checkout-review-order-table td {
    border-bottom: 1px solid #f3e8ff !important;
    padding: 12px !important;
}

.ub-style-vibrant .woocommerce-checkout-review-order-table tfoot tr.order-total {
    background: linear-gradient(135deg, #faf5ff, #fce7f3);
}

.ub-style-vibrant .woocommerce-checkout-review-order-table tfoot tr.order-total strong {
    font-size: 18px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
    .ub-checkout .ub-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 18px;
    }

    .ub-checkout .ub-hero-image {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }

    .ub-checkout .ub-upsell {
        flex-direction: column;
        text-align: center;
    }

    .ub-checkout .ub-upsell-image {
        width: 100%;
        height: 160px;
    }

    .ub-checkout .ub-upsell-footer {
        justify-content: center;
    }

    .ub-checkout .ub-upsell-btn {
        width: 100%;
    }

    .ub-checkout .ub-hero-name {
        font-size: 19px;
    }

    .ub-checkout .ub-upsells-title {
        font-size: 18px;
    }
}

@media (min-width: 900px) {
    .ub-checkout .ub-upsells-list[data-count="2"] {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   ORDER BUMP - הצעה דרמטית בולטת לפני התשלום
   ============================================ */

.ub-checkout .ub-bump {
    position: relative;
    margin: 24px 0;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
    direction: rtl;
}

.ub-checkout .ub-bump * {
    box-sizing: border-box;
}

.ub-checkout .ub-bump-stripes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        45deg,
        #fbbf24,
        #fbbf24 12px,
        #1a1f2e 12px,
        #1a1f2e 24px
    );
}

.ub-checkout .ub-bump-inner {
    padding: 28px 22px 22px;
    position: relative;
}

.ub-checkout .ub-bump-headline {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ub-checkout .ub-bump-arrow {
    display: inline-block;
    animation: ub-bump-arrow 1.5s ease-in-out infinite;
}

@keyframes ub-bump-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-4px); }
}

.ub-checkout .ub-bump-subheadline {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ub-checkout .ub-bump-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 14px;
}

.ub-checkout .ub-bump-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
}

.ub-checkout .ub-bump-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.ub-checkout .ub-bump-bullet-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.ub-checkout .ub-bump-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 600;
    flex-wrap: wrap;
}

.ub-checkout .ub-bump-original-price {
    font-size: 15px;
    opacity: 0.7;
    text-decoration: line-through;
}

.ub-checkout .ub-bump-original-price .woocommerce-Price-amount {
    color: inherit;
}

.ub-checkout .ub-bump-arrow-right {
    font-size: 18px;
}

.ub-checkout .ub-bump-current-price {
    font-size: 22px;
    font-weight: 800;
}

.ub-checkout .ub-bump-current-price .woocommerce-Price-amount {
    color: inherit;
    font-weight: 800;
}

.ub-checkout .ub-bump-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 20px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1.3;
}

.ub-checkout .ub-bump-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ub-checkout .ub-bump-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.ub-checkout .ub-bump-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.ub-checkout .ub-bump-btn.is-loading {
    pointer-events: none;
}

.ub-checkout .ub-bump-btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ub-spin 0.7s linear infinite;
}

.ub-checkout .ub-bump-btn.is-loading .ub-btn-text-add,
.ub-checkout .ub-bump-btn.is-loading .ub-btn-text-added {
    display: none;
}

/* ===== CLEAN STYLE - לבן ומקצועי ===== */

.ub-style-clean .ub-bump {
    background: #fffbeb;
    border: 2px dashed #f59e0b;
}

.ub-style-clean .ub-bump-headline {
    color: #b91c1c;
}

.ub-style-clean .ub-bump-arrow {
    color: #ef4444;
}

.ub-style-clean .ub-bump-subheadline {
    color: #b45309;
}

.ub-style-clean .ub-bump-description {
    color: #44403c;
}

.ub-style-clean .ub-bump-bullets li {
    color: #44403c;
}

.ub-style-clean .ub-bump-price-row {
    background: #fef3c7;
    border: 1px solid #fbbf24;
}

.ub-style-clean .ub-bump-original-price {
    color: #78716c;
}

.ub-style-clean .ub-bump-arrow-right {
    color: #92400e;
}

.ub-style-clean .ub-bump-current-price {
    color: #b45309;
}

.ub-style-clean .ub-bump-btn {
    background: #dc2626;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.ub-style-clean .ub-bump-btn:hover:not(:disabled) {
    background: #b91c1c;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.45);
}

.ub-style-clean .ub-bump.is-in-cart .ub-bump-btn {
    background: #16a34a;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
}

.ub-style-clean .ub-bump.is-in-cart .ub-bump-btn:hover {
    background: #dc2626;
}

.ub-style-clean .ub-bump.is-in-cart {
    background: #f0fdf4;
    border-color: #16a34a;
}

/* ===== VIBRANT STYLE - מודרני וצבעוני ===== */

.ub-style-vibrant .ub-bump {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 2px solid #f59e0b;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.ub-style-vibrant .ub-bump-headline {
    background: linear-gradient(135deg, #dc2626, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ub-style-vibrant .ub-bump-arrow {
    color: #dc2626;
    -webkit-text-fill-color: #dc2626;
}

.ub-style-vibrant .ub-bump-subheadline {
    color: #9a3412;
}

.ub-style-vibrant .ub-bump-description {
    color: #44403c;
}

.ub-style-vibrant .ub-bump-bullets li {
    color: #44403c;
}

.ub-style-vibrant .ub-bump-price-row {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #fbbf24;
    backdrop-filter: blur(4px);
}

.ub-style-vibrant .ub-bump-original-price {
    color: #78716c;
}

.ub-style-vibrant .ub-bump-current-price {
    background: linear-gradient(135deg, #dc2626, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ub-style-vibrant .ub-bump-current-price .woocommerce-Price-amount {
    background: linear-gradient(135deg, #dc2626, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ub-style-vibrant .ub-bump-btn {
    background: linear-gradient(135deg, #dc2626, #ec4899);
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.ub-style-vibrant .ub-bump-btn:hover:not(:disabled) {
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.55);
}

.ub-style-vibrant .ub-bump.is-in-cart {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
}

.ub-style-vibrant .ub-bump.is-in-cart .ub-bump-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .ub-checkout .ub-bump-inner {
        padding: 22px 16px 18px;
    }
    .ub-checkout .ub-bump-headline {
        font-size: 18px;
    }
    .ub-checkout .ub-bump-current-price {
        font-size: 19px;
    }
}

/* ============================================
   MULTI-STEP CHECKOUT
   ============================================ */

/* רקע כהה סביב הצ'קאאוט הרב-שלבי */
body.ub-multistep.ub-checkout {
    background: var(--ub-bg, #18181b) !important;
}

body.ub-multistep .ub-ms-header {
    max-width: 600px;
    margin: 0 auto 16px;
    padding: 20px 16px 0;
    direction: rtl;
}

/* Progress bar */
body.ub-multistep .ub-ms-progress {
    position: relative;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
    overflow: hidden;
    height: 38px;
    margin-bottom: 16px;
}

body.ub-multistep .ub-ms-progress-fill {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 70%;
    background: var(--ub-progress, #2563eb);
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body.ub-multistep .ub-ms-progress-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    z-index: 1;
}

body.ub-multistep .ub-ms-title {
    color: #fff;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
    line-height: 1.3;
}

/* Tabs */
body.ub-multistep .ub-ms-tabs {
    display: flex;
    background: #fff;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

body.ub-multistep .ub-ms-tab {
    flex: 1;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f4f4f5;
    transition: background 0.3s;
}

body.ub-multistep .ub-ms-tab.is-active {
    background: #fff;
    border-top: 3px solid var(--ub-accent, #2563eb);
}

body.ub-multistep .ub-ms-tab-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d4d4d8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

body.ub-multistep .ub-ms-tab.is-active .ub-ms-tab-num {
    background: var(--ub-accent, #2563eb);
}

body.ub-multistep .ub-ms-tab.is-done .ub-ms-tab-num {
    background: #16a34a;
}

body.ub-multistep .ub-ms-tab.is-done .ub-ms-tab-num::after {
    content: '✓';
}

body.ub-multistep .ub-ms-tab.is-done .ub-ms-tab-num {
    font-size: 0;
}

body.ub-multistep .ub-ms-tab.is-done .ub-ms-tab-num::after {
    font-size: 14px;
}

body.ub-multistep .ub-ms-tab-text {
    text-align: right;
    min-width: 0;
}

body.ub-multistep .ub-ms-tab-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #18181b;
}

body.ub-multistep .ub-ms-tab:not(.is-active):not(.is-done) .ub-ms-tab-text strong {
    color: #a1a1aa;
}

body.ub-multistep .ub-ms-tab-text span {
    font-size: 11px;
    color: #71717a;
}

/* הטופס עצמו - כרטיס לבן */
body.ub-multistep form.checkout {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 0 0 14px 14px;
    padding: 24px 20px;
}

/* שלב 1: הצג רק פרטי לקוח, הסתר סקירה+תשלום */
body.ub-ms-on-step-1 #order_review,
body.ub-ms-on-step-1 #order_review_heading,
body.ub-ms-on-step-1 .ub-ms-back-btn,
body.ub-ms-on-step-1 .ub-hero,
body.ub-ms-on-step-1 .ub-upsells {
    display: none !important;
}

/* שלב 2: הסתר פרטי לקוח + כפתור המשך */
body.ub-ms-on-step-2 #customer_details,
body.ub-ms-on-step-2 .ub-ms-step1-actions {
    display: none !important;
}

/* כפתור המשך לשלב 2 */
body.ub-multistep .ub-ms-step1-actions {
    margin-top: 20px;
}

body.ub-multistep .ub-ms-continue-btn {
    width: 100%;
    padding: 16px;
    background: var(--ub-continue-btn, #dc2626);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

body.ub-multistep .ub-ms-continue-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

/* כפתור חזרה */
body.ub-multistep .ub-ms-back-btn {
    background: none;
    border: none;
    color: #71717a;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 12px;
    font-family: inherit;
}

body.ub-multistep .ub-ms-back-btn:hover {
    color: #18181b;
}

/* כפתור תשלום סופי */
body.ub-multistep #place_order {
    background: var(--ub-pay-btn, #16a34a) !important;
    border-radius: 999px !important;
    font-size: 17px !important;
    padding: 16px !important;
}

/* הודעת שגיאה */
body.ub-multistep .ub-ms-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 14px;
    text-align: center;
}

/* מובייל */
@media (max-width: 600px) {
    body.ub-multistep .ub-ms-tab {
        padding: 12px 10px;
        gap: 6px;
    }
    body.ub-multistep .ub-ms-tab-text strong {
        font-size: 12px;
    }
    body.ub-multistep .ub-ms-tab-text span {
        font-size: 10px;
    }
    body.ub-multistep .ub-ms-title {
        font-size: 18px;
    }
    body.ub-multistep form.checkout {
        padding: 18px 14px;
    }
}

/* ערכת "נקי" - רקע בהיר, צריך טקסט כהה בכותרת ובפס */
body.ub-scheme-clean .ub-ms-title {
    color: #1e293b;
}

body.ub-scheme-clean .ub-ms-progress {
    background: rgba(0,0,0,0.08);
}

/* ===========================
   תיאור מוצרי אפסייל בסיכום ההזמנה + "קרא עוד" (פופאפ)
   =========================== */

/* שומרים על ה-"× 1" בשורת שם המוצר גם כשמתווסף התיאור */
.ub-checkout .woocommerce-checkout-review-order-table td.product-name:has(.ub-review-desc) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
}

.ub-checkout .woocommerce-checkout-review-order-table td.product-name > .product-quantity {
    order: 1;
}

.ub-checkout .woocommerce-checkout-review-order-table td.product-name > .ub-review-desc,
.ub-checkout .woocommerce-checkout-review-order-table td.product-name > .variation {
    order: 2;
    flex: 0 0 100%;
}

.ub-checkout .woocommerce-checkout-review-order-table .product-name .ub-review-desc {
    display: block;
    margin-top: 5px;
    font-size: 12.5px;
    line-height: 1.6;
    font-weight: 400;
    color: #6b7280;
    max-width: 340px;
}

.ub-checkout .ub-review-desc-teaser,
.ub-checkout .ub-upsell-desc-teaser {
    display: block;
}

/* מטען התיאור המלא - מוסתר, נטען לתוך הפופאפ */
.ub-checkout .ub-desc-payload,
.ub-checkout .ub-rd-hidden {
    display: none !important;
}

/* קישור "קרא עוד" */
.ub-checkout a.ub-desc-more {
    display: inline-block;
    margin-top: 4px;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ub-accent, #2563eb);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.15s ease;
}

.ub-checkout a.ub-desc-more:hover {
    color: var(--ub-accent, #2563eb);
    opacity: 0.75;
}

/* התראת מנהל - מוצר בלי תיאור */
.ub-checkout .ub-review-desc--warn .ub-review-desc-teaser,
.ub-checkout .ub-upsell-desc.ub-admin-warn {
    color: #b45309;
    background: #fffbeb;
    border: 1px dashed #fcd34d;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11.5px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .ub-checkout .woocommerce-checkout-review-order-table .product-name .ub-review-desc {
        font-size: 12px;
        max-width: 100%;
    }
}

/* ===========================
   פופאפ "קרא עוד"
   =========================== */

body.ub-modal-lock {
    overflow: hidden;
}

.ub-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    direction: rtl;
}

.ub-modal.is-open {
    display: flex;
}

.ub-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
    animation: ub-modal-fade 0.2s ease;
}

.ub-modal-box {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    padding: 28px 26px 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    text-align: right;
    animation: ub-modal-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-overflow-scrolling: touch;
}

.ub-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.ub-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.ub-modal-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    padding-inline-end: 34px;
    border-bottom: 1px solid #eef2f7;
}

.ub-modal-img {
    width: 62px;
    height: 62px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
    background: #f8fafc;
}

.ub-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
}

.ub-modal-body {
    font-size: 14.5px;
    line-height: 1.8;
    color: #374151;
}

.ub-modal-body p {
    margin: 0 0 12px;
}

.ub-modal-body p:last-child {
    margin-bottom: 0;
}

.ub-modal-body ul,
.ub-modal-body ol {
    margin: 10px 0 14px;
    padding-inline-start: 20px;
}

.ub-modal-body li {
    margin-bottom: 6px;
}

.ub-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

.ub-modal-body h1,
.ub-modal-body h2,
.ub-modal-body h3,
.ub-modal-body h4 {
    margin: 16px 0 8px;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

@keyframes ub-modal-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ub-modal-pop {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
    .ub-modal {
        padding: 0;
        align-items: flex-end;
    }

    .ub-modal-box {
        max-width: 100%;
        max-height: 88vh;
        border-radius: 20px 20px 0 0;
        padding: 24px 18px 22px;
        animation: ub-modal-sheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .ub-modal-title {
        font-size: 16px;
    }

    .ub-modal-body {
        font-size: 14px;
    }
}

@keyframes ub-modal-sheet {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

/* מצב 'inline' - הבלוק יושב בתוך עמודת פרטי הלקוח */
.ub-checkout .woocommerce-additional-fields .ub-upsells,
.ub-checkout #customer_details .ub-upsells {
    margin: 24px 0 0;
    max-width: 100%;
}
