/**
 * Store & coupon UI: inherits theme font; baseline readable for SEO/accessibility.
 */
.wd-store-sidebar,
.wd-store-main {
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wd-store-breadcrumb {
    font-size: 0.875rem;
    line-height: 1.5;
}

.wd-store-breadcrumb__current {
    color: inherit;
}

/* Archive — header kiểu category; phần nội dung không dùng td-block-row (tránh padding kép làm ô co) */
.wd-store-archive.td-category-header .td-crumb-container {
    margin-bottom: 0;
}

.wd-store-archive.td-category-header .entry-title.td-page-title {
    margin-top: 0.35em;
}

/* Grid full chiều ngang cột chính — không float/td-block-span */
.wd-store-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wd-store-archive-grid .wd-store-archive-card {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1018px) {
    .wd-store-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 20px;
    }
}

@media (max-width: 767px) {
    .wd-store-archive-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Archive — cột có khoảng cách ngang giữa các thẻ */
.td-ss-main-content .td-block-row .wd-store-archive-card-col {
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
}

/* Archive: reset margin theme trên module ảnh để khối logo sạch */
.td-ss-main-content .wd-store-archive-card .td-module-image {
    margin-bottom: 0 !important;
}

.td-ss-main-content .wd-store-archive-card .td-module-thumb {
    margin-bottom: 0 !important;
}

/* Thẻ store — layout dọc đồng đều (ghi đè padding-bottom 35px của .td_module_wrap theme) */
.td-ss-main-content .wd-store-archive-card.td_module_wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0 0 22px;
    padding-bottom: 0 !important;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: none;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
}

.td-ss-main-content .wd-store-archive-card.td_module_wrap:hover {
    border-color: rgba(15, 23, 42, 0.14);
    transform: translateY(-2px);
}

.td-ss-main-content .wd-store-archive-card.td_module_wrap:hover .wd-store-archive-card__logo {
    transform: scale(1.02);
}

.wd-store-archive-card__thumb {
    position: relative;
    background: #f4f6f9;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Sọc nhẹ — tránh nền phẳng đơn điệu */
.wd-store-archive-card__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.45;
    pointer-events: none;
}

.wd-store-archive-card__logo-link {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 120px;
    max-height: 160px;
    padding: 20px 18px;
    box-sizing: border-box;
    transition: background-color 0.25s ease;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__logo-link {
    background-color: rgba(255, 255, 255, 0.65);
}

/* Ghi đè .entry-thumb { width:100% } của theme (td-composer) để logo không bị kéo full ô rồi trông lệch */
.td-ss-main-content .wd-store-archive-card .td-module-thumb .entry-thumb.wd-store-archive-card__logo {
    display: block;
    width: auto;
    min-width: 0;
    height: auto;
    max-width: 100%;
    max-height: 96px;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
    object-position: center center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.wd-store-archive-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 16px 16px;
    text-align: center;
    gap: 6px;
}

.wd-store-archive-card__category {
    margin: 0;
    line-height: 1.2;
    max-width: 100%;
}

.wd-store-archive-card__category a {
    display: inline-block;
    max-width: 100%;
    padding: 4px 11px;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #475569;
    text-decoration: none;
    background: #f1f5f9;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wd-store-archive-card__category a:hover,
.wd-store-archive-card__category a:focus-visible {
    background: #e2e8f0;
    color: #0f172a;
    border-color: rgba(148, 163, 184, 0.55);
}

.wd-store-archive-card__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    margin: 0;
}

.td-ss-main-content .wd-store-archive-card .wd-store-stars--archive {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1;
}

.wd-store-archive-card__rating-text {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.wd-store-archive-card__title {
    margin: 0 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
}

.wd-store-archive-card__title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__title a {
    color: #1e3a5f;
}

.wd-store-archive-card__title a:hover,
.wd-store-archive-card__title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.wd-store-archive-card__excerpt.td-excerpt {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: #64748b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Dòng CTA — nhỏ, rõ, không tranh với tiêu đề */
.wd-store-archive-card__cta {
    margin-top: auto;
    padding-top: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wd-store-archive-card__cta::after {
    content: " →";
    font-weight: 400;
    opacity: 0.75;
    transition: transform 0.2s ease;
    display: inline-block;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__cta {
    color: #0f172a;
}

.td-ss-main-content .wd-store-archive-card:hover .wd-store-archive-card__cta::after {
    transform: translateX(3px);
}

.wd-store-archive-card__cta:hover,
.wd-store-archive-card__cta:focus-visible {
    color: #0f172a;
    outline: none;
}

.wd-store-archive-card__cta:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(15, 23, 42, 0.35);
    border-radius: 4px;
}

@media (max-width: 767px) {
    .td-ss-main-content .wd-store-archive-card__logo-link {
        min-height: 112px;
        aspect-ratio: auto;
        max-height: none;
    }

    .td-ss-main-content .wd-store-archive-card__body {
        padding: 14px 14px 14px;
    }
}

/*
 * Single store — desktop: 2 cột (sidebar = card + Other stores xếp dọc, sát nhau; main bên phải).
 * Mobile: ẩn Other stores trong sidebar; hiện bản copy sau main (flex order).
 */
@media (min-width: 769px) {
    .wd-store-single-row>.wd-store-col-other-mobile {
        display: none !important;
    }

    .td-container .wd-store-single-row {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        grid-template-rows: auto;
        align-items: start;
        width: 100%;
    }

    .wd-store-single-row>.wd-store-col-sidebar,
    .wd-store-single-row>.wd-store-col-main {
        float: none !important;
        width: auto !important;
        max-width: none !important;
        min-height: 0;
        box-sizing: border-box;
    }

    .wd-store-single-row>.wd-store-col-sidebar {
        grid-column: 1 / span 4;
        grid-row: 1;
    }

    .wd-store-single-row>.wd-store-col-main {
        grid-column: 5 / span 8;
        grid-row: 1;
    }
}

/* Tránh nội dung store (đặc biệt Other stores) dính sát footer theme */
.td-container .wd-store-single-row {
    margin-bottom: 3rem;
    padding-bottom: 0.75rem;
}

.td-container .wd-store-single-row:has(+ .wd-store-related-articles) {
    margin-bottom: 1.25rem;
    padding-bottom: 0;
}

.wd-store-other-stores-wrap {
    padding: 0;
}

/* Sidebar store */
.wd-store-sidebar {
    padding: 0;
}

.wd-store-sidebar .wd-store-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    padding: 20px 16px;
    margin: 0 0 20px;
    font-size: 1rem;
    text-align: center;
}

.wd-store-card-logo {
    text-align: center;
    margin: 0 0 12px;
}

.wd-store-card-logo img {
    max-width: 100%;
    height: auto;
}

.wd-store-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
}

.wd-store-card-rating {
    margin: 0 0 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wd-store-stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 2px;
}

.wd-store-stars__bg {
    color: #ddd;
}

.wd-store-stars__fill {
    position: absolute;
    left: 0;
    top: 0;
    overflow: hidden;
    color: #f6b200;
    white-space: nowrap;
}

.wd-store-card-rating-text {
    font-size: 0.8125rem;
    color: #666;
}

.wd-store-card-category {
    margin: 0 0 10px;
    text-align: center;
    font-style: italic;
}

.wd-store-card-category a {
    font-style: italic;
}

.wd-store-card-website {
    margin: 0 0 12px;
}

.wd-store-card-short {
    margin: 0;
    text-align: left;
}

.wd-store-visit-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #f6b200;
    color: #000;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 3px;
}

.wd-store-visit-btn:hover {
    background: #ffcc00;
    color: #000;
}

/* Other stores grid */
.wd-other-stores {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid #e3e3e3;
    text-align: left;
}

.wd-other-stores__title {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    padding: 16px 16px 12px;
    line-height: 1.35;
}

.wd-other-stores__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 16px 16px;
    background: #fff;
}

.wd-other-stores__item {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 0;
    background: #fff;
    overflow: hidden;
}

.wd-other-stores__item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wd-other-stores__item:hover {
    background: #fff;
}

/* Coupon list */
.wd-store-main {
    padding: 0;
}

/* Store page title — desktop + mobile headers share typography */
.wd-store-header .td-page-title {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.desktop-store-header {
    margin: 0 0 16px;
}

/* Mặc định ẩn bản mobile (desktop-first) */
.mobile-store-header {
    display: none;
}

/* Mobile: hiện mobile-store-header, ẩn desktop-store-header */
@media (max-width: 768px) {
    .desktop-store-header {
        display: none !important;
    }

    .mobile-store-header {
        display: block !important;
        margin: 0 0 1.25rem;
    }
}

/* Desktop: hiện desktop-store-header, ẩn mobile-store-header */
@media (min-width: 769px) {
    .mobile-store-header {
        display: none !important;
    }

    .desktop-store-header {
        display: block;
    }
}

.wd-store-coupons__heading {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 10px;
    color: #111;
}

.wd-coupon-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    margin: 0 0 16px;
    border-bottom: 1px solid #e3e3e3;
}

.wd-coupon-tab {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 10px 12px 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: #666;
    cursor: pointer;
    text-align: center;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.wd-coupon-tab:hover {
    color: #111;
    background: rgba(0, 0, 0, 0.03);
}

.wd-coupon-tab:focus {
    outline: 2px solid #f6b200;
    outline-offset: 2px;
}

.wd-coupon-tab:focus:not(:focus-visible) {
    outline: none;
}

.wd-coupon-tab:focus-visible {
    outline: 2px solid #f6b200;
    outline-offset: 2px;
}

.wd-coupon-tab.is-active {
    color: #111;
    border-bottom-color: #f6b200;
    font-weight: 700;
}

.wd-coupon-tab__count {
    font-weight: 600;
    opacity: 0.7;
    font-size: 0.875em;
    margin-left: 2px;
}

.wd-coupon-tabpanel {
    min-height: 0;
}

.wd-coupon-filter-empty {
    margin: 0 0 12px;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.5;
}

.wd-store-about-text {
    font-size: 1rem;
    line-height: 1.65;
    color: #333;
}

.wd-coupon-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wd-coupon-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #e3e3e3;
    background: #fff;
    padding: 0;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}

.wd-coupon-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    margin-top: auto;
    padding: 10px 16px;
    background: #f7f8f9;
    border-top: 1px solid #e8e8e8;
    box-sizing: border-box;
}

.wd-coupon-meta-bar__text {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #5c6470;
    font-weight: 500;
}

.wd-coupon-verified {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #2e7d32;
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
}

.wd-coupon-verified__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2e7d32;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 700;
}

.wd-coupon-row__inner {
    display: flex;
    align-items: stretch;
    flex: 1;
    padding: 18px 20px;
    gap: 0;
    min-width: 0;
}

/* Tab filter: class beats some themes that reset [hidden] */
.wd-coupon-row.is-wd-tab-hidden {
    display: none !important;
}

.wd-coupon-offer-col {
    flex: 0 0 140px;
    max-width: 160px;
    padding-right: 16px;
    margin-right: 16px;
    border-right: 1px solid #eee;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wd-coupon-offer-text {
    font-size: 1.5125rem;
    font-weight: 700;
    line-height: 1.35;
    color: #e53935;
}

.wd-coupon-row--no-offer .wd-coupon-offer-col {
    display: none;
}

.wd-coupon-body {
    flex: 1;
    font-size: 1rem;
    min-width: 0;
    text-align: left;
}

.wd-coupon-date {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 8px;
    font-size: 0.8125rem;
    line-height: 1.3;
    color: #999;
}

.wd-coupon-date__icon {
    font-size: 14px;
    line-height: 1;
    opacity: 0.85;
}

.wd-coupon-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 10px;
    color: #111;
    line-height: 1.35;
}

.wd-coupon-desc {
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.wd-coupon-desc p {
    margin: 0 0 0.5em;
}

.wd-coupon-desc p:last-child {
    margin-bottom: 0;
}

/* Meta (code/usage) hidden on list card — shown in popup only */
.wd-coupon-action {
    flex-shrink: 0;
    margin-left: 20px;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wd-coupon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 42px;
    padding: 0;
    background: #f6b200;
    color: #000;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 6px;
    border: 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.9375rem;
    box-sizing: border-box;
}

.wd-coupon-btn:hover {
    background: #ffcc00;
    color: #000;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

@media (min-width: 769px) {
    .wd-coupon-btn {
        width: 140px;
        height: 36px;
        font-size: 0.8125rem;
        border-radius: 5px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    }
}

/* Get Code — 3-layer peel button */
.wd-getcode-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 42px;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    background: transparent;
    overflow: hidden;
    border-radius: 6px;
    font-family: inherit;
}

/* Layer 1 (bottom): code + dashed border, text right-aligned */
.wd-getcode-btn__code {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    border: 2px dashed #f6b200;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.08em;
    background: #fff;
    z-index: 1;
    box-sizing: border-box;
}

/* Layer 2 (middle): green cover with deeper diagonal cut corner */
.wd-getcode-btn__cover {
    position: absolute;
    inset: 0;
    background: #f6b200;
    z-index: 2;
    border-radius: 6px;
    clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 100%, 0 100%);
    transition: transform 0.25s ease;
}

/* Fold triangle: sits in the cut corner gap, darker shade */
.wd-getcode-btn__fold {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 3;
    width: 40px;
    height: 100%;
    /* Lật ngược lại hình tam giác */
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 0);
    background: #e0a000;
    transition: transform 0.25s ease;
    pointer-events: none;
}

/* Layer 3 (top): "Get Code" label — centered across entire button */
.wd-getcode-btn__label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 700;
    font-size: 0.9375rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
    transition: transform 0.25s ease;
}

/* Hover: slide green layers left to reveal more code */
.wd-getcode-btn:hover .wd-getcode-btn__cover,
.wd-getcode-btn:hover .wd-getcode-btn__fold,
.wd-getcode-btn:hover .wd-getcode-btn__label {
    transform: translateX(-12px);
}

.wd-getcode-btn:hover .wd-getcode-btn__cover {
    background: #ffcc00;
}

@media (min-width: 769px) {
    .wd-getcode-btn {
        width: 140px;
        height: 36px;
    }

    .wd-getcode-btn__label {
        font-size: 0.8125rem;
    }

    .wd-getcode-btn__code {
        font-size: 0.875rem;
        padding-right: 10px;
    }
}

/* Coupon modal */
.wd-coupon-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.wd-coupon-modal.is-open {
    display: flex;
    animation: wd-modal-fade-in 0.2s ease-out;
}

@keyframes wd-modal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

body.wd-coupon-modal-open {
    overflow: hidden;
}

.wd-coupon-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.wd-coupon-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 400px;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    overflow: hidden;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    font-family: inherit;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    animation: wd-modal-slide-in 0.25s ease-out;
}

@keyframes wd-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wd-coupon-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e3e3;
    padding: 8px 12px;
    background: #fafafa;
}

.wd-coupon-modal__back {
    border: 0;
    background: transparent;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    font-weight: 500;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.wd-coupon-modal__back:hover {
    color: #000;
}

.wd-coupon-modal__back span:first-child {
    font-size: 12px;
    opacity: 0.8;
}

.wd-coupon-modal__close {
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #888;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 3px;
    transition: color 0.15s ease, background 0.15s ease;
}

.wd-coupon-modal__close:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.06);
}

.wd-coupon-modal__content {
    padding: 14px 16px;
    text-align: center;
    font-size: 14px;
}

.wd-coupon-modal__title {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
    color: #1a1a1a;
}

.wd-coupon-modal__subtitle {
    margin: 0 0 10px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

.wd-coupon-modal__code-block {
    margin: 0 0 10px;
}

.wd-coupon-modal__no-code {
    margin: 0 0 10px;
}

.wd-coupon-modal__no-code-note {
    margin: 0;
    padding: 12px 14px;
    background: #f8f8f8;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    line-height: 1.45;
}

.wd-coupon-modal__code-wrap {
    display: flex;
    align-items: stretch;
    margin: 0;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #e3e3e3;
}

.wd-coupon-modal__code {
    flex: 1;
    background: #f8f8f8;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.03em;
    padding: 8px 12px;
}

.wd-coupon-modal__copy {
    border: 0;
    min-width: 70px;
    padding: 0 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wd-coupon-modal__copy:hover {
    background: #333;
}

.wd-coupon-modal__copy.is-copied {
    background: #1e9e48;
}

.wd-coupon-modal__redeem {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 36px;
    width: 100%;
    border: 1px solid #e3e3e3;
    border-radius: 3px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 12px;
    padding: 8px 14px;
    line-height: 1.3;
    font-weight: 600;
    margin: 0 0 16px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wd-coupon-modal__redeem:hover {
    border-color: #f6b200;
    background: #fffef8;
}

.wd-coupon-modal__vote {
    margin-bottom: 12px;
}

.wd-coupon-modal__vote p {
    margin: 0 0 6px;
    color: #666;
    font-size: 12px;
}

.wd-coupon-modal__vote-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.wd-coupon-modal__vote-actions button {
    border: 1px solid #e3e3e3;
    background: #fff;
    color: #666;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 3px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.wd-coupon-modal__vote-actions button:hover {
    border-color: #ccc;
    background: #f8f8f8;
}

.wd-coupon-modal__details {
    border-top: 1px solid #e3e3e3;
    text-align: left;
    padding-top: 10px;
}

.wd-coupon-modal__details h3 {
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 700;
    color: #333;
}

.wd-coupon-modal__details p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #666;
}

@media (min-width: 769px) {
    .wd-coupon-modal {
        padding: 24px;
    }

    .wd-coupon-modal__dialog {
        max-width: 540px;
    }

    .wd-coupon-modal__head {
        padding: 12px 18px;
    }

    .wd-coupon-modal__back {
        font-size: 13px;
    }

    .wd-coupon-modal__back span:first-child {
        font-size: 14px;
    }

    .wd-coupon-modal__close {
        font-size: 20px;
        padding: 4px 8px;
    }

    .wd-coupon-modal__content {
        padding: 22px 28px 28px;
        font-size: 15px;
    }

    .wd-coupon-modal__title {
        margin: 0 0 8px;
        font-size: 1.25rem;
        line-height: 1.35;
    }

    .wd-coupon-modal__subtitle {
        margin: 0 0 16px;
        font-size: 0.875rem;
    }

    .wd-coupon-modal__code-block,
    .wd-coupon-modal__no-code {
        margin: 0 0 16px;
    }

    .wd-coupon-modal__no-code-note {
        padding: 16px 18px;
        font-size: 1rem;
    }

    .wd-coupon-modal__code {
        font-size: 1.125rem;
        padding: 14px 16px;
    }

    .wd-coupon-modal__copy {
        min-width: 72px;
        padding: 12px 16px;
        font-size: 0.9375rem;
    }

    .wd-coupon-modal__redeem {
        margin: 0 0 18px;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .wd-coupon-modal__vote {
        margin: 0 0 18px;
    }

    .wd-coupon-modal__vote p {
        font-size: 0.9375rem;
        margin-bottom: 10px;
    }

    .wd-coupon-modal__vote-actions button {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

    .wd-coupon-modal__details h3 {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }

    .wd-coupon-modal__details p {
        font-size: 0.875rem;
    }
}

/* ABOUT sections */
.wd-store-about-sections {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e3e3e3;
}

.wd-store-about-block {
    margin: 0 0 24px;
}

.wd-store-about-block:last-child {
    margin-bottom: 0;
}

.wd-store-section-title {
    font-size: 1.325rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.35;
    color: #111;
}

/* FAQ (Q:/A: pairs) */
.wd-store-faq-block .wd-store-faq-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wd-store-faq-block .wd-store-faq-question,
.wd-store-faq-block .wd-store-faq-answer {
    margin: 0;
    padding: 0;
}

.wd-store-faq-block .wd-store-faq-question {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    color: #2c3338;
}

.wd-store-faq-block .wd-store-faq-question .wd-store-faq-label {
    flex-shrink: 0;
    display: inline-block;
    min-width: 1.15em;
    margin-top: 0.2em;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: #8f96a0;
    background: transparent;
    border-radius: 0;
}

.wd-store-faq-block .wd-store-faq-question .wd-store-faq-label::after,
.wd-store-faq-block .wd-store-faq-answer .wd-store-faq-label::after {
    content: ':';
    font-weight: 500;
    color: #b0b6bf;
}

.wd-store-faq-block .wd-store-faq-question-text {
    flex: 1;
    min-width: 0;
}

.wd-store-faq-block .wd-store-faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 20px;
    padding: 0 0 0 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #444;
}

.wd-store-faq-block .wd-store-faq-answer:last-of-type {
    margin-bottom: 0;
}

.wd-store-faq-block .wd-store-faq-answer .wd-store-faq-label {
    flex-shrink: 0;
    display: inline-block;
    min-width: 1.15em;
    margin-top: 0.25em;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.4;
    color: #8f96a0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.wd-store-faq-block .wd-store-faq-answer-text {
    flex: 1;
    min-width: 0;
}

.wd-store-faq-block .wd-store-faq-answer-text p {
    margin: 0 0 0.65em;
}

.wd-store-faq-block .wd-store-faq-answer-text p:last-child {
    margin-bottom: 0;
}

/* Related articles nav (bottom of single store) */
.wd-store-related-articles {
    margin: 0 0 1.5rem;
    padding-top: 0.25rem;
}

.wd-store-related-articles__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.wd-store-related-articles__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 16px 14px;
    background: #01175e;
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
}

.wd-store-related-articles__item:hover,
.wd-store-related-articles__item:focus-visible {
    background: #243358;
    color: #fff;
}

.wd-store-related-articles__label {
    display: block;
    margin: 0 0 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.88);
}

.wd-store-related-articles__title {
    display: block;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .td-container .wd-store-single-row {
        display: flex;
        flex-direction: column;
    }

    .wd-other-stores--in-sidebar {
        display: none !important;
    }

    .wd-store-single-row>.wd-store-col-sidebar,
    .wd-store-single-row>.wd-store-col-main,
    .wd-store-single-row>.wd-store-col-other-mobile {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .wd-store-single-row>.wd-store-col-sidebar {
        order: 1;
    }

    .wd-store-single-row>.wd-store-col-main {
        order: 2;
    }

    .wd-store-single-row>.wd-store-col-other-mobile {
        order: 3;
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e8e8e8;
    }

    /* Khoảng cách giữa card store và main (coupon) */
    .td-main-sidebar+.td-main-content {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid #e8e8e8;
    }

    .wd-store-sidebar .wd-store-card {
        padding: 16px 12px;
        margin-bottom: 16px;
    }

    .wd-store-card-logo {
        margin-bottom: 10px;
    }

    .wd-store-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .wd-store-card-rating {
        margin-bottom: 8px;
    }

    .wd-store-stars {
        font-size: 16px;
    }

    .wd-store-card-category {
        margin-bottom: 8px;
    }

    .wd-store-card-website {
        margin-bottom: 10px;
    }

    .wd-other-stores__title {
        padding: 10px 8px 8px;
        font-size: 1rem;
    }

    .wd-other-stores__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 0 8px 10px;
    }

    .wd-other-stores__item {
        aspect-ratio: 1;
        padding: 2px;
    }

    .wd-other-stores__item img {
        max-width: 92%;
        max-height: 92%;
    }

    .wd-store-coupons__heading {
        font-size: 1.0625rem;
        margin-bottom: 8px;
    }

    .wd-coupon-tabs {
        margin-bottom: 12px;
    }

    .wd-coupon-tab {
        padding: 8px 6px 10px;
        font-size: 0.8125rem;
    }

    .wd-coupon-filter-empty {
        padding: 12px;
        font-size: 0.875rem;
    }

    .wd-coupon-list {
        gap: 10px;
    }

    /*
     * Mobile: inner — 2 cột offer | body+button; footer meta bar full width dưới cùng.
     */
    .wd-coupon-meta-bar {
        padding: 8px 12px;
    }

    .wd-coupon-meta-bar__text {
        font-size: 0.75rem;
    }

    .wd-coupon-verified {
        padding: 4px 10px;
        font-size: 0.6875rem;
    }

    .wd-coupon-verified__icon {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .wd-coupon-row {
        display: flex;
        flex-direction: column;
    }

    .wd-coupon-row__inner {
        display: grid;
        grid-template-columns: minmax(88px, 112px) 1fr;
        grid-template-rows: auto auto;
        column-gap: 14px;
        row-gap: 10px;
        align-items: start;
        padding: 14px 12px;
    }

    .wd-coupon-offer-col {
        grid-column: 1;
        grid-row: 1 / -1;
        flex: none;
        max-width: none;
        width: auto;
        padding: 0 12px 0 0;
        margin: 0 12px 0 0;
        border-right: 1px solid #eee;
        border-left: 0;
        justify-content: center;
        text-align: center;
        align-self: stretch;
    }

    .wd-coupon-body {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .wd-coupon-action {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
        margin: 0;
        align-self: start;
    }

    .wd-coupon-row--no-offer .wd-coupon-body {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .wd-coupon-row--no-offer .wd-coupon-action {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .wd-coupon-offer-text {
        font-size: 22px;
    }

    .wd-coupon-title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .wd-coupon-date {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .wd-coupon-btn {
        width: 130px;
        height: 38px;
        font-size: 13px;
    }

    .wd-getcode-btn {
        width: 130px;
        height: 38px;
    }

    .wd-getcode-btn__label {
        font-size: 13px;
    }

    .wd-getcode-btn__code {
        font-size: 14px;
        padding-right: 10px;
    }

    .wd-store-about-sections {
        margin-top: 24px;
        padding-top: 20px;
    }

    .wd-store-about-block {
        margin-bottom: 20px;
    }

    .wd-store-section-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .wd-store-related-articles {
        margin-bottom: 1.25rem;
    }

    .wd-store-related-articles__grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wd-store-related-articles__item {
        padding: 14px 12px;
    }

    .wd-store-related-articles__title {
        font-size: 1rem;
    }

    /* Modal mobile */
    .wd-coupon-modal {
        padding: 12px;
    }

    .wd-coupon-modal__dialog {
        max-height: calc(100vh - 24px);
    }

    .wd-coupon-modal__head {
        padding: 8px 10px;
    }

    .wd-coupon-modal__back {
        font-size: 11px;
    }

    .wd-coupon-modal__back span:first-child {
        font-size: 11px;
    }

    .wd-coupon-modal__close {
        font-size: 14px;
    }

    .wd-coupon-modal__content {
        padding: 12px 10px;
        font-size: 0.8125rem;
    }

    .wd-coupon-modal__title {
        font-size: 13px;
    }

    .wd-coupon-modal__subtitle {
        font-size: 11px;
    }

    .wd-coupon-modal__code {
        min-height: 32px;
        font-size: 13px;
        padding: 6px 10px;
    }

    .wd-coupon-modal__copy {
        min-width: 60px;
        font-size: 10px;
        padding: 0 10px;
    }

    .wd-coupon-modal__redeem {
        min-height: 32px;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .wd-coupon-modal__vote p {
        font-size: 11px;
    }

    .wd-coupon-modal__vote-actions button {
        font-size: 14px;
        padding: 4px 10px;
    }

    .wd-coupon-modal__details h3,
    .wd-coupon-modal__details p {
        font-size: 11px;
    }
}