/* ============================================================
   GroKarna - Account / Lost-Password / Prime redesign polish
   Scoped visual fixes layered on top of the existing CSS.
   Brand: green #1a3c24 / #2d6e3e, orange #ff7b00, cream #f9fbf6.
   Card language: rounded 12-16px, shadow 0 10px 28px rgba(26,60,36,.14)
   ============================================================ */

:root {
    --gk-brand-green: #2d6e3e;
    --gk-brand-green-dark: #1a3c24;
    --gk-brand-orange: #ff7b00;
    --gk-brand-orange-dark: #e66c00;
    --gk-brand-cream: #f9fbf6;
    --gk-card-shadow: 0 10px 28px rgba(26, 60, 36, .14);
    --gk-card-shadow-hover: 0 16px 38px rgba(26, 60, 36, .2);
}

/* ============================================================
   1) LOST PASSWORD PAGE
   ============================================================ */
.gk-lostpw-page {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 56px 16px 72px;
    background: var(--gk-brand-cream);
    font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.gk-lostpw-card {
    width: 100%;
    max-width: 440px;
    background: #ffffff;
    border: 1px solid rgba(26, 60, 36, .08);
    border-radius: 16px;
    box-shadow: var(--gk-card-shadow);
    padding: 40px 36px 32px;
    text-align: center;
}

.gk-lostpw-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gk-brand-green);
    background: linear-gradient(135deg, rgba(45, 110, 62, .14), rgba(255, 123, 0, .12));
    box-shadow: inset 0 0 0 1px rgba(45, 110, 62, .12);
}

.gk-lostpw-title {
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gk-brand-green-dark);
    margin: 0 0 10px;
    line-height: 1.2;
}

.gk-lostpw-subtitle {
    font-size: .95rem;
    color: #4b5563;
    line-height: 1.55;
    margin: 0 0 26px;
}

.gk-lostpw-form {
    text-align: left;
    margin: 0;
}

.gk-lostpw-field {
    margin: 0 0 18px !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.gk-lostpw-field label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.gk-lostpw-field .required {
    color: var(--gk-brand-orange);
    border: 0;
}

.gk-lostpw-input-wrap {
    position: relative;
    display: block;
}

.gk-lostpw-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    display: flex;
    align-items: center;
    pointer-events: none;
}

.gk-lostpw-form input.input-text,
.gk-lostpw-form input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px 13px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gk-lostpw-form input.input-text:focus,
.gk-lostpw-form input[type="text"]:focus {
    outline: none;
    border-color: var(--gk-brand-green);
    box-shadow: 0 0 0 4px rgba(45, 110, 62, .12);
}

.gk-lostpw-actions {
    margin: 0 0 6px !important;
    padding: 0 !important;
    float: none !important;
    width: 100% !important;
}

.gk-lostpw-submit,
.gk-lostpw-form button.button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gk-brand-orange) 0%, var(--gk-brand-orange-dark) 100%);
    color: #fff;
    font-size: 1.02rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 123, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.gk-lostpw-submit:hover,
.gk-lostpw-form button.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 123, 0, .36);
    filter: brightness(1.02);
}

.gk-lostpw-back {
    text-align: center;
    margin: 22px 0 0;
}

.gk-lostpw-back a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gk-brand-green);
    font-weight: 600;
    font-size: .92rem;
    text-decoration: none;
    transition: color .2s ease;
}

.gk-lostpw-back a:hover {
    color: var(--gk-brand-green-dark);
}

.gk-lostpw-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #eef2ee;
    color: #6b7280;
    font-size: .82rem;
    line-height: 1.4;
}

.gk-lostpw-secure svg {
    color: var(--gk-brand-green);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .gk-lostpw-card {
        padding: 32px 22px 26px;
    }
}

/* ---- Reset-password + confirmation additions ---- */

/* Password inputs share the same styling as the text inputs above.
   (The base rules only matched input[type="text"], so password fields
   rendered as raw browser default boxes without this.) */
.gk-lostpw-form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 44px 13px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: #1f2937;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.gk-lostpw-form input[type="password"]:focus {
    outline: none;
    border-color: var(--gk-brand-green);
    box-shadow: 0 0 0 4px rgba(45, 110, 62, .12);
}

/* Show/hide toggle button inside the input wrap */
.gk-lostpw-reveal {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    color: #9ca3af;
    transition: color .2s ease, background-color .2s ease;
}

.gk-lostpw-reveal:hover {
    color: var(--gk-brand-green);
    background: rgba(45, 110, 62, .08);
}

.gk-lostpw-reveal:focus-visible {
    outline: 2px solid var(--gk-brand-green);
    outline-offset: 1px;
}

/* Strength hint under the password fields */
.gk-lostpw-hint {
    font-size: .8rem;
    color: #6b7280;
    line-height: 1.45;
    text-align: left;
    margin: -6px 0 18px;
}

/* Success card variant (confirmation screen) */
.gk-lostpw-card--success .gk-lostpw-icon--success {
    background: linear-gradient(135deg, rgba(45, 110, 62, .16), rgba(45, 110, 62, .08));
    color: var(--gk-brand-green);
}

.gk-lostpw-note {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
    background: #f0f7f1;
    border: 1px solid rgba(45, 110, 62, .15);
    border-radius: 12px;
    padding: 12px 14px;
    margin: 0 0 20px;
    color: #33553c;
    font-size: .85rem;
    line-height: 1.45;
}

.gk-lostpw-note svg {
    color: var(--gk-brand-green);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Secondary link styled as a button (Resend reset link) */
.gk-lostpw-submit--link {
    text-decoration: none;
}

/* ============================================================
   4) ACCOUNT DASHBOARD - contrast & crispness
   ============================================================ */
.woocommerce-account .gk-stat-card,
.gk-stat-card {
    background: #ffffff;
    border: 1px solid rgba(26, 60, 36, .14);
    box-shadow: var(--gk-card-shadow);
}

.woocommerce-account .gk-stat-card:hover,
.gk-stat-card:hover {
    box-shadow: var(--gk-card-shadow-hover);
    border-color: rgba(45, 110, 62, .28);
}

.woocommerce-account .gk-stat-card.accent,
.gk-stat-card.accent {
    background: linear-gradient(135deg, rgba(45, 110, 62, .1), #ffffff 70%);
    border-color: rgba(45, 110, 62, .22);
}

/* Brighter stat icon chip */
.woocommerce-account .gk-stat-icon,
.gk-stat-icon {
    background: rgba(45, 110, 62, .14);
    color: var(--gk-brand-green-dark);
}

/* Crisper numbers + labels */
.woocommerce-account .gk-stat-value,
.gk-stat-value {
    color: var(--gk-brand-green-dark);
}

.woocommerce-account .gk-stat-label,
.gk-stat-label {
    color: #374151;
    font-weight: 700;
}

.woocommerce-account .gk-stat-trend,
.gk-stat-trend {
    color: #4b5563;
}

.woocommerce-account .gk-stat-action,
.gk-stat-action {
    color: var(--gk-brand-green);
    font-weight: 700;
}

/* Welcome header - a touch more presence */
.woocommerce-account .gk-user-info h3,
.gk-user-info h3 {
    color: var(--gk-brand-green-dark);
}

.woocommerce-account .gk-user-info p,
.gk-user-info p {
    color: #4b5563;
}

.woocommerce-account .gk-user-meta-item,
.gk-user-meta-item {
    color: #374151;
    background: #ffffff;
    border: 1px solid rgba(26, 60, 36, .12);
}

/* Empty state - crisper headline & copy */
.woocommerce-account .gk-empty-state,
.gk-empty-state {
    border: 1px solid rgba(26, 60, 36, .14);
    box-shadow: var(--gk-card-shadow);
}

.woocommerce-account .gk-empty-state h3,
.gk-empty-state h3 {
    color: var(--gk-brand-green-dark);
    font-weight: 700;
}

.woocommerce-account .gk-empty-state p,
.gk-empty-state p {
    color: #4b5563;
}

.woocommerce-account .gk-empty-state .gk-btn-primary,
.gk-empty-state .gk-btn-primary {
    background: linear-gradient(135deg, var(--gk-brand-orange) 0%, var(--gk-brand-orange-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 123, 0, .28);
}

.woocommerce-account .gk-empty-state .gk-btn-primary:hover,
.gk-empty-state .gk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 123, 0, .36);
}

/* Recent order preview rows - clearer separation */
.woocommerce-account .gk-order-preview,
.gk-order-preview {
    border: 1px solid rgba(26, 60, 36, .12);
    box-shadow: 0 6px 16px rgba(26, 60, 36, .06);
}

/* ============================================================
   5) ACCOUNT DETAILS - optional fields grouping + spacing
   ============================================================ */
.woocommerce-account .gk-card-title,
.gk-account-edit-container .gk-card-title {
    color: var(--gk-brand-green-dark);
}

/* Optional-field section: visually grouped, clearly marked */
.gk-optional-fields-card {
    position: relative;
}

.gk-optional-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gk-brand-green);
    background: rgba(45, 110, 62, .1);
    vertical-align: middle;
}

.gk-optional-hint {
    display: block;
    font-size: .85rem;
    color: #6b7280;
    margin: -2px 0 18px;
    line-height: 1.5;
}

.gk-optional-fields-card .form-row label .gk-optional-tag {
    font-weight: 500;
    font-size: .82rem;
    color: #9ca3af;
    font-style: italic;
}

/* Mark required-field asterisks in brand orange for clarity */
.gk-account-edit-container .required,
.woocommerce-EditAccountForm .required {
    color: var(--gk-brand-orange);
    border: 0;
    text-decoration: none;
}

/* ============================================================
   6) PRIME MEMBERSHIP PLAN BUTTONS - tasteful hover
   Buttons carry .gk-plan-action (secondary = outline, primary = solid).
   Kill the jarring full-green flood from generic .gk-btn:hover rules.
   ============================================================ */

/* Secondary plan buttons (Start Monthly / Get Lifetime Access):
   outline style that darkens its tint + lifts on hover, text stays readable. */
.gk-plan-card .gk-btn.gk-plan-action.gk-btn-secondary,
.gk-plans-grid .gk-btn-secondary.gk-plan-action {
    background: #ffffff;
    color: var(--gk-brand-green);
    border: 2px solid rgba(45, 110, 62, .35);
    box-shadow: none;
}

.gk-plan-card .gk-btn.gk-plan-action.gk-btn-secondary:hover,
.gk-plans-grid .gk-btn-secondary.gk-plan-action:hover {
    background: rgba(45, 110, 62, .08);
    color: var(--gk-brand-green-dark);
    border-color: var(--gk-brand-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 60, 36, .12);
}

/* Primary plan button (Subscribe Annual): solid green, darkens + lifts. */
.gk-plan-card .gk-btn.gk-plan-action.gk-btn-primary,
.gk-plans-grid .gk-btn-primary.gk-plan-action {
    background: linear-gradient(135deg, var(--gk-brand-green) 0%, var(--gk-brand-green-dark) 100%);
    color: #ffffff;
    border: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(45, 110, 62, .28);
}

.gk-plan-card .gk-btn.gk-plan-action.gk-btn-primary:hover,
.gk-plans-grid .gk-btn-primary.gk-plan-action:hover {
    background: linear-gradient(135deg, #25623a 0%, #14301d 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45, 110, 62, .36);
}

/* Keep text crisp & buttons consistent height across the 3 cards */
.gk-plan-card .gk-btn.gk-plan-action {
    width: 100%;
    font-weight: 700;
    letter-spacing: .01em;
}

/* ============================================================
   7) ACCOUNT SHELL - welcome header + Prime badge (all tabs)
   ============================================================ */
.gk-account-welcome {
    display: flex;
    align-items: center;
    gap: 22px;
    background: linear-gradient(135deg, var(--gk-brand-green) 0%, var(--gk-brand-green-dark) 100%);
    color: #fff;
    border-radius: 20px;
    padding: 26px 30px;
    margin-bottom: 28px;
    box-shadow: var(--gk-card-shadow);
    position: relative;
    overflow: hidden;
}

.gk-account-welcome::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 123, 0, .28) 0%, transparent 68%);
    pointer-events: none;
}

.gk-account-welcome-avatar {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.gk-account-welcome-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.gk-account-welcome-text h1 {
    margin: 0 0 4px;
    font-size: 1.55rem;
    line-height: 1.2;
    color: #fff;
    font-weight: 700;
}

.gk-account-welcome-text p {
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: .95rem;
}

.gk-account-welcome-since {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    font-size: .78rem;
    font-weight: 600;
    color: #fff;
}

.gk-account-welcome-side {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.gk-account-prime-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    background: linear-gradient(135deg, #fde68a, #fbbf24);
    color: #7c2d12;
    box-shadow: 0 8px 20px rgba(251, 191, 36, .35);
    white-space: nowrap;
}

.gk-account-prime-badge__star {
    font-size: 1rem;
    line-height: 1;
}

.gk-account-prime-badge--cta {
    background: linear-gradient(135deg, var(--gk-brand-orange) 0%, var(--gk-brand-orange-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 123, 0, .32);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gk-account-prime-badge--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 123, 0, .42);
    color: #fff;
}

@media (max-width: 768px) {
    .gk-account-welcome {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    .gk-account-welcome-text h1 {
        font-size: 1.35rem;
    }
}

/* Shared panel headers used across tabs */
.gk-account-panel-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(26, 60, 36, .1);
}

.gk-account-panel-header h2 {
    margin: 0 0 4px;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--gk-brand-green-dark);
}

.gk-account-panel-header p {
    margin: 0;
    color: #6b7280;
    font-size: .95rem;
}

/* Accent (orange) button shared across account tabs */
.woocommerce-account .gk-btn-accent,
.gk-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--gk-radius-xs, 10px);
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    background: linear-gradient(135deg, var(--gk-brand-orange) 0%, var(--gk-brand-orange-dark) 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(255, 123, 0, .28);
    transition: transform .2s ease, box-shadow .2s ease;
}

.woocommerce-account .gk-btn-accent:hover,
.gk-btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(255, 123, 0, .38);
    color: #fff;
}

/* ============================================================
   8) OVERVIEW - prime strip + quick links
   ============================================================ */
.gk-overview-prime {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 18px;
    margin-bottom: 28px;
    box-shadow: var(--gk-card-shadow);
}

.gk-overview-prime.is-active {
    background: linear-gradient(135deg, rgba(45, 110, 62, .12), #fff 72%);
    border: 1px solid rgba(45, 110, 62, .22);
}

.gk-overview-prime.is-cta {
    background: linear-gradient(135deg, rgba(255, 208, 149, .5), #fff 72%);
    border: 1px solid rgba(255, 193, 120, .5);
}

.gk-overview-prime__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, .8);
    box-shadow: inset 0 0 0 1px rgba(45, 110, 62, .12);
}

.gk-overview-prime__text {
    flex: 1;
    min-width: 0;
}

.gk-overview-prime__text h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    color: var(--gk-brand-green-dark);
    font-weight: 700;
}

.gk-overview-prime__text p {
    margin: 0;
    color: #4b5563;
    font-size: .92rem;
}

.gk-overview-prime .gk-btn {
    flex-shrink: 0;
}

.gk-quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.gk-quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(26, 60, 36, .12);
    box-shadow: 0 6px 16px rgba(26, 60, 36, .06);
    text-decoration: none;
    color: var(--gk-brand-green-dark);
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gk-quick-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--gk-card-shadow-hover);
    border-color: rgba(45, 110, 62, .3);
    color: var(--gk-brand-green);
}

.gk-quick-link__icon {
    font-size: 1.6rem;
}

.gk-quick-link__label {
    font-size: .9rem;
    text-align: center;
}

@media (max-width: 640px) {
    .gk-overview-prime {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   9) ORDERS LIST - cards + status pills
   ============================================================ */
.gk-orders-grid {
    display: grid;
    gap: 18px;
}

.gk-order-card {
    background: #fff;
    border: 1px solid rgba(26, 60, 36, .12);
    border-radius: 16px;
    padding: 22px 24px;
    box-shadow: 0 6px 16px rgba(26, 60, 36, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.gk-order-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gk-card-shadow);
    border-color: rgba(45, 110, 62, .24);
}

.gk-order-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #f0f4f0;
}

.gk-order-card__id {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gk-order-card__id a {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--gk-brand-green);
    text-decoration: none;
}

.gk-order-card__id a:hover {
    color: var(--gk-brand-green-dark);
}

.gk-order-card__date {
    font-size: .82rem;
    color: #6b7280;
}

.gk-order-card__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.gk-order-meta-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gk-order-meta-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    font-weight: 700;
}

.gk-order-meta-value {
    font-weight: 600;
    color: #1f2937;
}

.gk-order-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gk-order-card__actions .gk-btn {
    padding: 9px 18px;
    font-size: .88rem;
}

/* Status pills */
.gk-order-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: capitalize;
    white-space: nowrap;
    background: rgba(45, 110, 62, .1);
    color: var(--gk-brand-green);
}

.gk-order-pill--completed { background: rgba(45, 110, 62, .12); color: #15803d; }
.gk-order-pill--processing { background: rgba(255, 123, 0, .14); color: #c2410c; }
.gk-order-pill--on-hold { background: rgba(236, 72, 153, .12); color: #be185d; }
.gk-order-pill--pending { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.gk-order-pill--cancelled,
.gk-order-pill--failed { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.gk-order-pill--refunded { background: rgba(107, 114, 128, .14); color: #374151; }

.gk-order-pill--onhero {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.gk-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--gk-radius-xs, 10px);
    font-weight: 700;
    text-decoration: none;
    background: #fff;
    color: var(--gk-brand-green);
    border: 1.5px solid rgba(45, 110, 62, .35);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.gk-btn-outline:hover {
    background: rgba(45, 110, 62, .08);
    border-color: var(--gk-brand-green);
    color: var(--gk-brand-green-dark);
    transform: translateY(-2px);
}

.gk-orders-pagination {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ============================================================
   10) VIEW ORDER
   ============================================================ */
.gk-view-order-header {
    background: linear-gradient(135deg, var(--gk-brand-green) 0%, var(--gk-brand-green-dark) 100%);
    color: #fff;
    padding: 28px 30px;
    border-radius: 18px;
    margin-bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: var(--gk-card-shadow);
}

.gk-view-order-title {
    font-size: 1.7rem;
    margin: 0 0 6px;
    font-weight: 700;
    color: #fff;
}

.gk-view-order-subtitle {
    margin: 0;
    opacity: .9;
    font-size: .9rem;
}

.gk-view-order-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 22px;
    margin-bottom: 26px;
}

.gk-view-order-card {
    background: #fff;
    border: 1px solid rgba(26, 60, 36, .12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(26, 60, 36, .06);
    margin-bottom: 22px;
}

.gk-view-order-card:last-child {
    margin-bottom: 0;
}

.gk-view-order-card h3 {
    font-size: 1.15rem;
    color: var(--gk-brand-green-dark);
    margin: 0 0 18px;
    font-weight: 700;
}

.gk-view-order-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.gk-view-order-card__head h3 {
    margin: 0;
}

.gk-order-items-table {
    width: 100%;
    border-collapse: collapse;
    border: 0 !important;
}

.gk-order-items-table thead th {
    background: #f6faf6;
    padding: 12px;
    text-align: left;
    font-weight: 700;
    color: var(--gk-brand-green-dark);
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.gk-order-items-table td {
    padding: 16px 12px;
    border-top: 1px solid #f0f4f0;
    vertical-align: middle;
}

.gk-order-items-table tfoot th,
.gk-order-items-table tfoot td {
    padding: 12px;
    font-weight: 600;
}

.gk-order-items-table tfoot .order-total th,
.gk-order-items-table tfoot .order-total td {
    font-size: 1.05rem;
    color: var(--gk-brand-green-dark) !important;
}

.gk-order-item-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gk-order-item-thumb {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
}

.gk-order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.gk-summary-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gk-summary-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.gk-summary-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #9ca3af;
    font-weight: 700;
}

.gk-summary-value {
    font-weight: 600;
    color: #1f2937;
    word-break: break-word;
}

.gk-summary-btn,
.gk-view-address-btn {
    margin-top: 6px;
    width: 100%;
}

.gk-view-address {
    font-style: normal;
    line-height: 1.7;
    color: #374151;
    margin: 0 0 14px;
}

.gk-address-flag {
    background: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
}

.gk-address-flag-note {
    color: #856404;
}

.gk-view-order-back {
    text-align: center;
    margin-top: 26px;
}

/* "← Back to Orders" — explicit, stable states. A generic .gk-btn hover rule
   elsewhere animated/flipped this button on hover; pin its full look here so
   hover only deepens the colour (no transform, no direction change). */
.woocommerce-account .gk-view-order-back .gk-btn.gk-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 110, 62, .09);
    color: var(--gk-brand-green, #2d6e3e);
    border: 1.5px solid rgba(45, 110, 62, .25);
    border-radius: 10px;
    padding: 12px 26px;
    font-weight: 700;
    text-decoration: none;
    transform: none !important;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.woocommerce-account .gk-view-order-back .gk-btn.gk-btn-secondary:hover,
.woocommerce-account .gk-view-order-back .gk-btn.gk-btn-secondary:focus {
    background: rgba(45, 110, 62, .16);
    color: var(--gk-brand-green-dark, #1a3c24);
    border-color: var(--gk-brand-green, #2d6e3e);
    transform: none !important;
}

@media (max-width: 768px) {
    .gk-view-order-grid {
        grid-template-columns: 1fr;
    }
    .gk-view-order-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   11) ADDRESSES
   ============================================================ */
.gk-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.gk-address-card {
    background: #fff;
    border: 1px solid rgba(26, 60, 36, .12);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 16px rgba(26, 60, 36, .06);
    transition: box-shadow .2s ease;
}

.gk-address-card:hover {
    box-shadow: var(--gk-card-shadow);
}

.gk-address-card--default {
    border-color: rgba(45, 110, 62, .35);
}

.gk-address-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(45, 110, 62, .1);
    color: var(--gk-brand-green);
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.gk-address-card__body {
    padding: 22px 22px 12px;
    min-height: 110px;
    color: #374151;
    font-size: .95rem;
    line-height: 1.6;
}

.gk-address-card__body address {
    font-style: normal;
}

.gk-address-name {
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--gk-brand-green-dark);
}

.gk-address-card__footer {
    padding: 14px 22px;
    border-top: 1px solid #f0f4f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.gk-address-link {
    color: var(--gk-brand-green);
    text-decoration: none;
    font-weight: 600;
    font-size: .9rem;
}

.gk-address-link:hover {
    text-decoration: underline;
    color: var(--gk-brand-green-dark);
}

.gk-address-card__note {
    margin-left: auto;
    font-size: .8rem;
    color: #9ca3af;
}

.gk-address-add {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 190px;
    border: 2px dashed rgba(45, 110, 62, .3);
    border-radius: 16px;
    background: #fbfdfb;
    text-decoration: none;
    color: #6b7280;
    text-align: center;
    padding: 24px;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.gk-address-add:hover {
    border-color: var(--gk-brand-green);
    background: rgba(45, 110, 62, .05);
    color: var(--gk-brand-green);
}

.gk-address-add__icon {
    font-size: 2rem;
    line-height: 1;
    color: var(--gk-brand-green);
}

.gk-address-add__title {
    font-weight: 700;
    font-size: 1rem;
}

.gk-address-add__hint {
    font-size: .82rem;
}

/* ============================================================
   12) ACCOUNT DETAILS FORM (styles migrated from inline block)
   ============================================================ */
.gk-account-edit-container {
    max-width: 100%;
}

.gk-edit-account-grid {
    display: grid;
    gap: 22px;
    margin-bottom: 24px;
}

.gk-account-edit-container .gk-card {
    background: #fff;
    border: 1px solid rgba(26, 60, 36, .12);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(26, 60, 36, .06);
}

.gk-account-edit-container .gk-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gk-brand-green-dark);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f4f0;
}

.gk-account-edit-container .gk-form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 4px;
}

.gk-account-edit-container .woocommerce-form-row {
    margin-bottom: 16px;
    width: 100% !important;
    padding: 0 !important;
    float: none !important;
    margin-right: 0 !important;
}

.gk-account-edit-container .woocommerce-form-row label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .9rem;
    color: #374151;
}

.gk-account-edit-container .woocommerce-Input,
.gk-account-edit-container input.input-text {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease;
    box-sizing: border-box;
}

.gk-account-edit-container .woocommerce-Input:focus,
.gk-account-edit-container input.input-text:focus {
    border-color: var(--gk-brand-green);
    outline: none;
    box-shadow: 0 0 0 4px rgba(45, 110, 62, .12);
}

.gk-account-edit-container .description {
    display: block;
    font-size: .84rem;
    color: #6b7280;
    margin-top: 4px;
}

.gk-account-edit-container .gk-form-actions {
    margin-top: 8px;
    text-align: right;
}

.gk-account-edit-container .gk-btn-primary {
    background: linear-gradient(135deg, var(--gk-brand-green) 0%, var(--gk-brand-green-dark) 100%);
    color: #fff;
    padding: 13px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(45, 110, 62, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}

.gk-account-edit-container .gk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(45, 110, 62, .32);
}

@media (max-width: 768px) {
    .gk-account-edit-container .gk-form-row-group {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .gk-account-edit-container .gk-form-actions {
        text-align: center;
    }
    .gk-account-edit-container .gk-btn-primary {
        width: 100%;
    }
}

/* ============================================================
   13) PAYMENT METHODS - style WC's native table/buttons on-theme
   ============================================================ */
.woocommerce-account .woocommerce-MyAccount-paymentMethods {
    border: 1px solid rgba(26, 60, 36, .12);
    border-radius: 14px;
    overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-paymentMethods th {
    background: #f6faf6;
    color: var(--gk-brand-green-dark);
    font-weight: 700;
}

.woocommerce-account .payment-method-add-new .button,
.woocommerce-account .woocommerce-MyAccount-content .button.wc-payment-method-add {
    background: linear-gradient(135deg, var(--gk-brand-green) 0%, var(--gk-brand-green-dark) 100%);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px 24px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(45, 110, 62, .25);
}

/* ---- Orders filter row (rendered by phase2 enhance_orders_display) ---- */
.gk-order-filters {
    margin: 0 0 20px;
}
.gk-order-filters #gk-order-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.gk-order-filters input[type="text"],
.gk-order-filters select {
    flex: 1 1 200px;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid #e2e8e4;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    color: #2d3b32;
}
.gk-order-filters input[type="text"]:focus,
.gk-order-filters select:focus {
    outline: none;
    border-color: #2d6e3e;
    box-shadow: 0 0 0 3px rgba(45, 110, 62, .12);
}
.gk-order-filters select {
    flex: 0 1 190px;
    cursor: pointer;
}
.gk-order-filters button[type="submit"] {
    flex: 0 0 auto;
    padding: 11px 24px;
    border: none;
    border-radius: 10px;
    background: #2d6e3e;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease;
}
.gk-order-filters button[type="submit"]:hover {
    background: #24582f;
}
@media (max-width: 600px) {
    .gk-order-filters #gk-order-filter-form { flex-direction: column; align-items: stretch; }
    .gk-order-filters input[type="text"],
    .gk-order-filters select,
    .gk-order-filters button[type="submit"] { flex: 1 1 auto; width: 100%; }
}
