/**
 * Frontend styles - Product Activation form and the My Account activation list
 *
 * 2.6.0 (2026-10-02): rebuilt in the site's current design language (light cards,
 * 1px #e2e8f0 borders, pill buttons, soft-blue tiles, no hover lifts). Markup and
 * script hooks are unchanged; every class the template and gplpa-form.js use is
 * still styled here.
 *
 * @package GPL Times Product Activation
 * @version 2.6.0
 */

/* =====================================================
   TOKENS & BASE
   ===================================================== */
.gplpa-activation-form-container,
.gplpa-login-message,
.gplt-license-activation-page {
    --gplpa-ink: #0f1b2a;
    --gplpa-ink-2: #46556a;
    --gplpa-mute: #6b7a8f;
    --gplpa-line: #e2e8f0;
    --gplpa-line-2: #d5e0ea;
    --gplpa-tint: #f2f7fb;
    --gplpa-tint-2: #eef6fb;
    --gplpa-main: #1a8fc4;
    --gplpa-main-2: #0d7ab0;
    --gplpa-ring: rgba(26, 143, 196, 0.16);
    --gplpa-good: #16a34a;
    --gplpa-good-ink: #14532d;
    --gplpa-good-tint: #effaf3;
    --gplpa-good-line: #c6ead3;
    --gplpa-bad: #dc2626;
    --gplpa-bad-ink: #8f1d1d;
    --gplpa-bad-tint: #fef4f3;
    --gplpa-bad-line: #f7c9c3;
    --gplpa-radius: 16px;
    --gplpa-radius-sm: 12px;
    /* names older rules and the My Account plugin may still read */
    --gplpa-text: var(--gplpa-ink);
    --gplpa-text-light: var(--gplpa-mute);
    --gplpa-border: var(--gplpa-line);
    --gplpa-soft-light: var(--gplpa-tint-2);
}

.gplpa-activation-form-container {
    max-width: none;
    margin: 0;
    color: var(--gplpa-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
}

.gplpa-activation-form-container *,
.gplpa-activation-form-container *::before,
.gplpa-activation-form-container *::after {
    box-sizing: border-box;
}

.gplpa-activation-form-container :where(h2, h3, p, ul) {
    margin: 0;
}

.gplpa-activation-form-container :where(h2, h3) {
    color: var(--gplpa-ink);
    text-transform: none;
    letter-spacing: -0.01em;
}

/* =====================================================
   STATUS NOTICES (above the form)
   ===================================================== */
.gplpa-membership-notice,
.gplpa-purchased-products-notice,
.gplpa-active-membership-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 14px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid var(--gplpa-line);
    border-radius: var(--gplpa-radius);
    background: var(--gplpa-tint);
    text-align: left;
}

.gplpa-notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
}

.gplpa-notice-icon svg {
    width: 19px;
    height: 19px;
}

.gplpa-membership-notice p,
.gplpa-purchased-products-notice p,
.gplpa-active-membership-notice p {
    margin: 0;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

/* Active membership: one green line */
.gplpa-active-membership-notice {
    border-color: var(--gplpa-good-line);
    background: var(--gplpa-good-tint);
}

.gplpa-active-membership-notice p {
    flex: 1 1 260px;
    color: var(--gplpa-good-ink);
}

.gplpa-active-membership-notice .gplpa-notice-icon svg {
    color: var(--gplpa-good);
    stroke: var(--gplpa-good);
}

/* Some products bought, no membership: icon beside two lines */
.gplpa-purchased-products-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
}

.gplpa-purchased-products-notice .gplpa-notice-icon {
    grid-row: 1 / span 2;
}

.gplpa-purchased-products-notice .gplpa-notice-icon svg {
    color: var(--gplpa-main);
    stroke: var(--gplpa-main);
}

.gplpa-purchased-products-notice p {
    color: var(--gplpa-ink);
}

.gplpa-purchased-products-notice p + p {
    color: var(--gplpa-ink-2);
    font-weight: 500;
}

.gplpa-purchased-products-notice a {
    color: var(--gplpa-main-2);
    font-weight: 700;
    text-decoration: none;
}

.gplpa-purchased-products-notice a:hover {
    color: var(--gplpa-main);
    text-decoration: underline;
}

/* Nothing eligible: message and a button on one row */
.gplpa-membership-notice {
    border-color: var(--gplpa-bad-line);
    background: var(--gplpa-bad-tint);
}

.gplpa-membership-notice p {
    flex: 1 1 260px;
    color: var(--gplpa-bad-ink);
}

.gplpa-membership-notice .gplpa-notice-icon svg {
    color: var(--gplpa-bad);
    stroke: var(--gplpa-bad);
}

/* =====================================================
   FORM CARD
   ===================================================== */
.gplpa-activation-form {
    margin: 0 0 8px;
    padding: 0 28px 28px;
    border: 1px solid var(--gplpa-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 27, 42, 0.04), 0 18px 40px -28px rgba(15, 27, 42, 0.22);
}

/* =====================================================
   STEPPER (card header)
   ===================================================== */
.gplpa-steps {
    display: flex;
    align-items: center;
    margin: 0 -28px 26px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--gplpa-line);
    border-radius: 20px 20px 0 0;
    background: #fafcfe;
}

.gplpa-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.gplpa-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--gplpa-line-2);
    border-radius: 50%;
    background: #fff;
    color: var(--gplpa-mute);
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gplpa-step-label {
    color: var(--gplpa-mute);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.gplpa-step.active .gplpa-step-number {
    border-color: var(--gplpa-main);
    background: var(--gplpa-tint-2);
    color: var(--gplpa-main-2);
    box-shadow: 0 0 0 4px var(--gplpa-ring);
}

.gplpa-step.active .gplpa-step-label {
    color: var(--gplpa-ink);
}

.gplpa-step.completed .gplpa-step-number {
    border-color: var(--gplpa-main);
    background: var(--gplpa-main) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
    box-shadow: none;
}

.gplpa-step.completed .gplpa-step-number span {
    visibility: hidden;
}

.gplpa-step.completed .gplpa-step-label {
    color: var(--gplpa-ink-2);
}

.gplpa-step-divider {
    flex: 1 1 auto;
    min-width: 20px;
    height: 2px;
    margin: 0 16px;
    border-radius: 2px;
    background: var(--gplpa-line);
    position: relative;
    overflow: hidden;
}

.gplpa-step-divider.completed::after,
.gplpa-step.completed + .gplpa-step-divider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gplpa-main);
    transform-origin: left center;
    animation: gplpa-fill 0.4s ease both;
}

@keyframes gplpa-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* =====================================================
   STEP CONTENT
   ===================================================== */
.gplpa-step-content {
    display: none;
}

.gplpa-step-content.active {
    display: block;
    animation: gplpa-in 0.25s ease both;
}

@keyframes gplpa-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.gplpa-step-content h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.gplpa-step-content > p {
    max-width: 70ch;
    margin: 0 0 20px;
    color: var(--gplpa-ink-2);
    font-size: 15px;
}

/* =====================================================
   CHECKBOXES (product picker + backup confirmation)
   ===================================================== */
.gplpa-activation-form-container input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #b8c7d6;
    border-radius: 6px;
    background: #fff center / 14px no-repeat;
    box-shadow: none;
    font-size: 0;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.gplpa-activation-form-container input[type="checkbox"]:checked {
    border-color: var(--gplpa-main);
    background-color: var(--gplpa-main);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.gplpa-activation-form-container input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--gplpa-main);
    outline-offset: 2px;
}

.gplpa-activation-form-container input[type="checkbox"]:disabled {
    border-color: var(--gplpa-line-2);
    background-color: #f1f5f9;
    cursor: not-allowed;
}

/* =====================================================
   PRODUCT GRID
   ===================================================== */
.gplpa-products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 20px;
}

.gplpa-products-grid > p {
    grid-column: 1 / -1;
    color: var(--gplpa-mute);
}

.gplpa-product-card {
    position: relative;
    border: 1px solid var(--gplpa-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.gplpa-product-card:hover:not(.disabled) {
    border-color: #a9cfe6;
}

.gplpa-product-card:has(input:checked) {
    border-color: var(--gplpa-main);
    background: #f4f9fd;
    box-shadow: inset 0 0 0 1px var(--gplpa-main);
}

.gplpa-product-card:has(input:focus-visible) {
    box-shadow: inset 0 0 0 1px var(--gplpa-main), 0 0 0 4px var(--gplpa-ring);
}

/* Bought this product (no membership) */
.gplpa-product-card.purchased-access {
    border-color: var(--gplpa-good-line);
    background: var(--gplpa-good-tint);
}

.gplpa-product-card.purchased-access:hover {
    border-color: #8fd3aa;
}

/* Not available to this customer */
.gplpa-product-card.disabled {
    border-color: var(--gplpa-line);
    background: #f8fafc;
    opacity: 0.6;
    cursor: not-allowed;
}

.gplpa-product-card.disabled .gplpa-product-label {
    cursor: not-allowed;
}

.gplpa-product-card.disabled .gplpa-product-price {
    background: #eef2f6;
    color: var(--gplpa-mute);
}

.gplpa-activation-form-container .gplpa-product-label {
    display: block;
    width: 100%;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.gplpa-card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 56px;
    padding: 12px 12px 12px 14px;
}

.gplpa-product-info {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 1 1 auto;
    min-width: 0;
}

.gplpa-product-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--gplpa-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.gplpa-product-price {
    flex: none;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--gplpa-tint-2);
    color: var(--gplpa-main-2);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.gplpa-product-card:has(input:checked) .gplpa-product-price {
    background: var(--gplpa-main);
    color: #fff;
}

/* =====================================================
   PRODUCT NOTE (shown under the grid for some products)
   ===================================================== */
.gplpa-selected-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid var(--gplpa-bad-line);
    border-radius: var(--gplpa-radius-sm);
    background: var(--gplpa-bad-tint);
    text-align: left;
}

.gplpa-selected-note-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gplpa-selected-note-icon {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--gplpa-bad);
}

.gplpa-selected-note-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.gplpa-selected-note-content {
    flex: 1;
    min-width: 0;
}

.gplpa-selected-note-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}

.gplpa-selected-note-block + .gplpa-selected-note-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gplpa-bad-line);
}

.gplpa-selected-note-text {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
    color: var(--gplpa-bad-ink);
    font-size: 14px;
    line-height: 1.55;
}

.gplpa-selected-note-content a.gplpa-note-link-btn {
    display: inline-flex;
    align-items: center;
    flex: none;
    gap: 6px;
    height: 38px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 50px;
    background: var(--gplpa-bad);
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.gplpa-selected-note-content a.gplpa-note-link-btn:hover {
    background: #b91c1c;
    color: #fff !important;
}

.gplpa-selected-note-content a.gplpa-note-link-btn:focus-visible {
    outline: 2px solid var(--gplpa-bad);
    outline-offset: 2px;
}

/* =====================================================
   TOTAL (step 1)
   ===================================================== */
.gplpa-total-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid #dbe8f2;
    border-radius: var(--gplpa-radius-sm);
    background: var(--gplpa-tint);
}

.gplpa-total-label {
    color: var(--gplpa-ink-2);
    font-size: 15px;
    font-weight: 600;
}

.gplpa-total-price,
.gplpa-summary-price {
    color: var(--gplpa-ink);
    font-family: var(--gplt-font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* =====================================================
   FIELDS (step 2)
   ===================================================== */
.gplpa-form-field {
    margin: 0 0 16px;
}

.gplpa-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.gplpa-form-column {
    min-width: 0;
    padding: 0;
}

.gplpa-activation-form-container .gplpa-form-field > label,
.gplpa-activation-form-container .gplpa-form-column > label {
    display: block;
    margin: 0 0 6px;
    color: var(--gplpa-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
}

.gplpa-activation-form-container .gplpa-form-field input:not([type="checkbox"]),
.gplpa-activation-form-container .gplpa-form-column input {
    display: block;
    width: 100%;
    max-width: none;
    height: 46px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--gplpa-line-2);
    border-radius: var(--gplpa-radius-sm);
    background: #fff;
    box-shadow: none;
    color: var(--gplpa-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.gplpa-activation-form-container .gplpa-form-field input::placeholder,
.gplpa-activation-form-container .gplpa-form-column input::placeholder {
    color: #98a6b7;
    opacity: 1;
}

.gplpa-activation-form-container .gplpa-form-field input:not([type="checkbox"]):focus,
.gplpa-activation-form-container .gplpa-form-column input:focus {
    border-color: var(--gplpa-main);
    background: #fff;
    box-shadow: 0 0 0 4px var(--gplpa-ring);
    outline: none;
}

.gplpa-field-description {
    margin: 6px 0 0;
    color: var(--gplpa-mute);
    font-size: 13px;
    line-height: 1.5;
}

.gplpa-activation-form-container .required {
    color: var(--gplpa-bad);
}

/* =====================================================
   LOGIN METHODS (two cards, OR between them)
   ===================================================== */
.gplpa-login-columns {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 0 0 18px;
}

.gplpa-login-column {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    padding: 18px 20px 20px;
    border: 1px solid var(--gplpa-line);
    border-radius: var(--gplpa-radius);
    background: #fff;
    transition: opacity 0.2s ease, border-color 0.15s ease;
}

.gplpa-login-column > :last-child {
    margin-bottom: 0;
}

.gplpa-login-column:focus-within {
    border-color: #a9cfe6;
}

.gplpa-login-column.gplpa-column-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.gplpa-login-column h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
    color: var(--gplpa-ink);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.gplpa-login-column:has(.gplpa-clear-method-btn) h3 {
    padding-right: 118px;
}

.gplpa-login-column h3 svg {
    flex: none;
    width: 34px;
    height: 34px;
    padding: 8px;
    border-radius: 10px;
    background: var(--gplpa-tint-2);
    color: var(--gplpa-main);
}

.gplpa-login-or-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    align-self: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gplpa-line);
    border-radius: 50%;
    background: #fff;
    color: var(--gplpa-mute);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* "Clear & Switch" appears in the column being used */
.gplpa-activation-form-container .gplpa-clear-method-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    height: 30px;
    min-height: 0;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 50px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #c9dbe8;
    color: var(--gplpa-main-2);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
    pointer-events: auto;
    transition: box-shadow 0.15s ease, color 0.15s ease;
}

.gplpa-activation-form-container .gplpa-clear-method-btn:hover {
    box-shadow: inset 0 0 0 1px var(--gplpa-main);
    color: var(--gplpa-main);
}

/* =====================================================
   ORDER SUMMARY (step 2)
   ===================================================== */
.gplpa-order-summary {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #dbe8f2;
    border-radius: var(--gplpa-radius);
    background: var(--gplpa-tint);
}

.gplpa-order-summary h3 {
    margin: 0 0 6px;
    color: var(--gplpa-ink);
    font-size: 15px;
    font-weight: 700;
}

.gplpa-summary-products {
    margin: 0;
}

.gplpa-summary-product-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px dashed #cddbe7;
    color: var(--gplpa-ink-2);
    font-size: 14.5px;
}

.gplpa-summary-product-price {
    color: var(--gplpa-ink);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.gplpa-summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 12px 0 0;
}

.gplpa-summary-label {
    color: var(--gplpa-ink-2);
    font-size: 15px;
    font-weight: 600;
}

.gplpa-summary-price {
    font-size: 22px;
}

/* =====================================================
   ACTIONS & BUTTONS
   ===================================================== */
.gplpa-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 20px 0 0;
}

.gplpa-form-actions-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.gplpa-activation-form-container .gplpa-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 48px;
    min-height: 0;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(180deg, #23a3dc, #1a8fc4);
    box-shadow: 0 12px 26px -14px rgba(26, 143, 196, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.gplpa-activation-form-container .gplpa-button:hover {
    background: linear-gradient(180deg, #2aaee8, #1c97cf);
    color: #fff;
}

.gplpa-activation-form-container .gplpa-button:focus-visible {
    outline: 2px solid var(--gplpa-main);
    outline-offset: 3px;
}

.gplpa-activation-form-container .gplpa-button svg {
    flex: none;
    width: 17px;
    height: 17px;
}

/* Back: ghost pill */
.gplpa-activation-form-container .gplpa-back-btn,
.gplpa-activation-form-container .gplpa-back-btn:hover {
    background: #fff;
    box-shadow: inset 0 0 0 1px #c9dbe8;
    color: var(--gplpa-ink);
}

.gplpa-activation-form-container .gplpa-back-btn:hover {
    box-shadow: inset 0 0 0 1px var(--gplpa-main);
    color: var(--gplpa-main-2);
}

/* "View Membership Plans" inside the red notice */
.gplpa-activation-form-container .gplpa-membership-notice .gplpa-button {
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.gplpa-activation-form-container .gplpa-button[disabled],
.gplpa-activation-form-container .gplpa-button-disabled {
    opacity: 0.45;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Backup confirmation beside "Proceed to Payment" */
.gplpa-activation-form-container .gplpa-form-field-checkbox.gplpa-backup-highlight {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #f1d58f;
    border-radius: var(--gplpa-radius-sm);
    background: #fff9e8;
    box-shadow: none;
}

.gplpa-activation-form-container .gplpa-form-field-checkbox .gplpa-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    color: #5b4405;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

.gplpa-activation-form-container .gplpa-form-field-checkbox .gplpa-checkbox-label span {
    flex: 1;
    min-width: 0;
}

/* =====================================================
   STEP 3 (after payment)
   ===================================================== */
.gplpa-success-message {
    max-width: 640px;
    margin: 0 auto;
    padding: 16px 0 8px;
    text-align: center;
}

.gplpa-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 18px;
    background: var(--gplpa-good-tint);
}

.gplpa-success-icon svg {
    width: 32px;
    height: 32px;
    color: var(--gplpa-good);
    stroke: var(--gplpa-good);
}

.gplpa-success-message h2 {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
}

.gplpa-success-message > p {
    margin: 0 auto 6px;
    color: var(--gplpa-ink-2);
    font-size: 15.5px;
}

.gplpa-order-details {
    margin: 22px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--gplpa-line);
    border-radius: var(--gplpa-radius);
    background: var(--gplpa-tint);
    text-align: left;
}

.gplpa-order-details h3 {
    margin: 0 0 8px;
    padding: 0 0 10px;
    border-bottom: 1px solid #dbe8f2;
    font-size: 15px;
    font-weight: 700;
}

.gplpa-order-details p {
    margin: 6px 0;
    color: var(--gplpa-ink-2);
    font-size: 14.5px;
}

.gplpa-order-details strong {
    color: var(--gplpa-ink);
}

.gplpa-order-details ul {
    margin: 4px 0 0;
    padding-left: 18px;
}

.gplpa-order-details li {
    margin: 2px 0;
    color: var(--gplpa-ink-2);
    font-size: 14px;
}

/* =====================================================
   URL CHECKS & DISABLED FIELDS
   ===================================================== */
.gplpa-activation-form-container input.gplpa-url-invalid {
    border-color: var(--gplpa-bad) !important;
    background-color: var(--gplpa-bad-tint) !important;
}

.gplpa-activation-form-container input.gplpa-url-invalid:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14) !important;
}

.gplpa-activation-form-container input.gplpa-url-valid {
    border-color: var(--gplpa-good) !important;
}

.gplpa-activation-form-container input.gplpa-url-valid:focus {
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.14) !important;
}

.gplpa-url-error {
    display: block;
    margin-top: 6px;
    color: var(--gplpa-bad);
    font-size: 13px;
    line-height: 1.45;
}

.gplpa-activation-form-container input.gplpa-field-disabled {
    background-color: #f8fafc !important;
    color: var(--gplpa-mute) !important;
    cursor: not-allowed !important;
}

/* =====================================================
   ERROR & LOGGED-OUT MESSAGES
   ===================================================== */
.gplpa-error {
    padding: 14px 16px;
    border: 1px solid #f7c9c3;
    border-radius: 16px;
    background: #fef4f3;
    color: #8f1d1d;
    font-weight: 600;
}

.gplpa-login-message {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 1px solid #dbe8f2;
    border-radius: 16px;
    background: #f2f7fb;
    color: #0f1b2a;
    font-size: 15.5px;
    line-height: 1.5;
}

.gplpa-login-message svg {
    flex: none;
    width: 38px;
    height: 38px;
    padding: 9px;
    border-radius: 10px;
    background: #fff;
    stroke: #1a8fc4;
}

.gplpa-login-message a {
    color: #0d7ab0;
    text-decoration: none;
}

.gplpa-login-message a:hover {
    color: #1a8fc4;
    text-decoration: underline;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
    .gplpa-products-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 849px) {
    .gplpa-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gplpa-login-columns {
        flex-direction: column;
        gap: 10px;
    }

    .gplpa-login-or-badge {
        margin: -2px 0;
    }
}

@media (max-width: 640px) {
    .gplpa-activation-form {
        padding: 0 16px 18px;
        border-radius: 18px;
    }

    .gplpa-steps {
        margin: 0 -16px 20px;
        padding: 14px 16px;
        border-radius: 18px 18px 0 0;
    }

    .gplpa-step-divider {
        margin: 0 10px;
    }

    /* only the current step keeps its label */
    .gplpa-step:not(.active) .gplpa-step-label {
        display: none;
    }

    .gplpa-step-content h2 {
        font-size: 20px;
    }

    .gplpa-step-content > p {
        font-size: 14.5px;
    }

    .gplpa-login-column {
        padding: 16px;
    }

    .gplpa-login-column:has(.gplpa-clear-method-btn) h3 {
        padding-right: 0;
        margin-bottom: 10px;
    }

    .gplpa-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .gplpa-activation-form-container .gplpa-clear-method-btn {
        position: static;
        margin: 0 0 14px;
    }

    .gplpa-products-grid {
        gap: 8px;
    }

    .gplpa-card-content {
        min-height: 52px;
        padding: 10px 10px 10px 13px;
    }

    .gplpa-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .gplpa-form-actions > span:empty {
        display: none;
    }

    .gplpa-form-actions-right {
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
    }

    .gplpa-activation-form-container .gplpa-button {
        width: 100%;
    }

    .gplpa-total-price {
        font-size: 22px;
    }

    .gplpa-membership-notice,
    .gplpa-purchased-products-notice,
    .gplpa-active-membership-notice {
        padding: 12px 14px;
    }

    .gplpa-activation-form-container .gplpa-membership-notice .gplpa-button {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .gplpa-products-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gplpa-step-content.active,
    .gplpa-step-divider.completed::after,
    .gplpa-step.completed + .gplpa-step-divider::after {
        animation: none;
    }

    .gplpa-activation-form-container *,
    .gplpa-login-message * {
        transition: none !important;
    }
}

/* =====================================================
   MY ACCOUNT > LICENSE ACTIVATION (template lives in my-account-gpltimes)
   ===================================================== */

/* 2.6.1: the empty state is now the shared My Account card (my-account-gpltimes 40.26.0), so the
   flex centring it needed, and the rule that undid it for the orders list, are gone. */

/* Header button ("Activate More Products") */
.gplt-license-activation-page .gplt-header-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    max-width: none;
    height: 46px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 50px;
    background: linear-gradient(180deg, #23a3dc, #1a8fc4);
    box-shadow: 0 12px 26px -14px rgba(26, 143, 196, 1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    color: #fff !important;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.gplt-license-activation-page .gplt-header-action-btn:hover {
    background: linear-gradient(180deg, #2aaee8, #1c97cf);
    color: #fff !important;
}

.gplt-license-activation-page .gplt-header-action-btn svg {
    flex: none;
    width: 17px;
    height: 17px;
    margin: 0;
    stroke: currentColor;
    fill: none;
}

/* Orders list */
.gplt-activation-orders {
    overflow-x: auto;
    border: 1px solid var(--gplpa-line, #e2e8f0);
    border-radius: 16px;
    background: #fff;
}

.gplt-license-activation-page .gplt-orders-table {
    width: 100%;
    min-width: 640px;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    box-shadow: none;
    font-size: 14.5px;
}

.gplt-license-activation-page .gplt-orders-table th,
.gplt-license-activation-page .gplt-orders-table td {
    white-space: nowrap;
}

/* Website takes the slack so Date never wraps */
.gplt-license-activation-page .gplt-orders-table th:nth-child(3),
.gplt-license-activation-page .gplt-orders-table td:nth-child(3) {
    width: 100%;
    min-width: 180px;
    white-space: normal;
    word-break: break-word;
}

.gplt-license-activation-page .gplt-orders-table thead th {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--gplpa-line);
    background: #f8fafc;
    color: var(--gplpa-mute);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.gplt-license-activation-page .gplt-orders-table tbody td {
    padding: 14px 16px;
    border: 0;
    border-bottom: 1px solid #edf1f5;
    background: transparent;
    color: var(--gplpa-ink);
    vertical-align: middle;
}

.gplt-license-activation-page .gplt-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

/* The whole row links to the order: the anchor sits in the Order cell and is
   stretched over the row with ::after, so it stays a real link (middle-click,
   ctrl-click and "open in new tab" all work). */
.gplt-license-activation-page .gplt-orders-table tbody tr.gplt-clickable-row {
    position: relative;
    cursor: pointer;
}

.gplt-license-activation-page .gplt-orders-table tbody tr:hover td {
    background: #f6fafd;
}

.gplt-license-activation-page .gplt-order-row-link {
    position: relative;
    z-index: 1;
    color: var(--gplpa-main-2);
    font-weight: 700;
    text-decoration: none;
}

.gplt-license-activation-page .gplt-order-row-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gplt-license-activation-page .gplt-clickable-row:hover .gplt-order-row-link {
    text-decoration: underline;
}

.gplt-license-activation-page .gplt-order-row-link:focus-visible {
    outline: 2px solid var(--gplpa-main);
    outline-offset: 2px;
}

.gplt-license-activation-page .gplt-product-names {
    max-width: 220px;
    overflow: hidden;
    color: var(--gplpa-ink-2);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gplt-license-activation-page .gplt-no-products {
    color: var(--gplpa-mute);
    font-style: italic;
}

/* Status chips */
.gplt-license-activation-page .gplt-order-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 11px;
    border-radius: 50px;
    background: #eef2f6;
    color: #475569;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.gplt-license-activation-page .gplt-order-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.gplt-license-activation-page .status-activated,
.gplt-license-activation-page .status-completed {
    background: #e8f7ee;
    color: #15803d;
}

.gplt-license-activation-page .status-not-activated,
.gplt-license-activation-page .status-pending {
    background: #fff4e0;
    color: #b45309;
}

.gplt-license-activation-page .status-processing {
    background: #e8f3fb;
    color: #0d7ab0;
}

.gplt-license-activation-page .status-on-hold {
    background: #eef2f6;
    color: #475569;
}

.gplt-license-activation-page .status-cancelled,
.gplt-license-activation-page .status-failed {
    background: #fdecec;
    color: #b91c1c;
}

/* Older markup: per-row View button */
.gplt-license-activation-page .gplt-view-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 14px;
    border-radius: 50px;
    background: #fff;
    box-shadow: inset 0 0 0 1px #c9dbe8;
    color: var(--gplpa-main-2) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.gplt-license-activation-page .gplt-view-button:hover {
    box-shadow: inset 0 0 0 1px var(--gplpa-main);
}

.gplt-license-activation-page .gplt-view-button svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
}

@media (max-width: 576px) {
    /* rows become stacked cards: undo the desktop min-width and nowrap */
    .gplt-activation-orders {
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .gplt-license-activation-page .gplt-orders-table {
        min-width: 0;
    }

    .gplt-license-activation-page .gplt-orders-table th,
    .gplt-license-activation-page .gplt-orders-table td,
    .gplt-license-activation-page .gplt-orders-table td:nth-child(3) {
        width: auto;
        min-width: 0;
        white-space: normal;
        text-align: left;
    }

    .gplt-license-activation-page .gplt-orders-table thead {
        display: none;
    }

    .gplt-license-activation-page .gplt-orders-table tbody tr {
        display: block;
        margin: 0 0 10px;
        padding: 4px 14px;
        border: 1px solid var(--gplpa-line);
        border-radius: 14px;
        background: #fff;
    }

    .gplt-license-activation-page .gplt-orders-table tbody td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #edf1f5;
    }

    .gplt-license-activation-page .gplt-orders-table tbody tr:hover td {
        background: transparent;
    }

    .gplt-license-activation-page .gplt-orders-table tbody td:last-child {
        border-bottom: 0;
    }

    .gplt-license-activation-page .gplt-orders-table tbody td::before {
        content: attr(data-label);
        flex: none;
        color: var(--gplpa-mute);
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .gplt-license-activation-page .gplt-product-names {
        max-width: 60%;
        text-align: right;
    }

}
