.popup-container.myshop-profile-icon-picker-popup {
    width: min(28rem, calc(100vw - 2rem));
    max-width: min(28rem, calc(100vw - 2rem));
}

.popup-container.myshop-profile-icon-picker-popup .popup-content {
    padding-left: 1rem;
    padding-right: 1rem;
    max-height: calc(90vh - 120px) !important;
    overflow-y: auto;
}

.myshop-profile-icon-picker__top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.875rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.myshop-profile-icon-picker__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.myshop-profile-icon-picker__upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 10rem;
    padding: 0.625rem 1.125rem;
    border-radius: 0.625rem;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
}

.myshop-profile-icon-picker__upload-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
}

.myshop-profile-icon-picker__upload-btn:active {
    transform: translateY(1px);
}

.myshop-profile-icon-picker__upload-btn svg {
    color: #fff;
    stroke: #fff;
    flex-shrink: 0;
}

.myshop-profile-icon-picker__reset-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 8rem;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    border: 1px solid #fca5a5;
    background: #fff;
    color: #dc2626;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.myshop-profile-icon-picker__reset-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.myshop-profile-icon-picker__hint {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    color: #6b7280;
    line-height: 1.4;
}

.myshop-profile-icon-picker__custom-note {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.myshop-profile-icon-picker__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.25rem;
    justify-items: center;
}

@media (max-width: 420px) {
    .myshop-profile-icon-picker__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.myshop-profile-icon-picker__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 9999px;
    transition: transform 0.1s;
}

.myshop-profile-icon-picker__item:hover {
    transform: scale(1.04);
}

.myshop-profile-icon-picker__item:active {
    transform: scale(0.98);
}

.myshop-profile-icon-picker__preview {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    color: #64748b;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.myshop-profile-icon-picker__item:hover .myshop-profile-icon-picker__preview {
    border-color: #93c5fd;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.14);
}

.myshop-profile-icon-picker__item.is-active .myshop-profile-icon-picker__preview {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.myshop-profile-icon-picker__preview svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: #64748b;
}

.myshop-profile-icon-picker__empty {
    margin: 0;
    padding: 1.25rem 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}
