.shipment-presets { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; margin-bottom: 16px; } .shipment-presets__btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: none; border-radius: 6px; background: var(--preset-color, #3b82f6); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: opacity 0.15s; line-height: 1.4; &:hover { opacity: 0.85; } } .shipment-presets__add { display: inline-flex; align-items: center; gap: 4px; padding: 6px 14px; border: 1px dashed #ccc; border-radius: 6px; background: transparent; color: #666; font-size: 13px; cursor: pointer; transition: border-color 0.15s, color 0.15s; line-height: 1.4; &:hover { border-color: #999; color: #444; } } .preset-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 1000; display: flex; align-items: center; justify-content: center; } .preset-modal__content { background: #fff; border-radius: 8px; padding: 24px; min-width: 360px; max-width: 420px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); h3 { margin: 0 0 4px; font-size: 16px; } } .preset-modal__colors { display: flex; gap: 8px; flex-wrap: wrap; } .preset-modal__color-swatch { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: border-color 0.15s; &:hover { border-color: #aaa; } &.is-selected { border-color: #333; } } .shipment-presets__btn-wrap { position: relative; display: inline-flex; &:hover .shipment-presets__edit-icon { opacity: 1; } } .shipment-presets__edit-icon { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 1px solid #ddd; font-size: 10px; line-height: 16px; text-align: center; cursor: pointer; opacity: 0; transition: opacity 0.15s; padding: 0; color: #666; z-index: 2; &:hover { background: #f3f4f6; border-color: #999; } } .shipment-presets__dropdown { position: absolute; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #ddd; border-radius: 6px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); z-index: 100; min-width: 200px; padding: 4px 0; } .shipment-presets__dropdown-item { padding: 6px 14px; font-size: 13px; cursor: pointer; white-space: nowrap; &:hover { background: #f3f4f6; } &.is-danger { color: #ef4444; &:hover { background: #fef2f2; } } }