
/* theme-overrides */
/* ============================================================
   MODULE: GC Theme Overrides
   Site-level theme customizations and design tokens.
   ============================================================ */

/* - Design Tokens - */
:root {
    /* Colors */
    /*  --gc-primary-color: #9a1b51; */
    /*   --gc-panel-light: rgb(249 250 251); */

    /* Sizes */
    /*   --gc-notch-width: 60px; */
    /*   --gc-notch-offset: -31px; */

    /* Animation */
    /*  --gc-transition: 0.6s ease-in-out; */
}

/* - Scrollbar - */

html {
    scroll-behavior: smooth;
}
html.js-smooth-off {
    scroll-behavior: auto !important;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gc-primary) transparent;
}

/* WebKit */
*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: var(--gc-primary);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--gc-primary);
}

/* - Layout - */

/* - Header - */

/* - Footer - */

/* - Forms - */

/* - Components - */

/* - Utilities - */

/* - States - */

/* - Responsive - */

/* wc-secure-export */
/* ============================================================
   MODULE: WC Secure Export
   My Account API Access page - scoped under #gc-export-user-wrap.
   ============================================================ */

/* - My Account nav icon - */

.woocommerce-MyAccount-navigation-link--gc-export-api a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: -5px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 0 0-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 0 0 0 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 0 0-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 0 0-11.3 0L363 475.3l-43-43a7.85 7.85 0 0 0-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 0 0 0 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 0 1-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 0 1-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

/* - Wrap - */

#gc-export-user-wrap {
    max-width: 760px;
    font-size: 14px;
}

#gc-export-user-wrap > h3 {
    font-size: 22px;
    margin: 0 0 6px;
    font-weight: 700;
}

#gc-export-user-wrap > .gc-eu-lead {
    color: #666;
    margin: 0 0 24px;
}

/* - Tooltip - */

.gc-eu-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #d0d3d9;
    color: #555;
    font-size: 9px;
    font-weight: 700;
    font-style: normal;
    cursor: default;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
}

#gc-eu-tip {
    display: none;
    position: fixed;
    background: #1a1a2e;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    white-space: normal;
    max-width: 240px;
    padding: 6px 10px;
    border-radius: 5px;
    pointer-events: none;
    z-index: 99999;
}

/* - Section header - */

.gc-eu-section {
    margin: 32px 0 16px;
}

.gc-eu-section-header {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
}

.gc-eu-section-header svg {
    color: #aaa;
    flex-shrink: 0;
}

/* - Cards - */

.gc-eu-card {
    border: 1px solid #e0e3e8;
    border-radius: 8px;
    background: #fff;
    margin-bottom: 16px;
    overflow: hidden;
}

.gc-eu-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    background: #f8f9fb;
    border-bottom: 1px solid #e0e3e8;
}

.gc-eu-card-header svg {
    flex-shrink: 0;
    color: #555;
}

.gc-eu-card-header h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #444;
}

.gc-eu-card-body {
    padding: 18px 20px;
}

/* - Info grid (connection details) - */

.gc-eu-info-grid {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0;
}

.gc-eu-info-grid .gc-eu-label {
    font-size: 11px;
    font-weight: 600;
    color: #9aa0ab;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 11px 16px 11px 0;
    border-bottom: 1px solid #f1f3f6;
    display: flex;
    align-items: center;
}

.gc-eu-info-grid .gc-eu-val {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 0;
    border-bottom: 1px solid #f1f3f6;
}

.gc-eu-info-grid .gc-eu-label:last-of-type,
.gc-eu-info-grid .gc-eu-val:last-of-type {
    border-bottom: none;
}

.gc-eu-info-grid code {
    font-size: 12px;
    background: #f4f6f9;
    padding: 3px 9px;
    border-radius: 5px;
    color: #d63031;
    font-family: 'SFMono-Regular', Consolas, monospace;
    word-break: break-all;
    border: 1px solid #eaecf0;
}

/* - Copy inline button - */

.gc-eu-copy-inline {
    background: #fff;
    border: 1px solid #dde1e8;
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #3d4451;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    letter-spacing: 0.01em;
}

.gc-eu-copy-inline:hover  { background: #f4f6f9; border-color: #c8cdd8; color: #333; }
.gc-eu-copy-inline.copied { color: #1a7a3c; border-color: #7ad03a; background: #f0faf3; }

/* - Key status row - */

.gc-eu-key-status-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-bottom: 1px solid #f1f3f6;
    margin-bottom: 18px;
}

.gc-eu-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 9px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.gc-eu-badge.active  { background: #edf7ee; color: #1e7e34; border: 1px solid #c3e6cb; }
.gc-eu-badge.revoked { background: #fdf0f0; color: #c0392b; border: 1px solid #f5c6cb; }
.gc-eu-badge.none    { background: #f4f6f9; color: #9aa0ab; border: 1px solid #e0e3e8; }

.gc-eu-badge .gc-eu-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.gc-eu-key-meta {
    font-size: 12.5px;
    color: #9aa0ab;
    display: flex;
    align-items: center;
    gap: 4px;
}

.gc-eu-key-meta strong {
    color: #3d4451;
    font-weight: 600;
}

/* - One-time key reveal box - */

#gc-export-user-key-reveal {
    background: linear-gradient(135deg, #f0faf3 0%, #e8f5e9 100%);
    border: 1px solid #b2dfdb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.gc-eu-reveal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 13px;
    color: #1b5e20;
    margin-bottom: 5px;
    letter-spacing: 0.01em;
}

.gc-eu-reveal-warning {
    font-size: 12px;
    color: #4a7c59;
    margin: 0 0 14px;
    line-height: 1.5;
}

.gc-eu-key-copy-row {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #2e7d32;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.1);
}

#gc-export-user-key-value {
    flex: 1;
    padding: 10px 14px;
    font-size: 12.5px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    color: #1a1a1a;
    background: transparent;
    border: none;
    outline: none;
    cursor: text;
    min-width: 0;
    letter-spacing: 0.03em;
}

#gc-eu-copy-key-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 18px;
    background: #2e7d32;
    color: #fff;
    border: none;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

#gc-eu-copy-key-btn:hover  { background: #256427; }
#gc-eu-copy-key-btn.copied { background: #388e3c; }

#gc-eu-key-done-btn {
    background: transparent;
    border: 1px solid #a5d6a7;
    border-radius: 6px;
    padding: 7px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #2e7d32;
    cursor: pointer;
    transition: all 0.15s;
    letter-spacing: 0.01em;
}

#gc-eu-key-done-btn:hover {
    background: #e8f5e9;
    border-color: #66bb6a;
}

/* - Action buttons - */

.gc-eu-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gc-eu-actions .button {
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.15s !important;
    letter-spacing: 0.01em;
}

.gc-eu-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12) !important;
}

/* - Field checkboxes - */

.gc-eu-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

#gc-export-user-wrap .gc-eu-fields-grid label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 12px 5px 8px;
    font-size: 12.5px;
    background: #f4f6f9;
    border: 1px solid #e4e7ed;
    border-radius: 6px;
    transition: all 0.15s;
    color: #4a5568;
    margin-bottom: 0;
}

#gc-export-user-wrap .gc-eu-fields-grid label:hover               { background: #edf2ff; border-color: #c5d3f7; color: #2d3748; }
#gc-export-user-wrap .gc-eu-fields-grid label:has(input:checked)  { background: #edf2ff; border-color: #a4c0f4; color: #1a56db; }

.gc-eu-fields-grid input[type=checkbox] {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.gc-eu-fields-grid code {
    font-size: 11.5px;
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-family: 'SFMono-Regular', Consolas, monospace;
}

/* - Query parameters table - */

.gc-eu-params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 18px;
}

.gc-eu-params-table th {
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9aa0ab;
    padding: 0 16px 10px 0;
    border-top: none !important;
    border-bottom: 2px solid #f1f3f6;
}

.gc-eu-params-table td {
    padding: 10px 16px 10px 0;
    border-bottom: 1px solid #f4f6f9;
    vertical-align: middle;
    color: #3d4451;
}

.gc-eu-params-table tr:last-child td {
    border-bottom: none;
}

.gc-eu-params-table code {
    font-size: 12px;
    background: #f4f6f9;
    padding: 2px 8px;
    border-radius: 4px;
    color: #d63031;
    font-family: 'SFMono-Regular', Consolas, monospace;
    border: 1px solid #eaecf0;
}

.gc-eu-type {
    display: inline-block;
    font-size: 10.5px;
    background: #edf2ff;
    color: #3b5bdb;
    padding: 2px 9px;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid #c5d3f7;
}

/* - Example request - */

.gc-eu-example-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9aa0ab;
    margin: 0 0 8px !important;
}

#gc-export-user-wrap .gc-eu-card-body .gc-eu-example-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f4f6f9;
    border: 1px solid #e4e7ed;
    border-radius: 7px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.gc-eu-example-row code,
.gc-eu-example-row pre {
    flex: 1;
    font-size: 12px;
    background: none;
    color: #4a5568;
    word-break: break-all;
    padding: 0;
    margin: 0;
    font-family: 'SFMono-Regular', Consolas, monospace;
    border: none;
}

/* - JSON response preview - */

.gc-eu-json-preview {
    background: #f8f9fb;
    border: 1px solid #e0e3e8;
    border-radius: 5px;
    padding: 10px 14px;
    font-size: 12px;
    font-family: monospace;
    color: #333;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 180px;
    overflow-y: auto;
    margin: 0;
}

/* - Save feedback - */

#gc-export-user-fields-msg {
    margin-left: 10px;
    font-size: 13px;
    color: #2e7d32;
    display: none;
}

/* - Toast notifications - */

.gc-eu-toast {
    display: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 12px;
}

.gc-eu-toast--info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }
.gc-eu-toast--error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.gc-eu-toast--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* - Confirm modal - */

.gc-eu-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-eu-modal {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.gc-eu-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.gc-eu-modal h5 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.gc-eu-modal p {
    margin: 0 0 24px;
    font-size: 13.5px;
    color: #666;
    line-height: 1.5;
}

.gc-eu-modal-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.gc-eu-modal-btns .button {
    min-width: 110px;
    font-size: 13px;
    padding: 8px 20px;
    height: auto;
}

/* - Mobile - */

@media (max-width: 600px) {
    #gc-export-user-wrap {
        font-size: 13px;
    }

    .gc-eu-card-body {
        padding: 14px;
    }

    .gc-eu-info-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .gc-eu-info-grid .gc-eu-label {
        padding: 10px 0 3px;
        border-bottom: none;
        font-size: 10px;
    }

    .gc-eu-info-grid .gc-eu-val {
        padding: 0 0 12px;
        border-bottom: 1px solid #f1f3f6;
        flex-wrap: wrap;
        gap: 6px;
    }

    .gc-eu-info-grid .gc-eu-val:last-of-type {
        border-bottom: none;
        padding-bottom: 0;
    }

    .gc-eu-info-grid code {
        word-break: break-all;
        font-size: 11.5px;
    }

    .gc-eu-params-table thead th:nth-child(3),
    .gc-eu-params-table tbody td:nth-child(3) {
        display: none;
    }

    .gc-eu-params-table {
        font-size: 12px;
    }

    .gc-eu-params-table th {
        padding: 0 8px 8px 0;
    }

    .gc-eu-params-table td {
        padding: 8px 8px 8px 0;
        vertical-align: top;
    }

    .gc-eu-params-table td:last-child {
        font-size: 11.5px;
        color: #6b7280;
    }

    .gc-eu-example-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .gc-eu-example-row code,
    .gc-eu-example-row pre {
        font-size: 11px;
        word-break: break-all;
    }

    .gc-eu-example-row .gc-eu-copy-inline {
        align-self: flex-end;
    }

    .gc-eu-key-status-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 12px 0;
    }

    .gc-eu-key-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .gc-eu-key-copy-row {
        flex-direction: column;
    }

    #gc-export-user-key-value {
        padding: 10px 12px;
        font-size: 11.5px;
    }

    #gc-eu-copy-key-btn {
        padding: 10px 16px;
        justify-content: center;
    }

    .gc-eu-fields-grid {
        gap: 5px;
    }

    .gc-eu-fields-grid label {
        font-size: 12px;
        padding: 4px 10px 4px 7px;
    }

    .gc-eu-actions {
        flex-direction: column;
    }

    .gc-eu-actions .button {
        width: 100%;
        text-align: center;
    }
}
