/* Light, self-contained "Player information" card. Previously these fields inherited the shop's
   theme with almost no styling of our own; the shop owner asked for a specific, fixed look
   instead (light card, eyebrow header, badge-style verify result) — so from here down the card's
   own colours are deliberate and no longer inherited from the theme. */

.gh-card {
    margin: 0 0 8px;
    background: #ffffff;
    border: 1.5px solid #c7d2fe;
    border-radius: 12px;
    padding: 16px 16px 12px;
    box-shadow: 0 0 0 3px #eef2ff;
}
/* WooCommerce core ships .form-row with its own (often 1.5-2em) bottom margin and, in some
   two-column layouts, a width less than 100%. Our rows reuse .form-row for compatibility with
   plugins that hook it, so pin the box model back here rather than fight theme specificity. */
.gh-card p.form-row {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.gh-card-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -16px -16px 14px;
    padding: 12px 16px;
    background: #2a1655;
    border-bottom: 1px solid #2a1655;
    border-radius: 10.5px 10.5px 0 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #ffffff;
}
.gh-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    box-sizing: border-box;
    border-radius: 50%;
    background: #6366f1;
    border: 2px solid #a78bfa;
}

/* Field label + input. Overrides the theme's own form-row styling on purpose (that is the point
   of the redesign) — !important only on the handful of properties a theme is likely to also set. */
.gh-card p.gh-field { margin: 0 0 12px !important; }
.gh-card .gh-field label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151 !important;
}
.gh-card .gh-field label .required {
    color: #ef4444;
    text-decoration: none;
    border: 0;
}
.gh-card .gh-field .woocommerce-input-wrapper { display: block; width: 100%; }
.gh-card .gh-input {
    display: block;
    width: 100% !important;
    height: 42px;
    padding: 0 12px !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    color: #111827 !important;
    font-size: 14px !important;
    box-shadow: none !important;
    transition: border-color .15s ease;
}
.gh-card .gh-input::placeholder { color: #9ca3af; opacity: 1; }
.gh-card .gh-input:focus {
    outline: none !important;
    border-color: #6366f1 !important;
}
.gh-card select.gh-input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.6' fill='none' fill-rule='evenodd' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 32px !important;
}

/* Verify button — a full-width, quietly outlined action so it reads as secondary to Add to cart. */
.gh-verify-wrap { margin: 4px 0 0; }
.gh-verify-result:not(:empty) { margin-top: 6px; }
.gh-verify-actions .gh-verify-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    min-height: 42px;
    cursor: pointer;
    background-color: #f9fafb !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}
.gh-verify-btn-icon { flex-shrink: 0; color: #6b7280; }
.gh-verify-actions .gh-verify-btn:hover:not(:disabled) { background-color: #f3f4f6 !important; }
.gh-verify-actions .gh-verify-btn:disabled { opacity: .6; cursor: wait; }

/* Result card. Reserve height up front so nothing below (Add to cart) shifts as the check runs. */
.gh-verify-result { min-height: 0; }
.gh-verify-result:empty { display: none; }

.gh-verify-note {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 32px 12px 12px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.45;
    color: #374151;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}
.gh-verify-note.is-ok { background: #eef2ff; border-color: #e0e7ff; }
.gh-verify-note.is-skip { background: #f9fafb; border-color: #e5e7eb; }
.gh-verify-note.is-bad { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.gh-verify-note.is-busy { background: #f9fafb; border-color: #e5e7eb; color: #6b7280; }

.gh-verify-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #d1d5db;
    color: #ffffff;
    margin-top: 1px;
}
.gh-verify-note.is-ok .gh-verify-badge { background: #6366f1; }
.gh-verify-note.is-skip .gh-verify-badge { background: #9ca3af; }

.gh-verify-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gh-verify-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.gh-verify-note.is-ok .gh-verify-eyebrow { color: #6366f1; }
.gh-verify-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    overflow-wrap: anywhere;
}
.gh-verify-sub { font-size: 12px; color: #6b7280; }
.gh-verify-sub b { color: #2563eb; font-weight: 600; }

/* Failure / retry / skip links inside the .is-bad note — plain text, same red as the note. */
.gh-verify-note.is-bad a,
.gh-verify-note .gh-verify-mustfix {
    display: inline-block;
    margin-left: 6px;
    color: #b91c1c;
    text-decoration: underline;
    font-weight: 500;
}

.gh-verify-clear {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    text-decoration: none !important;
    font-size: 16px;
    line-height: 1;
}
.gh-verify-clear:hover { color: #6b7280; }

@media (max-width: 600px) {
    .gh-card { padding: 14px 10px 12px; margin: 0 -8px 8px; }
    .gh-card-eyebrow { margin: -14px -10px 14px; padding: 12px 10px; }
}
