.mikana-deal {
    margin: 1.5em auto;
    max-width: 1040px;
    width: 100%;
    box-sizing: border-box;
}

.mikana-deal *,
.mikana-deal *::before,
.mikana-deal *::after {
    box-sizing: border-box;
}

/* Price/coupon accuracy note at the bottom of every deal. */
.mikana-deal-disclaimer {
    max-width: 1040px;
    margin: 18px auto 0;
    padding: 10px 14px;
    background: #fff8e6;
    border: 1px solid #ffe08a;
    border-radius: 6px;
    font-size: 0.85em;
    line-height: 1.5;
    color: #6b5300;
}

.mikana-deal-disclaimer .mikana-report-link {
    color: #b32d2e;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
}

/* Two-column deal card — media (left, larger) + info (right, ~410px).
   Ported from the legacy radi-deal-layout. */
.mikana-deal__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    width: 100%;
}

.mikana-deal__info {
    flex: 0 1 410px;
    min-width: 280px;
    text-align: right;
    position: relative;
}

.mikana-deal__media {
    flex: 1 1 500px;
    min-width: 280px;
    text-align: center;
}

.mikana-deal__title {
    font-size: 26px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 18px;
    color: #111827;
}

.mikana-deal__media .mikana-deal__image img {
    max-height: 430px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.mikana-deal__media .mikana-deal__gallery {
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 8px auto 0;
}

@media (max-width: 760px) {
    .mikana-deal__grid {
        flex-direction: column;
        gap: 22px;
    }
    .mikana-deal__info,
    .mikana-deal__media {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }
    .mikana-deal__media {
        order: -1;
    }
    .mikana-deal__title {
        font-size: 22px;
    }
}

/* Coupon cards */
.mikana-deal__coupons {
    margin: 1.5em 0;
    text-align: center;
}

.mikana-coupon {
    border: 2px dashed #2271b1;
    border-radius: 10px;
    background: #f6f9fc;
    padding: 14px 18px;
    margin: 12px auto;
    text-align: center;
    cursor: pointer;
    max-width: 460px;
}

.mikana-coupon:focus {
    outline: 3px solid #4f94d4;
    outline-offset: 2px;
}

.mikana-coupon__title {
    font-weight: 700;
    margin-bottom: 10px;
}

.mikana-coupon__code {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 6px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 1.1em;
    letter-spacing: 2px;
}

/* Each interchangeable code is its OWN dashed pill (use either one). */
.mikana-coupon__code span {
    display: inline-block;
    padding: 3px 12px;
    border: 1px dashed #2271b1;
    border-radius: 6px;
    background: #eef5fb;
    cursor: pointer;
    filter: blur(5px);
    transition: filter 0.15s ease;
    user-select: none;
}

.mikana-coupon.is-revealed .mikana-coupon__code span {
    filter: none;
    user-select: all;
}

.mikana-coupon__meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #2271b1;
}

.mikana-deal__badge {
    display: inline-block;
    background: #ff414d;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    line-height: 1;
    padding: 8px 13px;
    margin: 0 0 14px;
}

.mikana-deal__facts {
    list-style: none;
    margin: 0 0 1em;
    padding: 0;
    font-size: 18px;
    color: #111827;
}

.mikana-deal__facts li {
    margin: 0 0 6px;
    line-height: 1.5;
}

.mikana-deal__label {
    font-weight: 700;
}

.mikana-deal__ils {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    font-size: 18px;
    font-weight: 800;
    margin-top: 8px;
}

/* Keep the label and the price value on the same line (they used to wrap). */
.mikana-deal__ils .mikana-deal__label,
.mikana-deal__ils strong,
.mikana-deal__ils s {
    display: inline;
    font-size: inherit;
}

.mikana-deal__ils strong {
    font-weight: 800;
}

.mikana-deal__app,
.mikana-deal__app strong {
    color: #0a7d2c;
}

.mikana-expired-banner {
    margin: 0 0 18px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #fdecea;
    border: 1px solid #f5c6c0;
    color: #8a1f11;
    font-weight: 700;
    font-size: 1.05em;
}

.mikana-expired-banner a {
    color: #2271b1;
}

.mikana-deal__video {
    margin-top: 10px;
}

.mikana-deal__video video {
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    background: #000;
}

.mikana-deal__image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.mikana-deal__desc {
    margin: 1em 0;
    line-height: 1.7;
}

.mikana-deal__price {
    font-size: 1.4em;
    margin: 0.5em 0;
}

.mikana-deal__price-old {
    color: #6c6c6c; /* AA contrast (>=4.5:1) on white */
    font-size: 0.75em;
    margin-inline-start: 8px;
}

.mikana-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mikana-deal__gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.mikana-deal__gallery img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
}

.mikana-deal__cta {
    margin: 18px 0 0;
}

.mikana-deal__cta a {
    display: block;
    background: #1e88ff;
    border: 1px solid #0b63ce;
    color: #fff;
    padding: 15px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 800;
    font-size: 22px;
    line-height: 1.2;
    max-width: 400px;
    text-align: center;
}

.mikana-deal__cta a:hover {
    background: #0b63ce;
}

/* Lightbox */
.mikana-deal__gallery a,
.mikana-deal__image img {
    cursor: zoom-in;
}

.mikana-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.mikana-lightbox.is-open {
    display: flex;
}

.mikana-lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 8px;
}

.mikana-lightbox__close {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    width: 44px;
    height: 44px;
    font-size: 28px;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

.mikana-lightbox__close:focus {
    outline: 3px solid #4f94d4;
    outline-offset: 2px;
}

/* Price history — collapsed <details>, centered toggle heading */
.mikana-price-history {
    margin: 1.5em 0;
    text-align: center;
}

.mikana-price-history__summary {
    display: inline-block;
    margin: 0 auto 10px;
    padding: 10px 22px;
    border: 1px solid #2271b1;
    border-radius: 8px;
    color: #2271b1;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    text-align: center;
}

.mikana-price-history__summary::-webkit-details-marker {
    display: none;
}

.mikana-price-history__details[open] .mikana-price-history__summary {
    background: #2271b1;
    color: #fff;
}

.mikana-price-history table {
    width: 100%;
    border-collapse: collapse;
}

.mikana-price-history th,
.mikana-price-history td {
    border: 1px solid #e0e0e0;
    padding: 8px 10px;
    text-align: center;
}

.mikana-price-history th {
    background: #f6f7f7;
}

.mikana-price-history .is-down {
    color: #1a7f37;
    font-weight: 700;
}

.mikana-price-history .is-up {
    color: #b32d2e;
    font-weight: 700;
}

/* Related products (appended after the price-history table) */
.mikana-related {
    max-width: 1040px;
    margin: 2em auto 1em;
}

.mikana-related__title {
    text-align: center;
}

.mikana-related-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 600px) {
    .mikana-related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.mikana-related-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 8px;
    transition: box-shadow 0.15s ease;
}

.mikana-related-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.mikana-related-card img {
    width: 100%;
    height: 110px;
    object-fit: contain;
}

.mikana-related-card__title {
    display: block;
    flex: 1 1 auto; /* fills the gap so prices/CTAs line up at the same height */
    margin-top: 6px;
    font-size: 0.82em;
    line-height: 1.35;
    text-align: center;
}

.mikana-related-card__price {
    display: block;
    margin-top: 6px;
    color: #e0290a;
    font-weight: 800;
    font-size: 0.9em;
    text-align: center;
}

.mikana-related-card__cta {
    display: block;
    margin-top: 6px;
    padding-top: 8px;
    color: #2271b1;
    font-weight: 600;
    font-size: 0.85em;
    text-align: center;
}

/* Seller comparison table */
.mikana-compare {
    margin: 28px 0;
}
.mikana-compare__title {
    margin: 0 0 12px;
    font-size: 1.25em;
}
.mikana-compare__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
}
.mikana-compare__table th,
.mikana-compare__table td {
    padding: 10px 12px;
    text-align: right;
    border-bottom: 1px solid #e6e6e6;
}
.mikana-compare__table thead th {
    background: #f6f7f7;
    font-weight: 700;
}
.mikana-compare__table tr.is-primary {
    background: #f0f7ff;
}
.mikana-compare__badge {
    display: inline-block;
    margin-right: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: #2271b1;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
}
.mikana-compare__btn {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 6px;
    background: #ff6a00;
    color: #fff !important;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.mikana-compare__btn:hover {
    background: #e85f00;
}
.mikana-compare__note {
    margin-top: 8px;
    font-size: 0.8em;
    color: #777;
}
@media (max-width: 600px) {
    .mikana-compare__table thead {
        display: none;
    }
    .mikana-compare__table tr {
        display: block;
        margin-bottom: 14px;
        border: 1px solid #e6e6e6;
        border-radius: 8px;
        padding: 6px 10px;
    }
    .mikana-compare__table td {
        display: flex;
        justify-content: space-between;
        border: 0;
        padding: 6px 0;
    }
    .mikana-compare__table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: #555;
    }
}

.mikana-price-report {
    display: inline-block;
    margin: 4px 0 10px;
    padding: 4px 12px;
    border: 1px solid #d63638;
    border-radius: 6px;
    background: transparent;
    color: #d63638;
    font-size: 0.82em;
    cursor: pointer;
}

.mikana-price-report:disabled {
    opacity: 0.7;
    cursor: default;
}

/* Expired-deal mode */
.mikana-deal.is-expired .mikana-deal__media,
.mikana-deal.is-expired .mikana-deal__facts,
.mikana-deal.is-expired .mikana-deal__desc {
    filter: grayscale(1);
    opacity: 0.55;
}

.mikana-deal.is-expired .mikana-deal__ils strong,
.mikana-deal.is-expired .mikana-deal__facts li {
    text-decoration: line-through;
}

.mikana-deal.is-expired .mikana-deal__coupons,
.mikana-deal.is-expired .mikana-price-report {
    display: none;
}

.mikana-deal.is-expired .mikana-deal__image {
    position: relative;
}

.mikana-deal.is-expired .mikana-deal__image::after {
    content: 'הדיל הסתיים';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-14deg);
    padding: 10px 28px;
    border: 4px solid #b32d2e;
    border-radius: 10px;
    color: #b32d2e;
    background: rgba(255, 255, 255, 0.85);
    font-size: 30px;
    font-weight: 900;
    white-space: nowrap;
}

.mikana-deal.is-expired .mikana-deal__cta a[aria-disabled='true'] {
    background: #9aa0a6;
    border-color: #80868b;
    cursor: not-allowed;
    pointer-events: none;
}

.mikana-deal__back-alert {
    display: block;
    margin-top: 10px;
    padding: 13px 24px;
    background: #229ED9;
    border-radius: 5px;
    color: #fff !important;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
    max-width: 400px;
}
