/* Landing page for marketplace links that have no affiliate link yet.
   Plain CSS (not Tailwind utilities) because css/tailwind.css is a static,
   pre-compiled bundle: classes that were never used elsewhere are missing. */

.alu-shell {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2.5rem 1rem 4rem;
}
@media (min-width: 640px) {
    .alu-shell { padding: 3.5rem 1.5rem 5rem; }
}

.alu-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .055);
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .alu-card { padding: 2.5rem; }
}

.alu-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.alu-title {
    margin: 1rem 0 0;
    color: #111827;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
}
@media (min-width: 640px) {
    .alu-title { font-size: 2.125rem; }
}

.alu-lead {
    margin: .9rem 0 0;
    color: #374151;
    font-size: 1rem;
    line-height: 1.75;
}


/* The product / package the visitor was looking at */
.alu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #f9fafb;
}
.alu-item__img {
    flex: 0 0 auto;
    width: 5rem;
    height: 5rem;
    border-radius: .85rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    object-fit: contain;
}
.alu-item__img.image-fallback { object-fit: cover; }
.alu-item__label {
    margin: 0;
    color: #6b7280;
    font-size: .6875rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.alu-item__title {
    margin: .15rem 0 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}
.alu-item__meta {
    margin: .25rem 0 0;
    color: #6b7280;
    font-size: .8125rem;
}

/* "We do have a link on the other marketplace" block */
.alu-alt {
    margin-top: 1.5rem;
    padding: 1.1rem;
    border: 1px solid #d1fae5;
    border-radius: 1rem;
    background: #f0fdf4;
}
.alu-alt__title {
    margin: 0;
    color: #065f46;
    font-size: .9375rem;
    font-weight: 800;
}
.alu-alt__text {
    margin: .25rem 0 .9rem;
    color: #047857;
    font-size: .8125rem;
    line-height: 1.55;
}
/* Two marketplace buttons side by side (wraps to one column when narrow) */
.alu-btn-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
}

/* "Visit Shopee / Visit Lazada" row */
.alu-visit { margin-top: 1.5rem; }
.alu-visit__label {
    margin: 0 0 .7rem;
    color: #4b5563;
    font-size: .8125rem;
    font-weight: 700;
}

/* Primary / secondary actions */
.alu-actions {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1.75rem;
}
@media (min-width: 560px) {
    .alu-actions { flex-direction: row; flex-wrap: wrap; }
}
.alu-actions--end { justify-content: flex-end; }
.alu-actions--end .alu-btn { min-width: 7rem; }
.alu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border-radius: .85rem;
    font-size: .875rem;
    font-weight: 800;
    line-height: 1.25rem;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.alu-btn--primary {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(5, 150, 105, .25);
}
.alu-btn--primary:hover,
.alu-btn--primary:focus-visible {
    background: #047857;
    transform: translateY(-1px);
    outline: none;
}
.alu-btn--ghost {
    background: #f3f4f6;
    color: #374151;
}
.alu-btn--ghost:hover,
.alu-btn--ghost:focus-visible {
    background: #e5e7eb;
    outline: none;
}

/* "Where to next?" tiles inside the panel */
.alu-next { margin-top: 1.75rem; }
.alu-next__title {
    margin: 0 0 .75rem;
    color: #111827;
    font-size: 1rem;
    font-weight: 800;
}

/* Section blocks under the main card */
.alu-section { margin-top: 2rem; }
.alu-section__title {
    margin: 0 0 .9rem;
    color: #111827;
    font-size: 1.125rem;
    font-weight: 800;
}

.alu-grid {
    display: grid;
    gap: 1rem;
}
@media (min-width: 640px) {
    .alu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.alu-tile {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.1rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.alu-tile:hover,
.alu-tile:focus-visible {
    border-color: #6ee7b7;
    box-shadow: 0 8px 20px rgba(15, 118, 110, .10);
    transform: translateY(-2px);
    outline: none;
}
.alu-tile__img {
    width: 100%;
    height: 7rem;
    margin-bottom: .75rem;
    border-radius: .8rem;
    background: #f9fafb;
    object-fit: contain;
}
.alu-tile__img.image-fallback { object-fit: cover; }
.alu-tile__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: .75rem;
    border-radius: .8rem;
    background: #ecfdf5;
    color: #059669;
    font-size: 1.05rem;
}
.alu-tile__title {
    margin: 0;
    color: #111827;
    font-size: .9375rem;
    font-weight: 800;
    line-height: 1.35;
}
.alu-tile__meta {
    margin: .3rem 0 0;
    color: #6b7280;
    font-size: .8125rem;
    line-height: 1.5;
}
.alu-tile__cta {
    margin-top: auto;
    padding-top: .75rem;
    color: #047857;
    font-size: .8125rem;
    font-weight: 800;
}

/* ------------------------------------------------------------------
   Pop-up (modal) shell - markup lives in includes/link-unavailable-modal.php
   ------------------------------------------------------------------ */
.alu-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.alu-modal[hidden] { display: none; }
.alu-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .2s ease;
}
.alu-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 34rem;
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    padding: 1.5rem;
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
    outline: none;
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: opacity .2s ease, transform .2s ease;
}
.alu-modal.is-open .alu-modal__backdrop { opacity: 1; }
.alu-modal.is-open .alu-modal__dialog { opacity: 1; transform: none; }
@media (min-width: 640px) {
    .alu-modal__dialog { padding: 2rem; }
}
.alu-modal__x {
    position: absolute;
    top: .75rem;
    right: .75rem;
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #6b7280;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
.alu-modal__x:hover,
.alu-modal__x:focus-visible {
    background: #e5e7eb;
    color: #111827;
    outline: none;
}
.alu-modal .alu-title {
    margin-top: .85rem;
    padding-right: 2rem;
    font-size: 1.3rem;
}
.alu-modal .alu-lead { font-size: .9375rem; line-height: 1.65; }
.alu-modal .alu-item__img { width: 4rem; height: 4rem; }
.alu-modal .alu-item,
.alu-modal .alu-alt,
.alu-modal .alu-visit,
.alu-modal .alu-actions { margin-top: 1.1rem; }
@media (max-width: 639px) {
    .alu-modal__dialog { padding: 1.25rem; }
}
    .alu-modal__dialog { padding: 1.25rem; }
}

.alu-loading {
    padding: 2.5rem 0;
    text-align: center;
    color: #6b7280;
    font-size: .875rem;
}
.alu-loading::before {
    content: "";
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 auto .75rem;
    border: 3px solid #d1fae5;
    border-top-color: #059669;
    border-radius: 50%;
    animation: aluSpin .8s linear infinite;
}
@keyframes aluSpin { to { transform: rotate(360deg); } }

html.alu-lock,
html.alu-lock body { overflow: hidden; }

/* Compact "Where to next?" tiles so they fit inside the pop-up */
.alu-modal .alu-next { margin-top: 1.25rem; }
.alu-modal .alu-next__title { margin-bottom: .6rem; font-size: .9375rem; }
.alu-modal .alu-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.alu-modal .alu-tile { padding: .75rem; border-radius: .9rem; }
.alu-modal .alu-tile__icon { width: 2rem; height: 2rem; margin-bottom: .5rem; font-size: .9rem; }
.alu-modal .alu-tile__title { font-size: .8125rem; }
.alu-modal .alu-tile__meta { display: none; }
.alu-modal .alu-tile__cta { padding-top: .5rem; font-size: .75rem; }
@media (max-width: 639px) {
    /* one compact row per tile: icon, title, arrow */
    .alu-modal .alu-grid--3 { grid-template-columns: 1fr; gap: .5rem; }
    .alu-modal .alu-tile { flex-direction: row; align-items: center; gap: .75rem; }
    .alu-modal .alu-tile__icon { margin-bottom: 0; flex: 0 0 auto; }
    .alu-modal .alu-tile__title { flex: 1 1 auto; }
    .alu-modal .alu-tile__cta { margin-top: 0; padding-top: 0; flex: 0 0 auto; }
    .alu-modal .alu-tile__cta-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .alu-modal__backdrop,
    .alu-modal__dialog { transition: none; }
    .alu-loading::before { animation: none; }
}
