/* General */
html, body {
    background-color: #F3F4F7;
    color: #282828;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    word-break: break-word;
}

/* Colors */
.blue {
    color: #0070C1;
}
.bg-blue {
    background-color: #0070C1;
}
.orange {
    color: #FF5F40;
}
.bg-orange {
    background-color: #FF5F40;
}

/* Fonts */
a {
    color: #FFF;
    outline: none;
    text-decoration: none;
}
h1, h2, h3 {
    font-family: 'Raleway', sans-serif;
}

h1 {
    color: #0070C1;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 2.4rem;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
}

h2 {
    color: #0070C1;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1.7rem;
    margin: 0 0 0.7rem 0;
    text-transform: uppercase;
}
h3 {
    color: #0070C1;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5rem;
    margin: 0;
    text-transform: uppercase;
}
p {
    color: #282828;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1.418rem;
    margin: 0;
}

/* Form */
input {
    border-radius: 6px;
    border: 1px solid #D4D9E3;
    color: #282828;
    font-size: 15px;
    margin: 2px 0 0 0;
    outline: none;
    padding: 8px 10px;
    width: calc(100% - 20px);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

input[type=checkbox] {
    margin: 2px 5px 0 0;
    width: auto;
}


::placeholder {
    color: #888;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #888;
}

::-ms-input-placeholder {
    color: #888;
}

.label {
    margin: 15px 0 -2px 0;
    font-size: 13px;
    text-transform: uppercase;
    color: #888;
}

button:focus {
    outline:none;
}

.btn-blue,
.btn-orange {
    border-radius: 6px;
    border: none;
    color: #FFF;
    cursor: pointer;
    font-size: 15px;
    margin: 20px 0 0 0;
    padding: 10px 20px;
    text-align: center;
    transition: 0.2s;
    width: 100%;
}

.btn-orange {
    background-color: #FF5F40;
}

.btn-orange:hover {
    background-color: #FF6D51;
    transition: 0.2s;
}

.btn-blue {
    background-color: #0070C1;;
}

.btn-blue:hover{
    background-color: #005C9E;
    transition: 0.2s;
}

/* Navigation */
nav {
    background: #0070c1;;
    display: flex;
    position: relative;
    width: 100%;
    z-index: 3;
}

nav .item {
    padding: 20px 0;
    text-align: right;
    width: 100%;
}

nav .logo .logo-text {
    color: #FFF;
    font-family: 'Raleway', sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin: 18px 30px;
    white-space: nowrap;
}

nav .menu-items {
    display: flex;
    width: 100%;
}

nav .menu-item {
    border-bottom: 1px solid transparent;
    color: #FFF;
    cursor: pointer;
    margin: auto 25px auto 0;
    min-width: max-content;
}

nav .menu-item:hover {
    border-bottom: 1px solid #FFF;
}

nav .menu-item {
    position: relative;
}

.nav-badge {
    background-color: #FF5F40;
    color: #FFF;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    vertical-align: top;
    line-height: 1;
}

nav .logout {
    color: #FFF;
    display: flex;
    margin: auto 50px;
    min-width: max-content;
    min-width: -moz-max-content;
    min-width: -webkit-max-content;
    position: relative;
    right: 0;
    text-align: right;
}

nav .logout .username {
    border-bottom: 1px solid transparent;
    color: #FFF;
    margin: auto 0;
    padding: 4px 0 0 0;
}

nav .logout:hover .username {
    border-bottom: 1px solid #FFF;
}

nav .logout .icon {
    background-image: url(/static/images/account.svg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    height: 28px;
    margin: 0 0 0 10px;
    width: 28px;
}

nav .language-switcher {
    display: flex;
    align-items: center;
    margin: auto 15px auto 0;
}

nav .language-switcher select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #FFF;
    cursor: pointer;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 13px;
    padding: 4px 24px 4px 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

nav .language-switcher select:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

nav .language-switcher select option {
    color: #282828;
    background: #FFF;
}

nav .mobile-menu {
    display: none;
}

@media screen and (max-width: 900px) {

    h1 {
        font-size: 1.625rem;
        letter-spacing: 0;
        line-height: 1.218em;
        font-weight: 700;
        margin: 0 0 9px 0;
    }

    h3 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    nav .logo .logo-text {
        font-size: 18px;
        margin: 14px 18px;
        letter-spacing: 1px;
    }

    nav .logout {
        justify-content: flex-end;
        margin: auto 0 auto 18px;
        width: 100%;
    }

    nav .menu-items {
        display: none;
    }

    nav .language-switcher {
        margin: auto 10px auto 0;
    }

    nav .language-switcher select {
        font-size: 12px;
        padding: 3px 20px 3px 6px;
    }

    nav .logout .username {
        border-bottom: 0;
        font-size: 14px;
        padding: 0 0 0 0;
    }

    nav .logout .icon {
        height: 22px;
        margin: 0 0 0 8px;
        width: 22px;
    }

    nav .mobile-menu {
        background-image: url(/static/images/menu.svg);
        background-position: center center;
        background-repeat: no-repeat;
        background-size: contain;
        display: block;
        height: 38px;
        margin: auto 18px;
        width: 38px;
    }

}

/* VAT Refund Section */
.vat-refund-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #D4D9E3;
}

.vat-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.vat-checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.vat-checkbox-label label {
    cursor: pointer;
    text-transform: none;
    font-size: 15px;
    color: #282828;
}

.vat-info-box {
    background-color: #F0F7FF;
    border: 1px solid #B3D4F0;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 10px 0 15px 0;
}

.vat-info-box h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
    color: #0070C1;
}

.vat-info-box ul {
    margin: 0;
    padding-left: 20px;
}

.vat-info-box li {
    margin-bottom: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #444;
}

.vat-terms-box {
    background-color: #FAFAFA;
    border: 1px solid #D4D9E3;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 10px 0;
}

.vat-terms-content h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #282828;
}

.vat-terms-content .terms-text {
    max-height: 200px;
    overflow-y: auto;
    padding: 10px;
    background-color: #FFF;
    border: 1px solid #D4D9E3;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.6;
    color: #555;
}

/* VAT Refund Info Block — "Where to send?" page */
.vat-refund-info {
    background-color: #FFF;
    border: 1px solid #D4D9E3;
    border-radius: 8px;
    padding: 25px 30px;
    margin: 30px auto;
    max-width: 900px;
}

.vat-refund-info h2 {
    color: #0070C1;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.vat-refund-info h3 {
    color: #0070C1;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 20px 0 8px 0;
}

.vat-refund-info ul {
    padding-left: 20px;
    margin: 0 0 10px 0;
}

.vat-refund-info li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.vat-address-warning {
    background-color: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: 6px;
    padding: 12px 18px;
    margin: 20px 0 15px 0;
}

.vat-address-warning strong {
    color: #E65100;
}

.vat-address-warning p {
    margin: 4px 0 0 0;
    font-size: 14px;
}

.vat-address-cards {
    display: flex;
    gap: 20px;
    margin: 15px 0;
}

.vat-address-card {
    flex: 1;
    border-radius: 6px;
    padding: 18px 20px;
}

.vat-address-card.billing {
    background-color: #F0F7FF;
    border: 2px solid #0070C1;
}

.vat-address-card.shipping {
    background-color: #F5F5F5;
    border: 2px solid #999;
}

.vat-address-card-header {
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.billing .vat-address-card-header {
    color: #0070C1;
}

.shipping .vat-address-card-header {
    color: #555;
}

.vat-address-card-subtitle {
    font-size: 13px;
    color: #777;
    margin: 0 0 10px 0;
    font-style: italic;
}

.vat-address-card p {
    margin: 3px 0;
    line-height: 1.5;
}

.vat-address-tip {
    margin-top: 10px !important;
    padding-top: 10px;
    border-top: 1px solid #D0E0F0;
    font-size: 14px;
    color: #555;
}

.vat-address-fallback {
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.vat-tip {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin: 8px 0;
}

/* VAT Promo Banner — Dashboard */
.vat-promo {
    background: #F0F7FF;
    border: 1px solid #B3D4F0;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    margin: 20px 0;
    padding: 15px 20px;
}

.vat-promo-content {
    flex: 1;
}

.vat-promo-content strong {
    color: #0070C1;
    font-size: 15px;
}

.vat-promo-content p {
    margin: 5px 0 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

.vat-promo-content a {
    color: #0070C1;
    text-decoration: underline;
}

.vat-promo-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    padding: 0 0 0 15px;
    line-height: 1;
}

.vat-promo-close:hover {
    color: #333;
}

/* VAT Hint — Package detail (left column) */
.vat-hint {
    font-size: 13px;
    color: #0070C1;
    margin: 15px 0 0 0;
    padding: 8px 12px;
    font-style: italic;
    background-color: #F0F7FF;
    border-left: 3px solid #0070C1;
    border-radius: 0 3px 3px 0;
}

@media screen and (max-width: 900px) {
    .vat-address-cards {
        flex-direction: column;
    }

    .vat-refund-info {
        padding: 18px 20px;
        margin: 20px 0;
    }

    .vat-promo {
        margin: 10px 0;
        padding: 12px 15px;
    }
}
