@font-face {
    font-display: swap;
    font-family: 'Nexus Sans Pro';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/Nexus_Sans_Pro_Regular.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Nexus Sans Pro';
    font-style: italic;
    font-weight: 400;
    src: url('../fonts/Nexus_Sans_Pro_Italic.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Nexus Sans Pro';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/Nexus_Sans_Pro_Bold.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Nexus Sans Pro';
    font-style: italic;
    font-weight: 700;
    src: url('../fonts/Nexus_Sans_Pro_Bold_Italic.otf') format('opentype');
}

@font-face {
    font-display: swap;
    font-family: 'Elsevier Sans Light';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/ElsevierSansWeb-Light.woff2') format('woff2');
}

:root {
    font-family: 'Nexus Sans Pro', Arial, Helvetica, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    background: #ffffff !important;
    color: #000000 !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

.container {
    width: 760px;
    max-width: 100%;
    padding: 0 0 16px 0;
    margin: 10px 0 0 0;
}

.toast-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(520px, 100%);
    margin: 12px 0;
}

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
    color: #000;
    border: 1px solid #d9d9d9;
    border-left: 4px solid #d20a0a;
    border-radius: 4px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    line-height: 1.4;
}

.toast-message {
    flex: 1;
}

.toast-close {
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.toast-close:hover {
    color: #000;
}

.heading {
    font-family: 'Nexus Sans Pro', Arial, Helvetica, sans-serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
}

.page-title {
    font-family: 'Elsevier Sans Light', 'Elsevier Display Light', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.block {
    margin-bottom: 24px;
}

.label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    display: block;
}

.helper {
    font-size: 13px;
    color: #444;
    margin-bottom: 10px;
}

.input {
    width: 50%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.button {
    margin-top: 10px;
    background: #000;
    color: #fff;
    padding: 8px 18px;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.back-button {
    margin-top: 26px;
    margin-bottom: 12px;
    background: #000;
    color: #fff;
    padding: 8px 18px;
    border: 1px solid #000;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.button:disabled {
    opacity: 0.8;
    cursor: default;
}

.legacy-toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.legacy-switch-label {
    font-size: 14px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #c7c7c7;
    transition: 0.2s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background-color: #fff;
    transition: 0.2s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #000;
}

.switch input:checked + .slider:before {
    transform: translateX(18px);
}

.legacy-go-link {
    font-size: 14px;
    color: #000;
    text-decoration: underline;
}

.legacy-section {
    margin-top: 14px;
}

.legacy-frame {
    width: 100%;
    height: 520px;
    border: none;
    outline: none;
    border-radius: 0;
    background: #fff;
}

.error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

.loader {
    margin-top: 10px;
    font-size: 14px;
}

.hidden {
    display: none;
}

.order-wrapper {
    margin-top: 30px;
}

.table-wrapper {
    max-width: 900px;
    margin: 20px 0 0 0;
}

.legacy-go-link:hover {
    text-decoration-thickness: 2px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
}

th,
td {
    text-align: left;
    padding: 12px 16px;
}

th {
    font-weight: 600;
    border-bottom: 2px solid #e5e5e5;
}

tr:nth-child(even) {
    background: #f9f9f9;
}