.slogan-style-picker {
    container-type: inline-size;
    margin: .5rem 0 .25rem;
    padding: 0;
    min-width: 0;
    border: 0;
}
.slogan-style-picker[hidden] { display: none; }
.slogan-style-picker legend { float: none; width: auto; margin: 0 0 .4rem; }
.slogan-style-picker__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .45rem;
    max-width: 23rem;
}
.slogan-style-picker__option { position: relative; cursor: pointer; min-width: 0; text-align: center; }
.slogan-style-picker__option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.slogan-style-picker__tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .18rem;
    height: 72px;
    padding: .25rem;
    border: 1px solid #dbe0e8;
    border-radius: 10px;
    background: #fff;
    color: #38485b;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.slogan-style-picker__tile img { display: block; width: min(100%, 5rem); height: 3.25rem; object-fit: contain; }
.slogan-style-picker__none { width: 1.45rem; height: 1.45rem; }
.slogan-style-picker__name { font-size: .78rem; line-height: 1.2; overflow-wrap: anywhere; }
.slogan-style-picker__option > input:checked + .slogan-style-picker__tile {
    border-color: var(--wizard-primary, #ed1687);
    background: #fff5f9;
    box-shadow: 0 0 0 1px var(--wizard-primary, #ed1687);
}
.slogan-style-picker__option > input:focus-visible + .slogan-style-picker__tile { outline: 2px solid #465ac8; outline-offset: 2px; }
.slogan-style-picker__option:hover .slogan-style-picker__tile { border-color: var(--wizard-primary, #ed1687); }
.slogan-style-picker__check {
    display: none;
    position: absolute;
    inset: 4px 4px auto auto;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #c82c68;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 17px;
}
.slogan-style-picker__option > input:checked + .slogan-style-picker__tile .slogan-style-picker__check { display: block; }
.wizard-text-section:has(.slogan-style-picker) > .stage3-text-switch { padding-right: 0; }
.wizard-text-section:has(.slogan-style-picker) > .wizard-text-color > summary { position: static; }
@container (max-width: 14rem) {
    .slogan-style-picker__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
