/* Fresh theme by Gravity Host. Copyright (c) 2026 GK Tools Ltd. All rights reserved. Licensed for one live shop per licence, see LICENSE.txt; sharing or reselling is not allowed. Download ID: marketplace */
/* Fresh: My Account, the order pages and the thank-you page (gk_theme_account.php). Loaded on
   those pages only. Colours are the scheme's variables, so dark mode follows by itself; the
   few rules dark mode needs besides are at the end. */

/* Account menu: icons, the page you are on, Log out apart */
#column-right.gk-acc-col, #column-left.gk-acc-col { display: block; }
.gk-acc { display: flex; flex-direction: column; padding: 6px 0; background: var(--gk-surface); border: 1px solid var(--gk-line); }
.list-group.gk-acc a.list-group-item { display: flex; align-items: center; gap: 12px; margin: 0; padding: 11px 16px; border: 0; border-radius: 0; background: transparent; color: var(--gk-ink); font-weight: 500; }
.gk-acc a.list-group-item .fa { width: 18px; flex: none; text-align: center; color: var(--gk-deep); }
.list-group.gk-acc a.list-group-item:hover, .list-group.gk-acc a.list-group-item:focus-visible { background: var(--gk-tint); color: var(--gk-ink); }
.list-group.gk-acc a.list-group-item[aria-current="page"] { background: var(--gk-tint); color: var(--gk-ink); font-weight: 700; box-shadow: inset 4px 0 0 var(--gk-brand); }
.list-group.gk-acc a.gk-acc-out { margin-top: 6px; border-top: 1px solid var(--gk-line); color: var(--gk-ink-soft); }
.list-group.gk-acc a.list-group-item:focus-visible { outline: 3px solid var(--gk-deep); outline-offset: -3px; }

/* Phones: a row of buttons above the page that scrolls sideways */
@media (max-width: 767px) {
  .row:has(> .gk-acc-col) { display: flex; flex-direction: column; }
  .row > .gk-acc-col { order: -1; width: 100%; margin-bottom: 16px; }
  .gk-acc-col .gk-acc { flex-direction: row; overflow-x: auto; gap: 8px; padding: 2px 2px 8px; border: 0; background: none; box-shadow: none; border-radius: 0; scrollbar-width: none; }
  .gk-acc::-webkit-scrollbar { display: none; }
  .list-group.gk-acc a.list-group-item { flex: none; padding: 9px 14px; border: 1px solid var(--gk-line-strong); border-radius: 999px; background: var(--gk-surface); white-space: nowrap; min-height: 44px; }
  .list-group.gk-acc a.list-group-item[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--gk-brand); border-color: var(--gk-brand); }
  .list-group.gk-acc a.gk-acc-out { margin-top: 0; border-top: 1px solid var(--gk-line-strong); }
  .list-group.gk-acc a.list-group-item:focus-visible { outline-offset: 1px; }
}

/* Account home and order history */
.gk-acct { display: flex; flex-direction: column; gap: 16px; }
.gk-acct > * { margin: 0; }
.gk-acct > .buttons { margin-top: 4px; }
.gk-acct-h, .gk-order-h { font-family: var(--gk-display); font-weight: 700; font-size: 30px; line-height: 1.2; color: var(--gk-ink); margin: 8px 0 0; }
.gk-acct-latest { display: flex; flex-direction: column; gap: 3px; background: var(--gk-tint); border: 1px solid var(--gk-tint-line); border-radius: var(--gk-r-card); padding: 18px; color: var(--gk-ink); text-decoration: none; }
.gk-acct-latest:hover, .gk-acct-latest:focus-visible { border-color: var(--gk-deep); text-decoration: none; color: var(--gk-ink); }
.gk-acct-latest-k { font-size: 14px; font-weight: 700; color: var(--gk-ink-soft); }
.gk-acct-latest-n { font-family: var(--gk-display); font-size: 22px; font-weight: 700; }
.gk-acct-latest-s { color: var(--gk-ink-soft); }
.gk-acct-latest-s strong { color: var(--gk-ink); }
.gk-acct-latest-go { margin-top: 6px; color: var(--gk-deep); font-weight: 700; }
.gk-acct-latest-go::after { content: " \2192"; }
.gk-acct-subs-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.gk-acct-subs-h h2 { font-size: 20px; margin: 0; }
.gk-acct-subs-h a { color: var(--gk-deep); font-weight: 600; }
.gk-acct-sub { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 8px; background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: var(--gk-r-card); color: var(--gk-ink); text-decoration: none; }
.gk-acct-sub:hover, .gk-acct-sub:focus-visible { border-color: var(--gk-deep); color: var(--gk-ink); text-decoration: none; }
.gk-acct-sub .fa { font-size: 22px; color: var(--gk-deep); flex: none; }
.gk-acct-sub span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gk-acct-sub small { font-size: 14px; color: var(--gk-mute); }
.gk-acct-sub b { color: var(--gk-deep); font-size: 15px; }
.gk-acct-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gk-tile { display: flex; flex-direction: column; gap: 2px; min-height: 104px; background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: var(--gk-r-card); padding: 14px 14px 12px; color: var(--gk-ink); text-decoration: none; }
.gk-tile:hover, .gk-tile:focus-visible { border-color: var(--gk-deep); box-shadow: var(--gk-shadow); text-decoration: none; color: var(--gk-ink); }
.gk-tile .fa { font-size: 26px; color: var(--gk-deep); margin-bottom: 8px; }
.gk-tile span { font-weight: 700; font-size: 16px; line-height: 1.3; }
.gk-tile small { color: var(--gk-mute); font-size: 14px; line-height: 1.35; }
.gk-acct-more { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: var(--gk-r-card); padding: 0 18px; }
.gk-acct-more summary { cursor: pointer; font-weight: 700; color: var(--gk-ink); padding: 12px 0; min-height: 44px; }
.gk-acct-more summary:focus-visible { outline: 3px solid var(--gk-deep); outline-offset: 2px; border-radius: 4px; }
.gk-acct-more ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; }
.gk-acct-more a { display: block; padding: 10px 0; color: var(--gk-deep); border-top: 1px solid var(--gk-line); }
.gk-olist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gk-olist a { display: flex; flex-direction: column; gap: 4px; background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: var(--gk-r-card); padding: 16px 18px; color: var(--gk-ink); text-decoration: none; }
.gk-olist a:hover, .gk-olist a:focus-visible { border-color: var(--gk-deep); box-shadow: var(--gk-shadow); text-decoration: none; color: var(--gk-ink); }
.gk-ol-top { display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: 17px; }
.gk-ol-total { font-variant-numeric: tabular-nums; }
.gk-ol-sub { color: var(--gk-mute); font-size: 15px; }
.gk-ol-sub strong { color: var(--gk-ink); }
.gk-ol-pages { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: var(--gk-mute); font-size: 15px; }
.gk-ol-pages .pagination { margin: 0; }

/* Order page: cards instead of wide tables, messages kept with the order */
.gk-order { display: flex; flex-direction: column; gap: 16px; }
.gk-order > * { margin: 0; }
.gk-order-meta { color: var(--gk-mute); font-size: 16px; margin-top: -8px !important; }
.gk-order-meta strong { color: var(--gk-ink); }
.gk-order-card { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: var(--gk-r-card); padding: 18px 18px 16px; }
.gk-order-card h2 { font-family: var(--gk-text); font-size: 15px; font-weight: 700; color: var(--gk-ink-soft); margin: 0 0 10px; }
.gk-order-card p { margin: 0; color: var(--gk-ink); line-height: 1.6; overflow-wrap: anywhere; }
.gk-order-card p.gk-order-note { color: var(--gk-mute); font-size: 15px; margin-top: 6px; }
.gk-order-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gk-order-items { list-style: none; margin: 0; padding: 0; }
.gk-order-items li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--gk-line); }
.gk-order-items li:first-child { border-top: 0; padding-top: 0; }
.gk-oi-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gk-oi-name { color: var(--gk-ink); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.gk-oi-opt, .gk-oi-qty { color: var(--gk-mute); font-size: 15px; }
.gk-oi-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; text-align: right; }
.gk-oi-total { color: var(--gk-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.gk-oi-acts { display: flex; gap: 14px; }
.gk-oi-link { display: inline-block; color: var(--gk-deep); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; min-height: 44px; }
.gk-oi-quiet { color: var(--gk-ink-soft); font-weight: 500; }
.gk-order-totals { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--gk-line-strong); }
.gk-order-totals div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--gk-ink-soft); }
.gk-order-totals dt { font-weight: 400; }
.gk-order-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.gk-order-totals .gk-ot-last { color: var(--gk-ink); font-weight: 700; font-size: 18px; padding-top: 6px; }
.gk-order-totals .gk-ot-last dt { font-weight: 700; }
.gk-order-hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gk-order-hist li { border-left: 3px solid var(--gk-line-strong); padding: 2px 0 2px 12px; }
.gk-order-hist li.gk-oh-mine { border-left-color: var(--gk-brand); background: var(--gk-tint); border-radius: 0 10px 10px 0; padding: 8px 12px; }
.gk-oh-head { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; color: var(--gk-ink); }
.gk-oh-head time { color: var(--gk-mute); font-weight: 400; font-size: 15px; white-space: nowrap; }
.gk-oh-body { color: var(--gk-ink-soft); margin-top: 4px; line-height: 1.55; overflow-wrap: anywhere; }
.gk-msg-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--gk-line); }
.gk-msg-form label { display: block; font-weight: 700; color: var(--gk-ink); margin: 0 0 8px; }
.gk-msg-form textarea { min-height: 110px; }
.gk-msg-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.gk-msg-row span { color: var(--gk-mute); font-size: 15px; }
.gk-msg-err, .gk-keep-err { color: var(--gk-red-text); font-weight: 600; margin: 0 0 8px; }

/* Thank-you page for guests: the order number and "Keep track of this order" */
.gk-thanks { max-width: 640px; margin: 0 0 28px; }
.gk-thanks-sub { font-size: 17px; color: var(--gk-ink-soft); margin: 0 0 22px; }
.gk-keep { background: var(--gk-surface); border: 1px solid var(--gk-line); border-radius: var(--gk-r-card); box-shadow: var(--gk-shadow); padding: 22px 22px 18px; }
.gk-keep h2 { font-family: var(--gk-display); font-weight: 700; font-size: 21px; color: var(--gk-ink); margin: 0 0 6px; }
.gk-keep p { color: var(--gk-ink-soft); }
.gk-keep label { display: block; font-weight: 600; color: var(--gk-ink); margin: 12px 0 6px; }
.gk-keep-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gk-keep-row .form-control { flex: 1 1 220px; width: auto; }
.gk-keep-row .btn { flex: 0 0 auto; min-height: 44px; }
.gk-keep-small { font-size: 14px; margin: 10px 0 0; }
.gk-keep .gk-keep-err { margin: 10px 0 0; }
.gk-keep-user.form-control[readonly] { background: var(--gk-page); color: var(--gk-ink-soft); }
.gk-hide-user { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (min-width: 768px) {
  .gk-acct-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gk-order-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .gk-order-card { padding: 22px 24px 20px; }
}

/* Dark mode: raised cards a step lighter than the page */
:where(:root[data-theme="dark"]) .gk-tile:hover, :where(:root[data-theme="dark"]) .gk-olist a:hover, :where(:root[data-theme="dark"]) .gk-acct-sub:hover { background: var(--gk-raised); }
:where(:root[data-theme="dark"]) .gk-keep, :where(:root[data-theme="dark"]) .gk-order-card, :where(:root[data-theme="dark"]) .gk-tile, :where(:root[data-theme="dark"]) .gk-acct-more, :where(:root[data-theme="dark"]) .gk-olist a, :where(:root[data-theme="dark"]) .gk-acct-sub, :where(:root[data-theme="dark"]) .gk-acc { border-color: var(--gk-line-strong); }
:where(:root[data-theme="dark"]) .gk-keep-user.form-control[readonly] { background: var(--gk-field); }
