/* Dev Duniya deals page — layout closely follows the supplied deals reference HTML. */
body:has(.dd-deals-sticky) main {
    overflow: visible !important;
}

.dd-deals-page {
    --dd-ink: #0f172a;
    --dd-muted: #64748b;
    --dd-line: #e2e8f0;
    --dd-soft: #f8fafc;
    --dd-brand: #e11d48;
    --dd-brand-dark: #be123c;
    color: var(--dd-ink);
    background: var(--dd-soft);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.dd-deals-page *,
.dd-deals-page *::before,
.dd-deals-page *::after {
    box-sizing: border-box;
}

.dd-deals-shell {
    width: min(100% - 48px, 1280px);
    margin-inline: auto;
}

.dd-deals-header {
    background: #fff;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
}

.dd-deals-header-inner {
    min-height: 190px;
    padding-block: 30px 34px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.dd-deals-header-copy {
    max-width: 760px;
}

.dd-deals-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
    color: #e11d48;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.dd-deals-eyebrow-icon {
    width: 15px;
    height: 15px;
    display: inline-flex;
}

.dd-deals-eyebrow-icon svg {
    width: 100%;
    height: 100%;
}

.dd-deals-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.045em;
}

.dd-deals-description {
    max-width: 700px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.dd-deals-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.dd-deals-stat {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.dd-deals-stat svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.dd-deals-stat-check { color: #059669; }
.dd-deals-stat-retailers { color: #64748b; }

.dd-deals-stat-dark {
    color: #fff;
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 2px 4px rgba(15, 23, 42, .12);
}

.dd-deals-sticky {
    position: sticky;
    top: 80px;
    z-index: 40;
    border-bottom: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 5px 18px rgba(15, 23, 42, .055);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.dd-deals-filter-shell {
    padding-block: 13px;
}

.dd-deals-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.dd-deals-filter-row-top {
    min-height: 39px;
}

.dd-deals-filter-row-bottom {
    min-height: 46px;
    margin-top: 10px;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
}

.dd-deals-filter-group,
.dd-deals-filter-controls,
.dd-deals-result-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.dd-deals-filter-label {
    flex: 0 0 auto;
    margin-right: 1px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dd-deals-segmented {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f1f5f9;
}

.dd-deals-filter-pill {
    min-height: 30px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}

.dd-deals-filter-pill:hover {
    color: #0f172a;
}

.dd-deals-filter-pill.is-active {
    color: #0f172a;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.dd-deals-filter-pill:focus-visible,
.dd-deals-select:focus-visible,
.dd-deals-more-filters:focus-visible,
.dd-deals-view-button:focus-visible {
    outline: 3px solid rgba(225, 29, 72, .2);
    outline-offset: 2px;
}

.dd-deals-filter-controls {
    flex-wrap: wrap;
    gap: 15px;
}

.dd-deals-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.dd-deals-select {
    max-width: 220px;
    min-height: 34px;
    padding: 6px 30px 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background-color: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
}

.dd-deals-select:hover {
    border-color: #cbd5e1;
}

.dd-deals-select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .09);
}

.dd-deals-more-filters {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.dd-deals-more-filters:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #be123c;
}

.dd-deals-more-filters svg {
    width: 14px;
    height: 14px;
}

.dd-deals-filter-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e11d48;
}

.dd-deals-result-actions {
    justify-content: flex-end;
    gap: 13px;
    white-space: nowrap;
}

.dd-deals-result-count {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.dd-deals-reset {
    color: #e11d48;
    font-size: 11px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dd-deals-reset:hover {
    color: #be123c;
}

.dd-deals-advanced-filters {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 1fr)) auto;
    align-items: end;
    gap: 10px;
    margin-top: 12px;
    padding: 14px 0 2px;
    border-top: 1px solid #f1f5f9;
}

.dd-deals-advanced-filters[hidden] {
    display: none;
}

.dd-deals-advanced-field {
    min-width: 0;
    display: grid;
    gap: 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dd-deals-advanced-field input,
.dd-deals-advanced-field select {
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    outline: none;
}

.dd-deals-advanced-field input:focus,
.dd-deals-advanced-field select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .09);
}

.dd-deals-apply-filters {
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease;
}

.dd-deals-apply-filters:hover {
    background: #e11d48;
}

.dd-deals-main {
    min-height: 58vh;
    padding: 28px 0 42px;
    background: #f8fafc;
}

.dd-deals-no-trade-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    padding: 12px 15px;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    background: #eff6ff;
    color: #1e40af;
    font-size: 12px;
    line-height: 1.5;
}

.dd-deals-no-trade-note svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: #2563eb;
}

.dd-deals-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 19px;
}

.dd-deals-section-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.025em;
}

.dd-deals-section-heading p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.dd-deals-page-count {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.dd-deals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.dd-deal-card {
    min-width: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, .95);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .025);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dd-deal-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .075);
}

.dd-deal-card-top {
    min-height: 27px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dd-deal-retailer-wrap {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.dd-deal-retailer-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e51010;
}

.dd-deal-retailer-icon {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    padding: 2px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.dd-deal-retailer-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dd-deal-retailer-name {
    max-width: 100%;
    overflow: hidden;
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dd-deal-customer-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 7px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.dd-deal-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.dd-deal-status span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #22c55e;
}

.dd-deal-savings {
    min-height: 108px;
    padding-top: 18px;
    padding-bottom: 15px;
}

.dd-deal-product-name {
    overflow: hidden;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dd-deal-savings-headline {
    color: #0f172a;
    font-size: clamp(19px, 1.65vw, 23px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.035em;
    overflow-wrap: anywhere;
}

.dd-deal-savings-sub {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 7px;
    padding: 3px 8px;
    border-radius: 7px;
    background: #fff1f2;
    color: #cc113a;
    font-size: 10px;
    line-height: 1.4;
    font-weight: 700;
}

.dd-deal-savings-spacer {
    display: block;
    height: 22px;
    margin-top: 7px;
}

.dd-deal-price-box {
    margin-bottom: 15px;
    padding: 12px 13px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.dd-deal-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.dd-deal-price-label {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dd-deal-price {
    margin-top: 3px;
    color: #0f172a;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}

.dd-deal-price-unavailable {
    color: #64748b;
    font-size: 16px;
}

.dd-deal-msrp-compare {
    flex: 0 0 auto;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

.dd-deal-price-caption {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 9px;
    line-height: 1.45;
}

.dd-deal-key-details {
    min-height: 61px;
    display: grid;
    align-content: start;
    gap: 8px;
    margin-bottom: 8px;
}

.dd-deal-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}

.dd-deal-detail-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dd-deal-detail-row svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    padding: 2px;
}

.dd-deal-detail-row .dd-deal-requires-icon {
    color: #139b74;
}

.dd-deal-detail-row .dd-deal-trade-in-icon {
    color: #1d4ed8;
}

.dd-deal-detail-row .dd-deal-gift-icon {
    color: #cd5d18;
}

.dd-deal-detail-row strong {
    color: #0f172a;
    font-weight: 700;
}

.dd-deal-accordion {
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #f1f5f9;
}

.dd-deal-accordion details > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 0;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition: color .16s ease;
}

.dd-deal-accordion details > summary::-webkit-details-marker {
    display: none;
}

.dd-deal-accordion details > summary:hover {
    color: #e11d48;
}

.dd-deal-accordion details > summary svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: #94a3b8;
    transition: transform .2s ease;
}

.dd-deal-accordion details[open] > summary svg {
    transform: rotate(180deg);
}

.dd-deal-accordion-content {
    display: grid;
    gap: 13px;
    padding: 12px 0 4px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}

.dd-deal-detail-section h4 {
    margin: 0 0 6px;
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dd-deal-offer-list {
    display: grid;
    gap: 5px;
}

.dd-deal-offer-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 8px;
    border-radius: 7px;
    background: #f8fafc;
}

.dd-deal-offer-item strong {
    flex: 0 0 auto;
    color: #0f172a;
    font-weight: 800;
}

.dd-deal-detail-section ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 15px;
}

.dd-deal-detail-section li::marker {
    color: #e11d48;
}

.dd-deal-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid #f1f5f9;
}

.dd-deal-base-msrp {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.dd-deal-base-msrp span {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dd-deal-base-msrp strong {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.dd-deal-view-button {
    min-width: 118px;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 13px;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .12);
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.dd-deal-view-button:hover {
    transform: translateY(-1px);
    background: #e11d48;
    box-shadow: 0 5px 12px rgba(225, 29, 72, .18);
}

.dd-deal-view-button span {
    font-size: 14px;
}

.dd-deal-view-button-disabled {
    cursor: not-allowed;
    background: #cbd5e1;
    box-shadow: none;
}

.dd-deals-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.dd-deals-pagination-summary {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.dd-deals-pagination-summary strong {
    color: #334155;
    font-weight: 800;
}

.dd-deals-pagination-summary span {
    margin-inline: 5px;
    color: #cbd5e1;
}

.dd-deals-pagination-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dd-deals-pagination-links a,
.dd-deals-page-disabled,
.dd-deals-page-number,
.dd-deals-page-current {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.dd-deals-pagination-links a:hover {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #e11d48;
}

.dd-deals-page-current {
    border-color: #0f172a;
    background: #0f172a;
    color: #fff;
}

.dd-deals-page-disabled {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: default;
}

.dd-deals-page-ellipsis {
    padding-inline: 2px;
    color: #94a3b8;
}

.dd-deals-empty-state {
    max-width: 540px;
    margin: 36px auto;
    padding: 42px 28px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
}

.dd-deals-empty-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 15px;
    background: #f1f5f9;
    color: #64748b;
}

.dd-deals-empty-icon svg {
    width: 24px;
    height: 24px;
}

.dd-deals-empty-state h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
}

.dd-deals-empty-state p {
    margin: 8px auto 0;
    max-width: 390px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.dd-deals-empty-state a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 10px 17px;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease;
}

.dd-deals-empty-state a:hover {
    background: #e11d48;
}

.dd-deals-seo {
    padding-block: 42px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.dd-deals-seo-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 44px;
}

.dd-deals-seo-eyebrow {
    margin: 0 0 8px;
    color: #e11d48;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.dd-deals-seo h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.035em;
}

.dd-deals-seo-layout > div:first-child > p:last-child,
.dd-deals-seo-grid p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.7;
}

.dd-deals-seo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dd-deals-seo-grid > div {
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
    background: #f8fafc;
}

.dd-deals-seo-grid h3 {
    margin: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.dd-deals-seo-grid p {
    margin-top: 6px;
    font-size: 11px;
}

/* Preview modal from the supplied reference HTML. */
body.dd-modal-open {
    overflow: hidden;
}

.dd-deal-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.dd-deal-modal.is-visible {
    display: flex;
}

.dd-deal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .56);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.dd-deal-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    padding: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
    animation: dd-modal-in .18s ease-out;
}

@keyframes dd-modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dd-deal-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.dd-deal-modal-badge {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 9px;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    background: #fff1f2;
    color: #be123c;
    font-size: 10px;
    font-weight: 800;
}

.dd-deal-modal-head h3 {
    margin: 0;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.3;
    font-weight: 800;
}

.dd-deal-modal-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.dd-deal-modal-close:hover {
    background: #f1f5f9;
    color: #334155;
}

.dd-deal-modal-close svg {
    width: 18px;
    height: 18px;
}

.dd-deal-modal-body {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.dd-deal-modal-body p {
    margin: 0;
}

.dd-deal-modal-body p strong {
    color: #334155;
    font-weight: 800;
}

.dd-deal-modal-summary {
    display: grid;
    gap: 5px;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.dd-deal-modal-summary strong {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
}

.dd-deal-modal-summary span {
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
}

.dd-deal-modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
}

.dd-deal-modal-cancel,
.dd-deal-modal-continue {
    min-height: 39px;
    padding: 9px 14px;
    border: 0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.dd-deal-modal-cancel {
    background: transparent;
    color: #64748b;
}

.dd-deal-modal-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.dd-deal-modal-continue {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0f172a;
    color: #fff;
}

.dd-deal-modal-continue:hover:not(:disabled) {
    background: #e11d48;
}

.dd-deal-modal-continue:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.dd-deals-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 110;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 32px);
    padding: 12px 16px;
    border-radius: 11px;
    background: #0f172a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

.dd-deals-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.dd-deals-toast svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    color: #34d399;
}

@media (max-width: 1100px) {
    .dd-deals-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dd-deals-filter-row {
        align-items: flex-start;
    }

    .dd-deals-filter-row-top {
        flex-wrap: wrap;
    }

    .dd-deals-trade-group {
        margin-left: auto;
    }

    .dd-deals-advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dd-deals-shell {
        width: min(100% - 32px, 1280px);
    }

    .dd-deals-header-inner {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
        padding-block: 25px;
    }

    .dd-deals-title {
        font-size: 29px;
    }

    .dd-deals-description {
        margin-top: 8px;
        font-size: 13px;
    }

    .dd-deals-stats {
        justify-content: flex-start;
    }

    .dd-deals-stat {
        min-height: 32px;
        padding: 7px 9px;
        font-size: 10px;
    }

    .dd-deals-sticky {
        top: 80px;
    }

    .dd-deals-filter-shell {
        padding-block: 10px;
    }

    .dd-deals-filter-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .dd-deals-filter-row-top {
        gap: 8px;
    }

    .dd-deals-filter-group {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .dd-deals-filter-label {
        font-size: 9px;
    }

    .dd-deals-segmented {
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
    }

    .dd-deals-filter-pill {
        flex: 0 0 auto;
        padding-inline: 10px;
        font-size: 10px;
    }

    .dd-deals-trade-group {
        margin-left: 0;
    }

    .dd-deals-filter-row-bottom {
        gap: 8px;
        margin-top: 8px;
        padding-top: 9px;
    }

    .dd-deals-filter-controls {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .dd-deals-select-wrap {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        font-size: 9px;
    }

    .dd-deals-select {
        width: 100%;
        max-width: none;
        min-height: 35px;
        font-size: 11px;
    }

    .dd-deals-more-filters {
        min-height: 35px;
        margin-top: 14px;
    }

    .dd-deals-result-actions {
        width: 100%;
        justify-content: space-between;
    }

    .dd-deals-result-count {
        font-size: 10px;
    }

    .dd-deals-advanced-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .dd-deals-advanced-field:first-child {
        grid-column: 1 / -1;
    }

    .dd-deals-apply-filters {
        grid-column: 1 / -1;
    }

    .dd-deals-main {
        padding-block: 22px 32px;
    }

    .dd-deals-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        margin-bottom: 14px;
    }

    .dd-deals-section-heading h2 {
        font-size: 18px;
    }

    .dd-deals-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .dd-deal-card {
        padding: 17px;
    }

    .dd-deal-savings {
        min-height: auto;
        padding-top: 15px;
    }

    .dd-deal-savings-headline {
        font-size: 22px;
    }

    .dd-deal-key-details {
        min-height: auto;
    }

    .dd-deals-pagination {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dd-deals-pagination-links {
        flex-wrap: wrap;
    }

    .dd-deals-seo {
        padding-block: 32px;
    }

    .dd-deals-seo-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .dd-deals-seo h2 {
        font-size: 22px;
    }

    .dd-deals-seo-grid {
        gap: 8px;
    }

    .dd-deals-seo-grid > div {
        padding: 12px;
    }

    .dd-deal-modal-dialog {
        padding: 20px;
    }
}

@media (max-width: 390px) {
    .dd-deals-filter-pill {
        padding-inline: 8px;
        font-size: 9px;
    }

    .dd-deal-card-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .dd-deals-seo-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .dd-deal-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .dd-deal-view-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dd-deals-page *,
    .dd-deals-page *::before,
    .dd-deals-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}


/* Shared layouts for the Best Phone Deals hub and model landing pages. */
.dd-deals-breadcrumb {
    gap: 8px;
    letter-spacing: .08em;
}

.dd-deals-breadcrumb a {
    color: #e11d48;
    text-decoration: none;
    transition: color .16s ease;
}

.dd-deals-breadcrumb a:hover {
    color: #be123c;
}

.dd-deals-breadcrumb > span:last-child {
    color: #94a3b8;
}

.dd-deals-anchor-nav {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
}

.dd-deals-anchor-nav::-webkit-scrollbar {
    display: none;
}

.dd-deals-anchor-nav a {
    text-decoration: none;
}

.dd-deals-static-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.dd-deals-content-section + .dd-deals-content-section {
    margin-top: 42px;
    padding-top: 31px;
    border-top: 1px solid #e2e8f0;
}

.dd-deals-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.dd-deals-category-section {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    scroll-margin-top: 185px;
}

.dd-deals-category-heading {
    margin: 0;
    padding-inline-start: 10px;
    border-inline-start: 3px solid #e11d48;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -.02em;
}

.dd-deals-category-section .dd-deal-card {
    min-height: 0;
}

.dd-deals-category-empty {
    min-height: 150px;
    display: flex;
    align-items: center;
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 15px;
    background: #fff;
    color: #64748b;
    font-size: 11px;
    line-height: 1.65;
}

.dd-deals-bottom-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding: 23px 25px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}
@media (max-width: 767px) {
    .dd-deals-bottom-cta {
        margin-top: 30px;
    }
}

.dd-deals-bottom-cta h2 {
    margin: 0;
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.dd-deals-bottom-cta p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 11px;
    line-height: 1.55;
}

.dd-deals-bottom-cta > a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 9px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.dd-deals-bottom-cta > a:hover {
    transform: translateY(-1px);
    background: #e11d48;
}

@media (max-width: 1100px) {
    .dd-deals-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .dd-deals-anchor-nav {
        width: 100%;
    }

    .dd-deals-anchor-nav .dd-deals-filter-pill {
        font-size: 10px;
    }

    .dd-deals-category-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 19px;
    }

    .dd-deals-bottom-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 19px;
    }

    .dd-deals-bottom-cta > a {
        width: 100%;
    }
}
