.akz-app-search {
--akz-brand: #12395b;
--akz-brand-soft: rgba(18, 57, 91, 0.08);
--akz-line: #2f6797;
--akz-line-start: rgba(74, 125, 174, 0.96);
--akz-line-mid: rgba(47, 103, 151, 0.97);
--akz-line-end: rgba(22, 61, 96, 0.98);
--akz-text: #18324d;
--akz-muted: #66778d;
--akz-bg: linear-gradient(180deg, rgba(255, 251, 242, 0.92), rgba(255, 255, 255, 0.98));
display: block;
width: 100%;
max-width: min(720px, 100%);
max-inline-size: 100%;
inline-size: min(100%, 760px);
min-width: 0;
margin: 0.35rem auto 0.7rem;
overflow: visible;
}
.akz-app-search__panel {
position: relative;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.42rem 0.52rem;
max-inline-size: 100%;
inline-size: 100%;
width: 100%;
max-width: 100%;
min-width: 0;
padding: 0.62rem 0.8rem 0.7rem;
border: 3px solid transparent;
border-radius: 18px;
background:
linear-gradient(180deg, rgba(255, 251, 242, 0.95), rgba(255, 255, 255, 0.99)) padding-box,
linear-gradient(180deg, var(--akz-line-start) 0%, var(--akz-line-mid) 54%, var(--akz-line-end) 100%) border-box;
box-shadow:
0 10px 22px rgba(18, 57, 91, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.45);
justify-items: stretch;
align-items: start;
overflow: visible;
}
.akz-app-search,
.akz-app-search * {
box-sizing: border-box;
}
.akz-app-search button,
.akz-app-search a,
.akz-app-search input,
.akz-app-search label {
font: inherit;
letter-spacing: 0;
text-rendering: geometricPrecision;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.akz-app-search__switch {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-auto-columns: minmax(0, 1fr);
gap: 0.12rem;
width: 100%;
max-width: 100%;
max-inline-size: 100%;
padding: 0.14rem;
border-radius: 999px;
background: rgba(18, 57, 91, 0.055);
align-self: start;
justify-self: start;
overflow: hidden;
}
.akz-app-search__switch-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
min-width: 0;
border: 0;
border-radius: 999px;
padding: 0.48rem 0.82rem;
background: transparent;
color: var(--akz-muted);
font-weight: 600;
cursor: pointer;
outline: none;
box-shadow: none;
white-space: nowrap;
transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
-webkit-tap-highlight-color: transparent;
}
.akz-app-search__switch-btn:not(.is-active):hover,
.akz-app-search__switch-btn:not(.is-active):focus-visible {
background: #d9e5f0;
color: var(--akz-brand);
box-shadow: inset 0 0 0 1px rgba(18, 57, 91, 0.1);
}
.akz-app-search__switch-btn.is-active,
.akz-app-search__switch-btn.is-active:hover,
.akz-app-search__switch-btn.is-active:focus-visible {
background: linear-gradient(180deg, #194b74 0%, #12395b 100%);
color: #fff;
box-shadow: none;
}
.akz-app-search__label {
display: block;
margin-top: 0;
color: var(--akz-text);
font-weight: 700;
font-size: 1rem;
}
.akz-app-search__input {
grid-column: 1;
grid-row: 2;
display: block;
box-sizing: border-box !important;
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
max-inline-size: 100% !important;
inline-size: 100% !important;
justify-self: stretch;
margin-right: 0 !important;
height: 44px;
min-height: 44px;
margin: 0;
padding: 0 13px;
border: 2px solid rgba(47, 103, 151, 0.32);
border-radius: 8px;
background: #fff;
color: var(--akz-text);
font-size: 15px;
font-weight: 500;
line-height: 44px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
appearance: none;
-webkit-appearance: none;
}
.akz-app-search__input::placeholder {
color: #73859b;
opacity: 1;
}
.akz-app-search__input:focus,
.akz-app-search__input:focus-visible {
outline: none;
border-color: #2f6797;
box-shadow: 0 0 0 3px rgba(47, 103, 151, 0.12);
}
.akz-app-search__status {
grid-column: 1 / -1;
min-height: 0;
color: #4f657d;
font-size: 1.08rem;
font-weight: 700;
line-height: 1.28;
margin-top: -0.04rem;
}
.akz-app-search__status[hidden] {
display: none !important;
}
.akz-app-search__input::-webkit-search-cancel-button {
-webkit-appearance: none;
height: 14px;
width: 14px;
cursor: pointer;
}
.akz-app-search__results {
grid-column: 1 / -1;
position: absolute;
top: calc(100% + 0.32rem);
left: -0.08rem;
right: -0.08rem;
z-index: 20;
display: grid;
gap: 0;
padding-top: 0;
min-width: 0;
max-inline-size: 100%;
overflow-x: hidden;
overflow-y: auto;
max-height: min(15rem, 38vh);
touch-action: pan-y;
border: 1px solid rgba(47, 103, 151, 0.18);
border-radius: 16px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 248, 242, 0.98));
box-shadow:
0 14px 28px rgba(18, 57, 91, 0.1),
0 2px 6px rgba(18, 57, 91, 0.05);
}
.akz-app-search__results[hidden] {
display: none !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
box-shadow: none !important;
}
.akz-app-search__result,
.akz-app-search__result:link,
.akz-app-search__result:visited,
.akz-app-search__result:hover,
.akz-app-search__result:active {
color: var(--akz-text);
text-decoration: none !important;
}
.akz-app-search__results:not([hidden]) {
margin-top: 0;
margin-bottom: 0;
}
.akz-app-search__result {
position: relative;
z-index: 1;
display: grid;
gap: 0.08rem;
width: 100%;
inline-size: 100%;
min-width: 0;
max-width: 100%;
max-inline-size: 100%;
padding: 0.42rem 0.66rem 0.44rem;
border: 0;
border-radius: 0;
border-bottom: 1px solid rgba(47, 103, 151, 0.12);
background: transparent;
color: var(--akz-text);
text-align: left;
text-decoration: none;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
outline: none;
-webkit-tap-highlight-color: transparent;
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
touch-action: pan-y;
overflow-x: hidden;
}
.akz-app-search__result:first-child {
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.akz-app-search__result:last-child {
border-bottom: 0;
border-bottom-left-radius: 10px;
border-bottom-right-radius: 10px;
}
.akz-app-search__result:focus,
.akz-app-search__result:focus-visible,
.akz-app-search__result:active {
outline: none;
box-shadow: inset 0 0 0 1px rgba(47, 103, 151, 0.14);
background: rgba(247, 251, 255, 0.9);
}
.akz-app-search__result:hover {
z-index: 2;
background: rgba(247, 251, 255, 0.92);
box-shadow: none;
}
.akz-app-search__result .akz-app-search__code,
.akz-app-search__result .akz-app-search__origin,
.akz-app-search__result .akz-app-search__meta {
text-decoration: none !important;
}
.akz-app-search__code {
font-size: 1.1rem;
font-weight: 800;
line-height: 1.08;
color: var(--akz-brand);
max-inline-size: 100%;
overflow-wrap: anywhere;
}
.akz-app-search__origin {
font-size: 0.95rem;
font-weight: 600;
line-height: 1.16;
color: var(--akz-text);
max-inline-size: 100%;
overflow-wrap: anywhere;
word-break: break-word;
}
.akz-app-search__meta {
color: var(--akz-muted);
font-size: 0.83rem;
line-height: 1.14;
max-inline-size: 100%;
overflow-wrap: anywhere;
word-break: break-word;
}
.akz-app-search__submit {
grid-column: 2;
grid-row: 2;
display: block;
width: 100%;
min-width: 182px;
min-height: 44px;
margin: 0;
padding: 0 1.1rem;
border: 0;
border-radius: 14px;
background: linear-gradient(180deg, #2b5e8a 0%, #12395b 34%, #0c2d4a 100%);
color: #fff;
font-size: 0.96rem;
font-weight: 700;
line-height: 1.2;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
outline: none;
-webkit-tap-highlight-color: transparent;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.12),
inset 0 8px 14px rgba(69, 125, 174, 0.16),
0 8px 18px rgba(18, 57, 91, 0.16);
transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.akz-app-search__submit:hover,
.akz-app-search__submit:focus-visible {
transform: translateY(-1px);
background: linear-gradient(180deg, #3a709f 0%, #18486f 32%, #103551 100%);
outline: none;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.14),
inset 0 8px 14px rgba(88, 150, 205, 0.18),
0 10px 22px rgba(18, 57, 91, 0.2);
}
.akz-app-search__submit:active {
transform: translateY(0);
background: linear-gradient(180deg, #1b496f 0%, #0f3554 36%, #0a2a43 100%);
box-shadow:
inset 0 2px 8px rgba(0, 0, 0, 0.18),
0 5px 12px rgba(18, 57, 91, 0.12);
}
@media (max-width: 640px) {
.akz-app-search {
max-width: 100%;
margin-inline: auto;
}
.akz-app-search__panel {
width: 100%;
grid-template-columns: minmax(0, 1fr) auto;
gap: 0.28rem 0.32rem;
}
.akz-app-search__results {
position: static;
grid-column: 1 / -1;
grid-row: 3;
top: auto;
left: auto;
right: auto;
padding-top: 0;
max-height: min(16rem, 44vh);
overflow-y: auto;
-webkit-overflow-scrolling: touch;
overscroll-behavior: contain;
}
.akz-app-search__results:not([hidden]) {
margin-bottom: 0;
}
.akz-app-search__input {
max-width: 100%;
}
.akz-app-search__panel {
padding: 0.48rem 0.66rem 0.58rem;
border-radius: 15px;
}
.akz-app-search__switch {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0.1rem;
width: 100%;
padding: 0.12rem;
grid-column: 1 / -1;
grid-row: 1;
}
.akz-app-search__switch-btn {
width: 100%;
padding: 0.42rem 0.68rem;
font-size: 0.92rem;
white-space: normal;
}
.akz-app-search__input {
grid-column: 1;
grid-row: 2;
}
.akz-app-search__submit {
grid-column: 2;
grid-row: 2;
width: auto;
min-width: 0;
padding: 0 0.72rem;
white-space: nowrap;
}
.akz-app-search__input,
.akz-app-search__submit,
.akz-app-search__status,
.akz-app-search__results {
min-width: 0;
}
.akz-app-search__status {
grid-column: 1 / -1;
grid-row: 4;
font-size: 1.12rem;
line-height: 1.34;
}
.akz-app-search__code {
font-size: 1.02rem;
}
.akz-app-search__origin {
font-size: 0.92rem;
line-height: 1.16;
}
.akz-app-search__meta {
font-size: 0.8rem;
line-height: 1.14;
}
.akz-app-search__result {
padding: 0.36rem 0.58rem 0.38rem;
}
}