body {
    font-family: 'Montserrat', sans-serif;
    background-image: url("../images/background.png");
    background-color: #000000;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top left;
}
textarea:focus, input:focus, select:focus{
    outline: none!important;
    box-shadow: none!important;;
}
*:focus {
    outline: none!important;;
}
.mb-8 {
    margin-bottom: 8px!important;
}
.mb-12 {
    margin-bottom: 12px!important;
}
.mb-14 {
    margin-bottom: 14px!important;
}
.mb-16 {
    margin-bottom: 16px!important;
}
.mb-24 {
    margin-bottom: 24px!important;
}
.mb-32 {
    margin-bottom: 32px!important;
}
.mb-38 {
    margin-bottom: 38px!important;
}
.mb-40 {
    margin-bottom: 40px!important;
}
.mb-48 {
    margin-bottom: 48px!important;
}
.mb-56 {
    margin-bottom: 56px!important;
}
.mb-60 {
    margin-bottom: 60px!important;
}
.mb-64 {
    margin-bottom: 64px!important;
}
.mb-80 {
    margin-bottom: 80px!important;
}
.mb-90 {
    margin-bottom: 90px!important;
}
.mb-128 {
    margin-bottom: 128px!important;
}

.mr-8 {
    margin-right: 8px!important;
}
.mr-10 {
    margin-right: 10px!important;
}
.mr-30 {
    margin-right: 32px!important;
}
.mr-32 {
    margin-right: 32px!important;
}
.mr-40 {
    margin-right: 40px!important;
}

.no-margin {
    margin: 0!important;
}

.no-padding {
    padding: 0!important;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
}
.header {
    padding: 31px 107px 31px 48px;
    justify-content: space-between;
    align-items: center;
    display: flex;
    flex-direction: row;
    margin: 0;
}
.header .navigation {
    justify-content: space-between;
    align-items: center;
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
}
.header .logo {
    width: 170px;
}
.navigation .btn-icon {
    width: 32px;
}
.header a {
    text-decoration: none;
}
.navigation .language-switcher {
    padding: 0 16px 0 16px;
}
.navigation .language-switcher .dropdown-toggle {
    padding: 0!important;
}
.navigation .select-dropdown b {
    color: #161616;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}
.navigation p {
    color: #676767;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
    margin: 0;
    padding: 0;
}
.navigation .select-dropdown.top-arrow button {
    align-items: initial;
}

label.has-clear {
    position: relative;
    display: flex;
}
label.has-clear .animated-placeholder {
    transition: opacity .1s ease-in;
    display: none;
    position: absolute;
    top: -13px;
    background-color: #ffffff;
    margin: 0;
    padding: 0 8px;

    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    text-align: center;
    color: #393939;
}
.focus-img {
    display: none;
    cursor: pointer;
}
.footer-row {
    background-color: transparent!important;
}
label.has-clear:has(textarea:focus),
label.has-clear:has(input[type="email"]:focus),
label.has-clear:has(input[type="password"]:focus),
label.has-clear:has(input[type="text"]:focus) {
    /*outline: 3px solid #393939!important;*/
    border: 3px solid #393939!important;
    background-color: #FEFEFE!important;
}
label.has-clear:has(textarea:focus) .focus-img,
label.has-clear:has(input[type="email"]:focus) .focus-img,
label.has-clear:has(input[type="password"]:focus) .focus-img,
label.has-clear:has(input[type="text"]:focus) .focus-img {
    display: block;
}
label.has-clear:has(textarea:focus) .animated-placeholder,
label.has-clear:has(input[type="email"]:focus) .animated-placeholder,
label.has-clear:has(input[type="password"]:focus) .animated-placeholder,
label.has-clear:has(input[type="text"]:focus) .animated-placeholder {
    display: block;
}
.calculator.form .dropdown.select-box {
    background-color: #F0F0F0;
    border-radius: 8px;
    padding: 15px;
}
.calculator.form .dropdown.select-box span {
    overflow: hidden;
    width: 100%;
}
.calculator.form .select-dropdown button {
    text-align: left;
}
.service-modal .form.input {
    padding: 14px!important;
}
.service-modal input {
    color: #161616!important;
}
#cabinetTabContent .statusButtonModal p.title_text {
    font-weight: bold!important;
    font-size: 18px!important;
}
.agree_terms_md{
    display: flex;
    align-items: center;
    justify-content: end;

}

/* Add/edit recipient modal: fields wear the login-input skin — white with
   a light #f0f0f0 border (the shared .service-modal grey is overridden;
   the 3px #393939 focus border above still applies), and the floated label
   rests inside the field, slides to the top edge as a white pill on focus
   and stays floated while the field has a value. The phone field has no
   has-clear/label span, so it keeps its native placeholder. */
/* .modal-content bumps specificity above redesign.css's
   `.recipient-modal .input.input-area { border: 3px solid transparent }`,
   whose shorthand would otherwise reset the border color */
.modal-content.recipient-modal .input.input-area {
    background: #fefefe;
    border-color: #f0f0f0;
    /* uniform field height: the phone group and the select fields carry
       .form, whose `.service-modal .form.input { padding: 0 }` left them
       shorter than the text fields (19px + 24px line + 19px + 3px borders) */
    min-height: 68px;
}
/* the phone number's nested label also matches .input.input-area — without
   this it stacks its own 68px + paddings inside the already-sized group,
   making the phone field taller than the rest */
.modal-content.recipient-modal .input.input-area .input.input-area {
    min-height: 0;
    padding: 0;
    border: none;
}
.recipient-modal label.has-clear .animated-placeholder {
    display: block;
    position: absolute;
    z-index: 2;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    background: transparent;
    color: #676767;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    pointer-events: none;
    white-space: nowrap;
    /* long labels (issue date, etc.) ellipsize inside the field
       instead of running past its border */
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease, background-color 0s;
}
/* no clear (x) buttons in this modal */
.recipient-modal .focus-img {
    display: none !important;
}
.recipient-modal label.has-clear:has(input:focus) .animated-placeholder,
.recipient-modal label.has-clear:has(input[type="text"]:not(:placeholder-shown)) .animated-placeholder,
.recipient-modal label.has-clear:has(input[type="email"]:not(:placeholder-shown)) .animated-placeholder {
    top: 0;
    padding: 0 8px;
    background: #fff;
    color: #000;
    font-size: 14px;
    line-height: 20px;
}
/* the phone input is nested inside the phone-code group and has no border
   of its own to notch — its label just yields once focused or filled */
.recipient-modal label.has-clear.not-bordered:has(input:focus) .animated-placeholder,
.recipient-modal label.has-clear.not-bordered:has(input[type="text"]:not(:placeholder-shown)) .animated-placeholder {
    display: none;
}
.recipient-modal label.has-clear input::placeholder {
    color: transparent;
}
/* style.css's generic `.modal-body input` rule gives every modal input its
   own 8px radius, 15px padding and right margin — here the label owns the
   visible box, so neutralize the input (same treatment the change-password
   modal applies to its inputs). .modal-content bumps specificity above the
   generic rule's :not() chain. */
.modal-content.recipient-modal label.has-clear input {
    border-radius: 0;
    margin-right: 0;
    padding: 0;
}

/* Agreement-signature modal (#agreement-sign, add/edit parcel): the same floating-label fields as the
   add-recipient modal above. Without this the page's generic label.has-clear rules show the label only
   while a field is focused, so filled fields sat as bare grey boxes next to a labelled focused one. */
#agreement-sign label.has-clear .animated-placeholder {
    display: block;
    position: absolute;
    z-index: 2;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    background: transparent;
    color: #676767;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    pointer-events: none;
    white-space: nowrap;
    max-width: calc(100% - 32px);
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease, background-color 0s;
}
#agreement-sign .focus-img {
    display: none !important;
}
#agreement-sign label.has-clear:has(input:focus) .animated-placeholder,
#agreement-sign label.has-clear:has(input[type="text"]:not(:placeholder-shown)) .animated-placeholder {
    top: 0;
    padding: 0 8px;
    background: #fff;
    color: #000;
    font-size: 14px;
    line-height: 20px;
}
#agreement-sign label.has-clear input::placeholder {
    color: transparent;
}
#agreement-sign .modal-content label.has-clear input {
    border-radius: 0;
    margin-right: 0;
    padding: 0;
    font-size: 16px;
    line-height: 24px;
}
/* field box: the register page's input skin (white field, 3px light border, 16px radius; black border
   while focused; the value reads grey at rest and dark while editing). Error state keeps the shared
   orange border. */
#agreement-sign label.input-area {
    padding: 19px 16px;
    border-radius: 16px;
    border: 3px solid #f0f0f0 !important;
    background: #fefefe !important;
    width: 100%;
    display: flex;
    align-items: center;
}
#agreement-sign label.has-clear:has(input:focus) {
    border-color: #000 !important;
}
#agreement-sign .error label.input-area {
    border-color: #e87722 !important;
}
#agreement-sign .modal-content label.has-clear input {
    border: none;
    background: transparent !important;
    color: #676767;
}
#agreement-sign .modal-content label.has-clear input:focus {
    color: #161616;
}
/* signature pad: same border and corners as the fields */
#agreement-sign .signature-pad {
    display: block;
    border: 3px solid #f0f0f0;
    border-radius: 16px;
    background: #fefefe;
}
/* breathing room between the pad and the Cancel / Confirm row (the form's only direct .row) */
#agreement-sign .agreement-form > .row {
    margin-top: 24px;
}
/* tighter rows: the field columns' 32px utility margin plus the error line's padding pushed the
   rows far apart; halve the margin and keep the error line snug under its field */
#agreement-sign .row > [class*="-label"] {
    margin-bottom: 16px !important;
}
#agreement-sign .error-message {
    margin: 4px 16px 0;
    padding-bottom: 0;
}
/* the select-boxes inside the fields (passport type, city, region, phone
   code) carry their own grey fill — let the white field show through */
.recipient-modal .calculator.form .dropdown.select-box {
    background-color: transparent;
}

/* orders list: grey "+N" pill after the first product name when an order
   holds more than one declaration item */
.products-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #F0F0F0;
    color: #161616;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    flex-shrink: 0;
}
