.uap-stamps .uap-stamp-extra[hidden],
.uap-stamps .uap-stamps-selected[hidden] { display: none !important; }

.uap-stamps .wapf-swatch--image {
    min-width: 0;
    border-radius: 6px;
}
.uap-stamps .wapf-swatch--image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}
.uap-stamps .wapf-swatch--image.wapf-checked {
    border-color: #1768ae;
    background: #f1f7fc;
}
.uap-stamps .wapf-swatch--image:focus-within {
    outline: 2px solid #1768ae;
    outline-offset: 3px;
}
.uap-stamps .uap-stamp-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #eaf3fd;
    color: #165c99;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    pointer-events: none;
}
.uap-stamps-control {
    grid-column: 1 / -1;
    flex: 0 0 100%;
    padding-top: 3px;
}
.uap-stamps button.uap-stamps-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid #dce4eb;
    border-radius: 6px;
    background: #f6f8fa;
    color: #263f54;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    box-shadow: none;
}
.uap-stamps button.uap-stamps-toggle:hover { background: #edf3f9; border-color: #abc6dd; color: #164f80; }
.uap-stamps button.uap-stamps-toggle:focus-visible { outline: 2px solid #1768ae; outline-offset: 3px; }
.uap-stamps-count {
    min-width: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #e4ebf1;
    font-size: 11px;
    line-height: 20px;
}
.uap-stamps-selected { color: #165c99; font-size: 11px; }
.uap-stamps-chevron {
    width: 7px;
    height: 7px;
    margin: -3px 0 0 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
}
.uap-stamps-toggle[aria-expanded="true"] .uap-stamps-chevron { transform: rotate(225deg); margin-top: 3px; }
@media (max-width: 480px) {
    .uap-stamps .wapf-image-swatch-wrapper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
