/* Topvexa 1.5.1: account shell and compact product cards.
   Keep overrides here so previous working design components remain unchanged. */

/* WooCommerce inserts notices/extra nodes into its own wrapper. Only layout
   the explicit nav/content pair, otherwise content can fall into a 260px cell. */
body.woocommerce-account .tv-page-main,
body.woocommerce-account .tv-page-content,
body.woocommerce-account .tv-page-content > .woocommerce,
body.woocommerce-account .tvx-account-shell {
    width: 100%;
    max-width: none;
    min-width: 0;
}
body.woocommerce-account .tv-page-content > .woocommerce {
    display: block !important;
}
body.woocommerce-account .tvx-account-shell {
    display: grid;
    grid-template-columns: 218px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-inline: auto;
}
body.woocommerce-account .tvx-account-shell > .woocommerce-MyAccount-navigation {
    grid-column: 1;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    float: none !important;
}
body.woocommerce-account .tvx-account-shell > .woocommerce-MyAccount-content {
    grid-column: 2;
    display: block;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}
body.woocommerce-account .tvx-account-page,
body.woocommerce-account .tvx-account-layout,
body.woocommerce-account .tvx-account-main,
body.woocommerce-account .tvx-account-side,
body.woocommerce-account .tvx-account-card {
    min-width: 0;
    max-width: 100%;
}
body.woocommerce-account .tvx-account-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 310px);
    gap: 16px;
}
body.woocommerce-account .tvx-account-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
body.woocommerce-account .tvx-stat {
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
}
body.woocommerce-account .tvx-stat strong {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
}
body.woocommerce-account .tvx-account-card {
    padding: 19px;
    border-radius: 20px;
}
body.woocommerce-account .tvx-order-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
body.woocommerce-account .tvx-order-table {
    width: 100%;
    min-width: 590px;
}
body.woocommerce-account .tvx-saved-profiles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.woocommerce-account .tvx-account-nav ul {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    background: var(--tvx-surface);
    padding: 12px;
    border: 1px solid var(--tvx-line);
    border-radius: 18px;
}
body.woocommerce-account .tvx-account-nav li {
    min-width: 0;
    margin: 0;
}
body.woocommerce-account .tvx-account-nav a {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    padding: 11px 12px;
    border-radius: 12px;
    white-space: normal;
}
body.woocommerce-account .tvx-account-hero-new {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(170px, .7fr);
    align-items: center;
    overflow: hidden;
    min-height: 184px;
    border: 1px solid var(--tvx-line);
    border-radius: 22px;
    background: linear-gradient(105deg, #f8fbff 0%, #e9f4ff 62%, #d7eaff 100%);
    box-shadow: var(--tvx-shadow);
}
body.woocommerce-account .tvx-account-hero-copy {
    padding: 23px 30px;
    position: relative;
    z-index: 1;
}
body.woocommerce-account .tvx-account-hero-copy span {
    color: #1d67c9;
    font-size: 11px;
    letter-spacing: .14em;
    font-weight: 800;
}
body.woocommerce-account .tvx-account-hero-copy h1 {
    color: #132b54;
    font-size: clamp(28px, 3vw, 39px);
    margin: 9px 0 8px;
    line-height: 1.2;
}
body.woocommerce-account .tvx-account-hero-copy p {
    color: #50647e;
    line-height: 1.65;
    margin: 0;
    max-width: 45ch;
}
body.woocommerce-account .tvx-account-hero-illustration {
    height: 100%;
    min-height: 184px;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg,transparent,black 24%);
}
body.woocommerce-account .tvx-account-hero-illustration img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: 35% 45%;
}
html[data-theme="dark"] body.woocommerce-account .tvx-account-hero-new {
    background: linear-gradient(110deg, #182b49, #12213d 67%, #233c62);
}
html[data-theme="dark"] body.woocommerce-account .tvx-account-hero-copy h1 {color:#f3f8ff}
html[data-theme="dark"] body.woocommerce-account .tvx-account-hero-copy p {color:#c6d6ef}

/* Compact Frost Stars tiles: avoid inherited min-heights, oversized nested
   image frames, giant rounded corners and disabled quantity controls. */
body .tvx-wow-frost .tvx-frost-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
}
body .tvx-wow-frost .tvx-frost-cards > .tv-frost-card {
    min-width: 0;
    padding: 9px !important;
    border-radius: 14px !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--tvx-surface) !important;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-choose {
    min-height: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
    color: var(--tvx-text);
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-image {
    width: 100% !important;
    height: 86px !important;
    margin: 0 0 4px !important;
    border: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    display: grid;
    place-items: center;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-image img {
    height: 82px !important;
    width: 100% !important;
    max-width: 150px !important;
    object-fit: contain !important;
    display: block;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-choose strong {
    min-height: 0 !important;
    font-size: 18px !important;
    text-align: center !important;
    line-height: 1.3;
    display: block;
    color: var(--tvx-text) !important;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-choose small {
    margin: 0;
    line-height: 1.35;
    font-size: 11px;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-bottom {
    min-height: 40px !important;
    margin-top: 7px;
    gap: 6px;
    padding: 8px 3px 0 !important;
    background: transparent !important;
    border-top: 1px solid var(--tvx-line);
    align-items: center;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-unit-price {
    font-size: 12px !important;
    white-space: normal;
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
    line-height: 1.45;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-mini-qty {
    flex: 0 0 auto;
    gap: 3px;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-mini-qty button {
    width: 24px;
    height: 27px;
    padding: 0;
    border-radius: 7px;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-qty-value {
    min-width: 16px;
    font-size: 11px;
}
body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-unavailable .tv-frost-unit-price {
    text-align: center;
    color: var(--tvx-muted);
    font-size: 11px !important;
}

@media (max-width: 1350px) {
    body.woocommerce-account .tvx-account-layout {grid-template-columns:1fr}
    body.woocommerce-account .tvx-saved-profiles-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 1150px) {
    body.woocommerce-account .tvx-account-shell {grid-template-columns:190px minmax(0,1fr);gap:15px}
    body.woocommerce-account .tvx-account-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
    body .tvx-wow-frost .tvx-frost-cards {grid-template-columns: repeat(3,minmax(0,1fr))}
}
@media (max-width: 800px) {
    body.woocommerce-account .tvx-account-shell {display:block}
    body.woocommerce-account .tvx-account-shell > .woocommerce-MyAccount-navigation {margin-bottom:20px}
    body.woocommerce-account .tvx-account-nav ul {display:flex;flex-wrap:wrap;gap:6px}
    body.woocommerce-account .tvx-account-nav li {flex:1 0 auto}
    body.woocommerce-account .tvx-account-stats {grid-template-columns:repeat(2,minmax(0,1fr))}
    body .tvx-wow-frost .tvx-frost-cards {grid-template-columns: repeat(2,minmax(0,1fr))}
}
@media (max-width: 530px) {
    body.woocommerce-account .tvx-account-hero-new {grid-template-columns:1fr;min-height:0}
    body.woocommerce-account .tvx-account-hero-copy {padding:22px}
    body.woocommerce-account .tvx-account-hero-illustration {display:none}
    body.woocommerce-account .tvx-saved-profiles-grid {grid-template-columns:1fr}
    body .tvx-wow-frost .tvx-frost-cards {grid-template-columns: repeat(2,minmax(0,1fr));gap:8px}
    body .tvx-wow-frost .tvx-frost-cards > .tv-frost-card {padding:7px !important}
    body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-image {height:68px !important}
    body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-image img {height:66px !important}
    body .tvx-wow-frost .tvx-frost-cards .tv-frost-card-choose strong {font-size:16px !important}
}
