/*
 * /buy-osrs-accounts hub only (loaded by the hero widget when page=accounts
 * and there is no sub-page). Category pages and every other page that uses
 * the same widgets never load this file.
 */

/* H1: white with the closing words in yellow, like the buy gold hero */
.accounts-hub-title {
    color: #fff;
}
.accounts-hub-title-accent {
    color: #FFC43A;
}

/* Intro under the H1: same type as the buy gold hero subtitle */
.accounts-hub-intro {
    max-width: 46rem;
    margin: 0.75rem auto 0;
    font-family: "Epilogue", sans-serif;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.45;
    color: #bdbdbd;
}
@media (min-width: 640px) {
    .accounts-hub-intro { font-size: 17px; }
}

/* Review badges in the hero, where the step cards used to be */
.accounts-hub-trust {
    margin-bottom: 0.5rem;
    /* Same type as the badges in the buy gold hero (the site default here is Freeman) */
    font-family: "Epilogue", sans-serif;
    font-weight: 300;
}

.accounts-hub-trust a div {
    white-space: nowrap;
}
/* Phones: one badge per line, each as wide as its text (the Sythe badge
   has a fixed 209px width that is too narrow once the text is in Epilogue) */
@media (max-width: 1023px) {
    .accounts-hub-trust a {
        width: auto !important;
    }
}

/* The USP block below the grid keeps an empty wrapper where its badges
   were (they now render in the hero). Drop the empty space it leaves. */
div:has(> .list-items) > div.lg\:mt-12:not(:has(a, img)) {
    display: none;
}

/* Prices by type (inside the editorial copy) */
.account-prices-by-type {
    margin-top: 2rem;
}
.account-prices-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 640px) {
    .account-prices-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .account-prices-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.account-prices-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(142, 142, 142, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}
.account-prices-list a:hover,
.account-prices-list a:focus-visible {
    background: rgba(142, 142, 142, 0.18);
}
.account-prices-type {
    font-weight: 600;
}
.account-prices-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    text-align: right;
}
.account-prices-from {
    color: #20D420;
    font-weight: 600;
}
.account-prices-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

/* Reset the legacy copy styles (bullets, gold links) for the prices block,
   which sits inside the editorial wrapper. */
.legacy-body-wrapper-dont-remove-class .account-prices-list {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}
.legacy-body-wrapper-dont-remove-class .account-prices-list li {
    margin-bottom: 0;
    font-size: 15px;
}
.legacy-body-wrapper-dont-remove-class .account-prices-list a {
    color: #fff;
}
/* The legacy wrapper forces "a span" to gold with !important. */
.legacy-body-wrapper-dont-remove-class .account-prices-list a .account-prices-type {
    color: #fff !important;
}
.legacy-body-wrapper-dont-remove-class .account-prices-list a .account-prices-from {
    color: #20D420 !important;
}
.legacy-body-wrapper-dont-remove-class .account-prices-list a .account-prices-count {
    color: rgba(255, 255, 255, 0.6) !important;
}

/*
 * Reviews carousel ([*account-reviews*]): same design as the buy gold
 * reviews carousel. Rules are written as ".acc-reviews .x" so they outrank
 * the legacy copy styles around it (.legacy-body-wrapper-dont-remove-class h2/h3).
 */
.acc-reviews {
    margin-top: 26px;
    padding: 8px 0 6px;
    box-sizing: border-box;
}
.acc-reviews .y { color: #FFC43A !important; } /* legacy wrapper forces every span white with !important */
.acc-reviews .acc-reviews__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.acc-reviews .acc-reviews__title {
    margin: 0;
    font-family: Epilogue, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}
.acc-reviews .acc-reviews__title:hover { opacity: 1; }
.acc-reviews .acc-reviews__score {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
}
.acc-reviews .acc-reviews__stars {
    display: inline-flex;
    gap: 2px;
    color: #00b67a !important;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1;
}
.acc-reviews .acc-reviews__score-text {
    color: #cfcfcf;
    text-decoration: none;
}
.acc-reviews .acc-reviews__score-text:hover { color: #fff; }
.acc-reviews .acc-reviews__stage {
    position: relative;
    padding: 0 42px;
}
.acc-reviews .acc-reviews__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.acc-reviews .acc-reviews__viewport::-webkit-scrollbar { display: none; }
.acc-reviews .acc-reviews__track {
    display: flex;
    align-items: stretch;
    gap: 14px;
    width: max-content;
}
.acc-reviews .acc-reviews__card {
    flex: 0 0 280px;
    width: 280px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 16px 14px;
    background: #1a1a1a;
    border: 0;
    border-radius: 10px;
    box-sizing: border-box;
    scroll-snap-align: start;
}
.acc-reviews .acc-reviews__card-stars {
    color: #00b67a;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 1;
}
.acc-reviews .acc-reviews__card-title {
    margin: 0;
    font-family: Epilogue, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.acc-reviews .acc-reviews__card-title:hover { opacity: 1; }
.acc-reviews .acc-reviews__card-body {
    flex: 0 0 auto;
    font-family: Epilogue, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: #e8e8e8;
    /* Long reviews stop at 7 lines so one card does not stretch the whole
       row; the full text stays in the page and "Read" opens it on Trustpilot. */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    line-clamp: 7;
    overflow: hidden;
}
.acc-reviews .acc-reviews__card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto; /* keeps name/date and Read at the bottom of equal-height cards */
    padding-top: 8px;
}
.acc-reviews .acc-reviews__meta {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 12.5px;
    line-height: 1.35;
    color: #8f8f8f;
}
.acc-reviews .acc-reviews__read {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 400;
    color: #FFC43A;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}
.acc-reviews .acc-reviews__read svg {
    width: 12px;
    height: 12px;
    flex: none;
}
.acc-reviews .acc-reviews__read:hover {
    color: #ffd56a;
    text-decoration: none;
}
.acc-reviews .acc-reviews__nav {
    display: inline-flex;
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    border-radius: 999px;
    border: 0;
    background: #1a1a1a;
    color: #FFC43A;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(255, 196, 58, 0.08);
}
.acc-reviews .acc-reviews__nav svg {
    width: 14px;
    height: 14px;
    display: block;
}
.acc-reviews .acc-reviews__nav:hover {
    background: #222;
    color: #ffd56a;
}
.acc-reviews .acc-reviews__nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.acc-reviews .acc-reviews__nav--prev { left: 0; }
.acc-reviews .acc-reviews__nav--next { right: 0; }
.acc-reviews .acc-reviews__dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    min-height: 8px;
}
.acc-reviews .acc-reviews__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #3a3a3a;
    cursor: pointer;
    transition: width .2s ease, background .2s ease;
}
.acc-reviews .acc-reviews__dot.is-active {
    width: 22px;
    background: #FFC43A;
}
@media (min-width: 1100px) {
    .acc-reviews { padding: 10px 0 8px; }
    .acc-reviews .acc-reviews__header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 22px;
    }
    .acc-reviews .acc-reviews__title { font-size: 28px; }
    .acc-reviews .acc-reviews__stage { padding: 0 52px; }
}

/* [*account-reviews*] right under the account grid (outside the editorial
   copy): same side gutter as the USP cards above it. */
.acc-reviews {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
@media (min-width: 1024px) {
    .acc-reviews {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}
.legacy-body-wrapper-dont-remove-class .acc-reviews {
    padding-left: 0;
    padding-right: 0;
}
