/* =============================================================================
   HOME SHOP PAYOUT - 2026 Refresh
   Matches location-summary-bar style (glassmorphism floating pill bar)
   ============================================================================= */

.home-shop-payout-module {
    position: relative;
}

/* Summary Bar Style (matches location-summary-bar) */
.home-shop-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--theme-text-primary);
}

[data-bs-theme="dark"] .home-shop-card {
    background: transparent;
    box-shadow: none;
}

/* Logo/Icon - Compact circle to match summary bar icons */
.home-shop-card__logo {
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        var(--flipt-primary, #00a69c),
        var(--flipt-secondary, #0068ba));
}

.home-shop-card__logo img {
    max-width: 1.5rem;
    max-height: 1.5rem;
    object-fit: contain;
    border-radius: 50%;
}

.home-shop-card__logo-icon {
    font-size: 0.9rem;
    color: #fff;
}

/* Details - Inline text */
.home-shop-card__details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.home-shop-card__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--theme-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.home-shop-card__label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA section - Amount + Button */
.home-shop-card__cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-shop-card__amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--theme-text-primary);
    white-space: nowrap;
}

/* Action button - Compact pill with glow */
.home-shop-card__cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow:
        0 0 12px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.4),
        0 0 24px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.2);
    transition: box-shadow 0.2s ease;
}

.home-shop-card__cta-button:hover {
    box-shadow:
        0 0 16px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.5),
        0 0 32px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.3);
}

.home-shop-card__cta-button .btn-icon {
    font-size: 0.8rem;
}

.home-shop-card__cta-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.45);
}

.home-shop-card__cta-button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Change shop button - subtle icon button */
.home-shop-card__change-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid var(--theme-border-color, rgba(0, 0, 0, 0.1));
    border-radius: 50%;
    background: var(--theme-surface-2, #f1f5f9);
    color: var(--theme-text-secondary, #64748b);
    cursor: pointer;
    transition: all 0.2s ease;
}

.home-shop-card__change-btn:hover {
    background: var(--flipt-primary, #00a69c);
    color: #fff;
    border-color: transparent;
}

.home-shop-card__change-btn:focus-visible {
    outline: 2px solid rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.6);
    outline-offset: 2px;
}

.home-shop-card__change-btn i {
    font-size: 0.75rem;
}

[data-bs-theme="dark"] .home-shop-card__change-btn {
    background: var(--theme-surface-2, #334155);
    border-color: var(--theme-border-color, rgba(255, 255, 255, 0.1));
}

.home-shop-alert {
    border-radius: 12px;
}

.home-shop-drawer {
    z-index: 1050;
}

.home-shop-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
    padding-bottom: 2rem;
}

.home-shop-drawer__balance {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-shop-drawer__label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.17em;
    color: var(--theme-text-muted);
    margin-bottom: 0.35rem;
}

.home-shop-drawer__amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theme-text-primary);
}

.home-shop-drawer__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.home-shop-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.1);
    color: var(--theme-text-secondary);
    font-size: 0.75rem;
}

.home-shop-chip--minimum {
    background: rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.15);
    border: 1px solid rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.35);
    font-weight: 600;
}

.home-shop-chip--minimum i {
    color: rgba(var(--flipt-primary-rgb, 0, 166, 156), 1);
}

.home-shop-chip--bonus {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.home-shop-chip--bonus i {
    color: #ffc107;
}

[data-bs-theme="dark"] .home-shop-chip--bonus {
    background: rgba(255, 193, 7, 0.18);
}

[data-bs-theme="dark"] .home-shop-chip {
    background: rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.18);
    color: var(--theme-text-primary);
}

.home-shop-drawer__message {
    font-size: 0.85rem;
}

.home-shop-drawer .shop-option {
    border-radius: 12px;
    border: 1px solid var(--theme-border-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    background: var(--theme-surface-1);
}

.home-shop-drawer .shop-option:hover {
    border-color: rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.45);
    box-shadow: 0 12px 24px -18px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.75);
    transform: translateY(-1px);
}

.home-shop-drawer .shop-option.active {
    border-color: rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.65);
    box-shadow: 0 16px 32px -20px rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.85);
}

.home-shop-drawer .shop-option:focus-visible {
    outline: 3px solid rgba(var(--flipt-primary-rgb, 0, 166, 156), 0.8);
    outline-offset: 2px;
}

.home-shop-drawer .shop-meta {
    font-size: 0.8rem;
    color: var(--theme-text-muted);
}

.shop-logo-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--theme-surface-2);
    flex-shrink: 0;
}

.shop-logo-placeholder {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--theme-surface-2);
    color: var(--theme-text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.home-shop-drawer__form {
    margin-top: 1.25rem;
}

.home-shop-drawer__form .input-group {
    display: flex;
    flex-wrap: nowrap;
}

.home-shop-drawer__form .input-group .input-group-text {
    flex-shrink: 0;
}

.home-shop-drawer__form .input-group .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.home-shop-help {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1.25rem;
}

/* Mobile - Keep on one line */
@media (max-width: 680px) {
    .home-shop-card {
        flex-wrap: nowrap;
        padding: 0.25rem 0;
        gap: 0.5rem;
        align-items: center;
    }

    .home-shop-card__cta {
        flex-wrap: nowrap;
    }
}

@media (max-width: 480px) {
    .home-shop-card__logo {
        flex: 0 0 1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }

    .home-shop-card__logo img {
        max-width: 1.25rem;
        max-height: 1.25rem;
    }

    .home-shop-card__logo-icon {
        font-size: 0.7rem;
    }

    .home-shop-card__amount {
        font-size: 0.85rem;
    }

    .home-shop-card__cta-button {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }

    .home-shop-card__change-btn {
        width: 1.5rem;
        height: 1.5rem;
    }

    .home-shop-card__change-btn i {
        font-size: 0.6rem;
    }
}
