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

@media (min-width: 1025px) {
    .popup-container.myshop-banner-picker-popup {
        width: min(56rem, calc(100vw - 2rem));
        max-width: min(56rem, calc(100vw - 2rem));
    }
}

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

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

.myshop-banner-picker__upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 11rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.625rem;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-size: 0.9375rem;
    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-banner-picker__upload-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

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

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

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

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

.myshop-banner-picker__custom-note {
    margin: 0.625rem 0 0;
    font-size: 0.75rem;
    color: #9ca3af;
}

.myshop-banner-picker__brightness {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    max-width: 20rem;
    margin: 0.625rem auto 0;
    padding: 0;
    border: none;
    background: transparent;
}

.myshop-banner-picker__brightness.is-hidden {
    display: none;
}

.myshop-banner-picker__brightness-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.25rem;
    color: #9ca3af;
}

.myshop-banner-picker__brightness-label svg {
    color: #9ca3af;
    stroke: #9ca3af;
}

.myshop-banner-picker__brightness-value {
    flex-shrink: 0;
    min-width: 2.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.myshop-banner-picker__brightness-range {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    width: 100%;
    height: 0.25rem;
    margin: 0;
    accent-color: #64748b;
    cursor: pointer;
}

.myshop-banner-picker__grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.125rem;
}

.myshop-banner-picker__item {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f3f4f6;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
    line-height: 0;
}

.myshop-banner-picker__preview {
    position: relative;
    display: block;
    width: 100%;
    line-height: 0;
}

.myshop-banner-picker__preview-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: 0;
    transition: background 0.15s ease;
}

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

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

.popup-container.myshop-banner-picker-popup .myshop-banner-picker__img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    max-height: none !important;
    object-fit: contain;
    object-position: center;
}

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

.myshop-banner-picker__remove-btn:hover {
    background: #fef2f2;
    border-color: #f87171;
    color: #b91c1c;
}

.myshop-banner-picker__remove-btn svg {
    flex-shrink: 0;
    color: currentColor;
    stroke: currentColor;
}

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