/* Shopify-like My Account (split cards) */
body.woocommerce-account .entry-title { display: none; }

.gb-account-page { padding: 56px 0 80px; }
.gb-account-wrap { max-width: 1200px; margin: 0 auto; padding: 0px; }

.gb-account-head { margin-bottom: 18px; }
.gb-account-title { font-size: 28px; line-height: 1.2; margin: 0 0 6px; }
.gb-account-subtitle { margin: 0; color: rgba(17,17,17,.65); }

.gb-account-grid { display: grid; gap: 22px; }
.gb-account-grid--2 { grid-template-columns: 1fr; }
.gb-account-grid--1 { grid-template-columns: 1fr; }

@media (min-width: 980px) {
  .gb-account-grid--2 { grid-template-columns: 1fr 1fr; }
}

.gb-account-card {
  background: #fff;
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(17,17,17,.06);
  padding: 22px;
  min-width: 0;
}

.gb-account-h2 { font-size: 18px; margin: 0 0 12px; }
.gb-account-muted { margin: 0 0 14px; color: rgba(17,17,17,.65); }
.gb-account-note { margin: 10px 0 0; color: rgba(17,17,17,.65); font-size: 14px; }

.gb-form { margin: 0; }
.gb-field { margin-bottom: 14px; }
.gb-field label { display: block; font-weight: 600; margin: 0 0 6px; }

.gb-input {
  width: 100%;
  border: 1px solid rgba(17,17,17,.16);
  border-radius: 10px;
  padding: 12px 12px;
  min-height: 44px;
  background: #fff;
}

.gb-row { display: flex; gap: 12px; align-items: center; }
.gb-row--between { justify-content: space-between; flex-wrap: wrap; }

.gb-link { text-decoration: underline; }
.gb-link--muted { color: rgba(17,17,17,.65); }

.gb-check { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 0; }

.gb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  min-height: 44px;
  font-weight: 700;
  border: 0;
  width: fit-content;
}

.gb-btn--primary { background: rgb(13,135,221); color: #fff; }
.gb-btn:hover { filter: brightness(.98); }

/* Woo password eye alignment safety */
body.woocommerce-account .password-input { display: block; }
body.woocommerce-account button.show-password-input { border-radius: 10px; }

/* ============================= */
/* Account Notices – Styled     */
/* ============================= */

body.woocommerce-account .woocommerce-notices-wrapper {
  margin: 0 0 24px 0;
}

/* Base style for all notice types */
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 14px 18px 14px 44px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,.04);
  margin-bottom: -50px !important;
}

/* Remove default Woo red left border */
body.woocommerce-account .woocommerce-error::before,
body.woocommerce-account .woocommerce-message::before,
body.woocommerce-account .woocommerce-info::before {
  display: none !important;
}

/* Error */
body.woocommerce-account .woocommerce-error {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

/* Success */
body.woocommerce-account .woocommerce-message {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #065f46;
}

/* Info */
body.woocommerce-account .woocommerce-info {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

/* Add subtle icon */
body.woocommerce-account .woocommerce-error::after,
body.woocommerce-account .woocommerce-message::after,
body.woocommerce-account .woocommerce-info::after {
  content: "!";
  position: absolute;
  left: 16px;
  top: 14px;
  font-weight: 700;
  font-size: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Icon colors */
body.woocommerce-account .woocommerce-error::after {
  background: #fda4af;
  color: #7f1d1d;
}

body.woocommerce-account .woocommerce-message::after {
  background: #86efac;
  color: #064e3b;
}

body.woocommerce-account .woocommerce-info::after {
  background: #93c5fd;
  color: #1e3a8a;
}

/* Remove huge Woo spacing */
body.woocommerce-account .woocommerce-error li,
body.woocommerce-account .woocommerce-message li,
body.woocommerce-account .woocommerce-info li {
  margin: 0;
  padding: 0;
}

/* Fix excessive Woo notice margin on account page */
body.woocommerce-account .woocommerce-error,
body.woocommerce-account .woocommerce-message,
body.woocommerce-account .woocommerce-info {
  margin: 12px 0 20px 0 !important;
}

/* =========================
   My Account – 1 column
========================= */

body.woocommerce-account .entry-title { display: none; }

/* Page spacing */
.gb-account-page {
  padding: 60px 0 80px;
}

/* Single centered container for ALL endpoints */
.gb-account-container--single {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cards */
.gb-account-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

/* Overview hero spacing */
.gb-account-hero { margin-bottom: 18px; }
.gb-account-title { margin: 0 0 8px; font-size: 34px; line-height: 1.1; }
.gb-account-subtitle { margin: 0 0 16px; color: rgba(17,17,17,.65); }

/* Action tiles */
.gb-account-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .gb-account-actions {
    grid-template-columns: 1fr 1fr;
  }
}

.gb-account-action {
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 14px;
  padding: 14px;
  text-decoration: none !important;
  color: rgba(17,17,17,.90);
  background: #fff;
}

.gb-account-action:hover {
  box-shadow: 0 10px 24px rgba(17,17,17,.08);
}

.gb-account-action__title { font-weight: 700; margin: 0 0 4px; }
.gb-account-action__desc { margin: 0; color: rgba(17,17,17,.65); font-size: 14px; line-height: 1.4; }

.gb-account-action--danger {
  border-color: rgba(240,68,56,.35);
}

/* Panel card (where Woo renders content) */
.gb-account-panel .woocommerce-MyAccount-content { width: 100%; }
.gb-account-panel > *:first-child { margin-top: 0; }

/* Hide default Woo sidebar/nav (in case theme still outputs it somewhere) */
.woocommerce-MyAccount-navigation { display: none !important; }
.woocommerce-MyAccount-content { width: 100% !important; float: none !important; }

/* Orders table: make it not look squashed */
body.woocommerce-account table.my_account_orders {
  width: 100%;
}
body.woocommerce-account table.my_account_orders th,
body.woocommerce-account table.my_account_orders td {
  vertical-align: middle;
}

/* =========================
   Orders (Shopify-like)
========================= */

.gb-account-section__head { margin-bottom: 14px; }
.gb-account-section__title { margin: 0 0 6px; font-size: 22px; }
.gb-account-section__sub { margin: 0; color: rgba(17,17,17,.65); }

.gb-orders { display: grid; gap: 14px; }

.gb-order-card {
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

.gb-order-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.gb-order-card__number { font-weight: 700; }
.gb-order-card__date { color: rgba(17,17,17,.60); font-size: 14px; margin-top: 2px; }

.gb-order-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(17,17,17,.12);
  background: rgba(17,17,17,.04);
  color: rgba(17,17,17,.80);
}

/* Status variants */
.gb-order-status--completed { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.25); color: rgba(21,128,61,1); }
.gb-order-status--processing { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.25); color: rgba(30,64,175,1); }
.gb-order-status--on-hold { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.30); color: rgba(146,64,14,1); }
.gb-order-status--cancelled { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); color: rgba(153,27,27,1); }
.gb-order-status--refunded { background: rgba(148,163,184,.18); border-color: rgba(148,163,184,.35); color: rgba(30,41,59,1); }
.gb-order-status--failed { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.25); color: rgba(153,27,27,1); }
.gb-order-status--pending { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.30); color: rgba(146,64,14,1); }

.gb-order-card__meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.gb-order-card__meta-label { color: rgba(17,17,17,.60); font-size: 14px; }
.gb-order-card__meta-value { font-weight: 700; }
.gb-order-card__meta-muted { font-weight: 400; color: rgba(17,17,17,.60); margin-left: 6px; font-size: 13px; }

.gb-order-card__actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

/* Use your existing button style if gb-btn exists; else basic */
.gb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(17,17,17,.10);
}

.gb-btn--primary {
  background: rgb(13,135,221);
  border-color: rgb(13,135,221);
  color: #fff;
}

.gb-btn__icon { font-size: 14px; line-height: 1; }

/* Pagination list reset */
.gb-orders-pagination ul {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gb-orders-pagination a,
.gb-orders-pagination span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17,17,17,.10);
  text-decoration: none;
  color: rgba(17,17,17,.85);
}

.gb-orders-pagination .current {
  background: rgba(13,135,221,.10);
  border-color: rgba(13,135,221,.25);
  color: rgb(13,135,221);
}

/* Empty state */
.gb-empty {
  border: 1px solid rgba(17,17,17,.10);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}
.gb-empty__title { margin: 0 0 6px; }
.gb-empty__text { margin: 0 0 12px; color: rgba(17,17,17,.65); }

/* Orders separators between cards */
.gb-orders-sep {
  border: 0;
  height: 1px;
  background: rgba(17,17,17,.08);
  margin: 0;
}

/* =========================
   View Order (Thank-you style)
========================= */

.gb-vieworder-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.gb-vieworder-back {
  text-decoration: none;
  font-weight: 700;
  color: rgba(17,17,17,.75);
}

.gb-vieworder-hero__grid {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}

.gb-vieworder-hero__img img {
  width: 84px;
  height: auto;
  display: block;
}

.gb-vieworder-hero__title {
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 4px;
}

.gb-vieworder-hero__desc {
  color: rgba(17,17,17,.70);
  line-height: 1.4;
}

.gb-vieworder-card__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 900;
}

.gb-vieworder-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
}

.gb-vieworder-item__thumbimg {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.gb-vieworder-item__thumbph {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(17,17,17,.06);
}

.gb-vieworder-item__name {
  font-weight: 700;
}

.gb-vieworder-item__meta {
  font-size: 13px;
  color: rgba(17,17,17,.60);
  margin-top: 2px;
}

.gb-vieworder-item__price {
  font-weight: 700;
  white-space: nowrap;
}

.gb-vieworder-totals {
  display: grid;
  gap: 8px;
}

.gb-vieworder-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.gb-vieworder-total__label {
  color: rgba(17,17,17,.65);
}

.gb-vieworder-total__value {
  font-weight: 700;
  text-align: right;
}

.gb-vieworder-help__text {
  margin: 0;
  color: rgba(17,17,17,.70);
}

@media (max-width: 520px) {
  .gb-vieworder-hero__grid {
    grid-template-columns: 64px 1fr;
  }
  .gb-vieworder-hero__img img {
    width: 64px;
  }
  .gb-vieworder-item {
    grid-template-columns: 54px 1fr;
  }
  .gb-vieworder-item__price {
    grid-column: 2 / 3;
    justify-self: start;
    margin-top: 4px;
  }
}

/* View Order spacing between cards */
.gb-vieworder .gb-account-card {
  margin-top: 14px;
}

.gb-vieworder .gb-account-section__head {
  margin-bottom: 14px;
}

/* Addresses page */
.gb-address-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.gb-address-card__title{
  margin:0;
  font-size:16px;
  font-weight:900;
}

.gb-address-card__address{
  margin:0;
  font-style:normal;
  color: rgba(17,17,17,.75);
  line-height:1.55;
}

.gb-address-card__empty{
  margin:0;
  color: rgba(17,17,17,.65);
}