.ps-tcg-quickfill {
    --ps-tcg-accent: #6D4CFF;
    --ps-tcg-text: #101113;
    --ps-tcg-muted: #5f6368;
    --ps-tcg-border: #e5e7eb;
    --ps-tcg-bg: #ffffff;
    --ps-tcg-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(109, 76, 255, 0.08), rgba(0, 0, 0, 0.02));
    border: 1px solid var(--ps-tcg-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--ps-tcg-shadow);
    position: relative;
    margin-bottom: 20px;
}

.ps-tcg-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.ps-tcg-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ps-tcg-text);
}

.ps-tcg-subtitle {
    font-size: 13px;
    color: var(--ps-tcg-muted);
    max-width: 520px;
}

.ps-tcg-search {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
}

.ps-tcg-input-wrap {
    display: flex;
    gap: 10px;
    align-items: stretch;
    width: 100%;
}

.ps-tcg-quickfill .ps-tcg-input {
    flex: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 10px;
}

.ps-tcg-quickfill .ps-tcg-button {
    background: var(--ps-tcg-accent);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 18px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-tcg-quickfill .ps-tcg-button:hover,
.ps-tcg-quickfill .ps-tcg-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(109, 76, 255, 0.25);
}

.ps-tcg-helper {
    margin-top: 6px;
    font-size: 12px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-suggestions {
    display: none !important;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--ps-tcg-border);
    border-radius: 12px;
    padding: 6px;
    box-shadow: var(--ps-tcg-shadow);
    z-index: 50;
    max-height: 260px;
    overflow-y: auto;
}

.ps-tcg-suggestions.is-open {
    display: none !important;
}

.ps-tcg-suggestion {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
    color: var(--ps-tcg-text);
}

.ps-tcg-suggestion:hover,
.ps-tcg-suggestion:focus {
    background: rgba(109, 76, 255, 0.12);
}

.ps-tcg-results-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ps-tcg-text);
}

.ps-tcg-result-list {
    display: grid;
    gap: 10px;
}

.ps-tcg-result-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-load-more {
    margin-top: 10px;
    border: 1px solid var(--ps-tcg-border);
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    cursor: pointer;
}

.ps-tcg-load-more:hover,
.ps-tcg-load-more:focus {
    border-color: var(--ps-tcg-accent);
    color: var(--ps-tcg-accent);
}

.ps-tcg-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: stretch;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--ps-tcg-border);
    background: #ffffff;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ps-tcg-card:hover,
.ps-tcg-card:focus {
    border-color: var(--ps-tcg-accent);
    transform: translateY(-1px);
}

.ps-tcg-card-image {
    width: 64px;
    height: auto;
    border-radius: 10px;
}

.ps-tcg-card-details {
    display: grid;
    gap: 4px;
}

.ps-tcg-card-name {
    font-weight: 600;
    color: var(--ps-tcg-text);
}

.ps-tcg-card-meta {
    font-size: 12px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-empty {
    font-size: 13px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-loading {
    font-size: 13px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-info-card {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--ps-tcg-border);
    box-shadow: var(--ps-tcg-shadow);
}

.ps-tcg-info-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.ps-tcg-info-title {
    font-weight: 700;
    color: var(--ps-tcg-text);
}

.ps-tcg-info-subtitle {
    font-size: 13px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-info-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ps-tcg-copy {
    border: 1px solid var(--ps-tcg-border);
    background: #ffffff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
}

.ps-tcg-copy:hover,
.ps-tcg-copy:focus {
    border-color: var(--ps-tcg-accent);
    color: var(--ps-tcg-accent);
}

.ps-tcg-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.ps-tcg-info-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ps-tcg-muted);
}

.ps-tcg-info-value {
    font-weight: 600;
    color: var(--ps-tcg-text);
}

.ps-tcg-pricing {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--ps-tcg-border);
}

.ps-tcg-pricing-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.ps-tcg-pricing-grid {
    display: grid;
    gap: 6px;
}

.ps-tcg-pricing-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.ps-tcg-pricing-note {
    margin-top: 8px;
    font-size: 11px;
    color: var(--ps-tcg-muted);
}

.ps-tcg-toast {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #111111;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.ps-tcg-toast.is-visible {
    opacity: 1;
}

#ps-tcg-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    align-items: stretch;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.2s ease;
}

#ps-tcg-loader.is-hiding {
    opacity: 0;
}

.ps-tcg-loader-inner {
    text-align: center;
    color: var(--ps-tcg-text);
}

.ps-tcg-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(109, 76, 255, 0.2);
    border-top-color: var(--ps-tcg-accent);
    border-radius: 50%;
    animation: ps-tcg-spin 1s linear infinite;
    margin: 0 auto 12px;
}

@keyframes ps-tcg-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ps-price-box {
    border: 1px solid var(--ps-tcg-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #ffffff;
    box-shadow: var(--ps-tcg-shadow);
}

.ps-price-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.ps-price-disclaimer {
    font-size: 11px;
    color: var(--ps-tcg-muted);
    margin-bottom: 10px;
}

.ps-price-grid {
    display: grid;
    gap: 6px;
}

.ps-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.ps-price-updated {
    margin-top: 10px;
    font-size: 11px;
    color: var(--ps-tcg-muted);
}

@media (max-width: 768px) {
    .ps-tcg-input-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .ps-tcg-button {
        width: 100%;
    }

    .ps-tcg-info-header {
        flex-direction: column;
        align-items: flex-start;
    }
}





