.jbjd,
.jbjd *,
.jbjd *::before,
.jbjd *::after {
box-sizing: border-box;
}
.jbjd {
--jbjd-accent: #e30613;
--jbjd-dark: #111111;
--jbjd-text: #222222;
--jbjd-muted: #737373;
--jbjd-border: #dddddd;
width: 100%;
font-family: inherit;
}
.jbjd__panel {
width: 100%;
max-width: 760px;
margin: 20px auto;
overflow: visible;
border: 1px solid #e1e1e1;
border-radius: 18px;
background: #ffffff;
box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
}
.jbjd__header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
padding: 18px 20px;
border-radius: 17px 17px 0 0;
background: var(--jbjd-dark);
color: #ffffff;
}
.jbjd__header strong {
display: block;
margin: 0;
color: #ffffff;
font-size: 21px;
line-height: 1.3;
}
.jbjd__header small {
display: block;
margin-top: 5px;
color: #d2d2d2;
font-size: 13px;
line-height: 1.5;
}
.jbjd__close {
flex: 0 0 auto;
width: 34px !important;
min-width: 34px !important;
height: 34px !important;
min-height: 34px !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
border-radius: 50% !important;
background: transparent !important;
color: #ffffff !important;
font-size: 30px !important;
font-weight: 700 !important;
line-height: 1 !important;
box-shadow: none !important;
cursor: pointer;
}
.jbjd__body {
padding: 22px;
}
.jbjd__steps {
display: flex;
align-items: center;
justify-content: center;
margin: 0 0 24px;
}
.jbjd__steps span {
display: grid;
place-items: center;
width: 30px;
height: 30px;
border-radius: 50%;
background: #dddddd;
color: #777777;
font-weight: 700;
}
.jbjd__steps span.is-active {
background: var(--jbjd-accent);
color: #ffffff;
}
.jbjd__steps i {
width: 90px;
height: 2px;
background: #dddddd;
}
.jbjd__form {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
gap: 12px;
width: 100%;
margin: 0;
}
.jbjd__field {
display: grid;
gap: 7px;
min-width: 0;
margin: 0;
color: var(--jbjd-text);
font-weight: 700;
}
.jbjd__input-wrap {
position: relative;
width: 100%;
min-width: 0;
}
.jbjd__search {
display: block;
width: 100% !important;
height: 50px !important;
min-height: 50px !important;
margin: 0 !important;
padding: 0 48px 0 14px !important;
border: 1px solid #c9c9c9 !important;
border-radius: 11px !important;
outline: 0 !important;
background: #ffffff !important;
color: var(--jbjd-text) !important;
font-family: inherit !important;
font-size: 14px !important;
line-height: 50px !important;
box-shadow: none !important;
transition: border-color 0.2s, box-shadow 0.2s;
}
.jbjd__search:focus {
border-color: var(--jbjd-accent) !important;
box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.13) !important;
}
.jbjd__search.is-selected {
border-color: var(--jbjd-accent) !important;
background: #fffafa !important;
font-weight: 700 !important;
}
.jbjd__clear {
display: none !important;
position: absolute !important;
top: 50% !important;
right: 11px !important;
left: auto !important;
bottom: auto !important;
z-index: 20 !important;
align-items: center !important;
justify-content: center !important;
width: 28px !important;
min-width: 28px !important;
max-width: 28px !important;
height: 28px !important;
min-height: 28px !important;
max-height: 28px !important;
margin: 0 !important;
padding: 0 !important;
transform: translateY(-50%) !important;
border: 0 !important;
border-radius: 50% !important;
background: #eeeeee !important;
color: #333333 !important;
font-family: Arial, sans-serif !important;
font-size: 19px !important;
font-weight: 700 !important;
line-height: 28px !important;
text-align: center !important;
box-shadow: none !important;
cursor: pointer !important;
}
.jbjd__clear.is-visible {
display: flex !important;
}
.jbjd__clear:hover,
.jbjd__clear:focus {
background: var(--jbjd-dark) !important;
color: #ffffff !important;
outline: none !important;
}
.jbjd__submit {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
height: 50px !important;
min-height: 50px !important;
margin: 0 !important;
padding: 0 23px !important;
border: 0 !important;
border-radius: 999px !important;
background: var(--jbjd-accent) !important;
color: #ffffff !important;
font-family: inherit !important;
font-size: 14px !important;
font-weight: 700 !important;
line-height: 1 !important;
white-space: nowrap;
box-shadow: none !important;
cursor: pointer;
}
.jbjd__submit:hover {
background: var(--jbjd-dark) !important;
}
.jbjd__suggestions {
display: none;
position: absolute;
top: calc(100% + 7px);
right: 0;
left: 0;
z-index: 99999;
max-height: 310px;
overflow-y: auto;
padding: 6px;
border: 1px solid #d7d7d7;
border-radius: 11px;
background: #ffffff;
box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}
.jbjd__suggestions.is-open {
display: grid;
gap: 2px;
}
.jbjd__suggestion {
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 12px;
width: 100% !important;
min-height: 42px !important;
margin: 0 !important;
padding: 10px 11px !important;
border: 0 !important;
border-radius: 7px !important;
background: #ffffff !important;
color: var(--jbjd-text) !important;
text-align: left !important;
box-shadow: none !important;
cursor: pointer;
}
.jbjd__suggestion:hover,
.jbjd__suggestion.is-active {
background: #f3f3f3 !important;
color: var(--jbjd-accent) !important;
}
.jbjd__suggestion span {
min-width: 0;
overflow: hidden;
font-weight: 700;
text-overflow: ellipsis;
white-space: nowrap;
}
.jbjd__suggestion small {
flex: 0 0 auto;
color: var(--jbjd-muted);
font-size: 11px;
}
.jbjd__suggestion-empty {
padding: 12px;
color: var(--jbjd-muted);
font-size: 13px;
}
.jbjd__result {
margin-top: 20px;
}
.jbjd__result:empty {
display: none;
}
.jbjd__result-head,
.jbjd__empty {
padding: 16px;
border-radius: 12px;
background: #f5f5f5;
}
.jbjd__result-head strong {
display: block;
font-size: 19px;
}
.jbjd__result-head span,
.jbjd__empty p {
color: #666666;
}
.jbjd__empty p {
margin: 6px 0 0;
font-size: 13px;
}
.jbjd__empty--warning {
border-left: 4px solid var(--jbjd-accent);
}
.jbjd__inches {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
gap: 10px;
margin-top: 12px;
}
.jbjd__inches a {
display: flex;
flex-direction: column;
align-items: center;
padding: 15px 8px;
border: 1px solid #dddddd;
border-radius: 12px;
background: #ffffff;
color: var(--jbjd-text) !important;
text-decoration: none !important;
}
.jbjd__inches a:hover {
border-color: var(--jbjd-accent);
transform: translateY(-2px);
box-shadow: 0 7px 18px rgba(0, 0, 0, 0.08);
}
.jbjd__inches b {
color: var(--jbjd-accent);
font-size: 30px;
line-height: 1;
}
.jbjd__inches small {
margin-top: 3px;
font-weight: 800;
}
.jbjd__inches em {
margin-top: 7px;
font-size: 11px;
font-style: normal;
}
.jbjd__notice {
margin: 18px 0 0;
color: #777777;
font-size: 11px;
line-height: 1.55;
}
.jbjd__notice a {
color: #0017ff;
text-decoration: none;
}
.jbjd__launcher {
display: none;
}
.jbjd--floating {
position: fixed;
right: 20px;
bottom: 20px;
z-index: 999999;
width: auto;
}
.jbjd--floating.jbjd--left {
right: auto;
left: 20px;
}
.jbjd--floating .jbjd__launcher {
display: inline-flex !important;
align-items: center;
justify-content: center;
min-height: 48px;
padding: 0 20px !important;
border: 0 !important;
border-radius: 999px !important;
background: var(--jbjd-accent) !important;
color: #ffffff !important;
font-weight: 800 !important;
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
cursor: pointer;
}
.jbjd--floating .jbjd__panel {
display: none;
width: min(760px, calc(100vw - 30px));
margin: 0 0 12px;
}
.jbjd--floating.is-open .jbjd__panel {
display: block;
}
@media (max-width: 760px) {
.jbjd__body {
padding: 16px;
}
.jbjd__header {
padding: 17px;
}
.jbjd__form {
grid-template-columns: 1fr;
}
.jbjd__submit {
width: 100% !important;
}
.jbjd__steps i {
width: 70px;
}
.jbjd--floating {
right: 10px;
bottom: 10px;
}
.jbjd--floating.jbjd--left {
left: 10px;
}
.jbjd--floating .jbjd__panel {
width: calc(100vw - 20px);
}
}