/* =========================================================
   custom.css — bereinigt und gegliedert
   Stand: automatisch aus der gelieferten Datei konsolidiert
   ========================================================= */

/* =========================================================
   01) Basis / Utilities
   ========================================================= */

#segmentsContainer .segment-card + .segment-card {
    margin-top: 1rem !important;
}

.table_action_button {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.mobile-back-label,
.mobile-button-actions,
.mobile-action-spacer {
    display: none;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* =========================================================
   02) Toasts
   ========================================================= */

.toast {
    border-radius: 18px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    border: none;
    min-width: 320px;
    max-width: 420px;
}

.bagly-toast-success {
    background-color: #198754;
    color: #fff;
}

.bagly-toast-error {
    background-color: #dc3545;
    color: #fff;
}

.bagly-toast-success .btn-close,
.bagly-toast-error .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.bagly-toast-container {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* =========================================================
   03) Flatpickr
   ========================================================= */

.flatpickr-calendar,
.flatpickr-calendar * {
    box-sizing: border-box;
}

.flatpickr-calendar .flatpickr-current-month {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 36px;
    padding: 0;
}

.flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months {
    appearance: none !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 500;
    height: 28px !important;
    line-height: 28px !important;
    padding: 0 22px 0 6px !important;
    margin: 0 !important;
    width: 105px !important;
    min-width: 105px !important;
    cursor: pointer;
}

.flatpickr-calendar .flatpickr-monthDropdown-months option {
    color: #000;
    background: #fff;
}

.flatpickr-calendar .flatpickr-months .flatpickr-month {
    position: relative;
}

.flatpickr-calendar .flatpickr-current-month::after {
    content: "";
    position: absolute;
    top: 16px;
    left: calc(50% - 22px);
    width: 0;
    height: 0;
    pointer-events: none;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
}

.flatpickr-calendar .flatpickr-current-month input.cur-year {
    appearance: textfield !important;
    -webkit-appearance: none !important;
    background: transparent !important;
    color: #fff !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 16px !important;
    font-weight: 500;
    height: 28px !important;
    line-height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 64px !important;
    min-width: 64px !important;
    text-align: left;
}

.flatpickr-calendar .numInputWrapper {
    position: relative !important;
    width: 76px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
}

.flatpickr-calendar .numInputWrapper span {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    right: 0 !important;
    width: 14px !important;
    height: 14px !important;
    border: none !important;
    background: transparent !important;
}

.flatpickr-calendar .numInputWrapper span.arrowUp {
    top: 0 !important;
}

.flatpickr-calendar .numInputWrapper span.arrowDown {
    bottom: 0 !important;
}

.flatpickr-calendar .numInputWrapper span.arrowUp::after {
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-bottom: 4px solid #fff !important;
    border-top: none !important;
}

.flatpickr-calendar .numInputWrapper span.arrowDown::after {
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid #fff !important;
    border-bottom: none !important;
}

.flatpickr-calendar .flatpickr-prev-month,
.flatpickr-calendar .flatpickr-next-month {
    height: 36px;
    padding: 8px;
}

.flatpickr-calendar .flatpickr-prev-month svg,
.flatpickr-calendar .flatpickr-next-month svg {
    width: 14px;
    height: 14px;
}

.flatpickr-calendar select,
.flatpickr-calendar input {
    max-width: none !important;
}

/* =========================================================
   04) Page Navbar / Page Layout
   ========================================================= */

.page-navbar {
    width: 100%;
    height: 70px;
    background-color: #ffffff;
    border-bottom: 1px solid #c3c3c3;
}

.page-navbar__container {
    max-width: 1120px;
    height: 70px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    padding: 0 16px;
}

.page-navbar__icon {
    width: 40px;
    height: 40px;
    color: #1D68AA;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.page-navbar__icon:hover {
    color: #002F66;
}

.page-navbar__icon svg {
    width: 40px;
    height: 40px;
    display: block;
}

.page-navbar__title {
    margin: 0;
    padding: 0;
    font-size: 28px;
    font-weight: 600;
    line-height: 50px;
    color: #002F66;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-navbar__placeholder {
    visibility: hidden;
    pointer-events: none;
}

.page-content {
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px;
}

.page-navbar__logo {
    width: 116px;
    height: auto;
    display: block;
}

/* =========================================================
   05) Cards / Overview / Travel Mode
   ========================================================= */

.global-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 15px;
    margin-top: 40px;
    margin-bottom: 28px;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.global-card.active {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.global-card.inactive {
    border-color: #e5e7eb;
    background: #ffffff;
}

.global-card.active.pulse,
.travel-card.active.pulse {
    animation: pulseGlow 1.2s ease;
}

.global-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-card img {
    width: 115px;
    height: 115px;
    object-fit: contain;
}

.global-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
}

.global-card-content {
    align-self: start;
}

.global-card p {
    margin: 0;
    color: #6b7280;
}

.global-card-switch {
    align-self: start;
    justify-self: end;
}

.travel-mode-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.travel-mode-title-row h2 {
    margin: 0;
    line-height: 1.15;
    font-size: 26px;
}

.travel-mode-badge {
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
}

.travel-mode-badge.active {
    background: #16a34a;
}

.travel-mode-badge.inactive {
    background: #6b7280;
}

.travel_mode_title h2 {
    font-size: 24px;
}

.card_area_main {
    position: relative;
}

.card_area_main .with_label,
.card_area_main .print_icon {
    position: relative;
    z-index: 3;
}

.card_overlay_link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 16px;
}

.card_image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 16px;
    padding: 2px;
}

.print_icon {
    width: 44px;
    min-width: 44px;
    height: 44px;
    background-color: var(--navbar_bg_color);
    border-radius: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.3s linear;
}

.print_icon:hover {
    background-color: var(--secondary_color);
}

.print_icon img {
    width: 26px !important;
    height: 23px !important;
    flex: 0 0 26px !important;
    object-fit: contain !important;
}

.notice_mobile_title {
    font-size: 24px;
    line-height: 30px;
    font-weight: var(--font_weight_700);
    color: var(--primary_active_color);
    margin-bottom: 0;
    margin-left: 0;
}

/* =========================================================
   06) Configuration / Upload / Modals
   ========================================================= */

.configuration-wrapper {
    width: 1120px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px;
}

.configuration-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    padding: 24px;
    margin-bottom: 28px;
}

.configuration-title {
    font-size: 20px;
    color: #003b79;
    font-weight: 700;
    margin-bottom: 8px;
}

.configuration-text,
.modal-body {
    color: #4b5563;
    margin-bottom: 0;
}

.modal-subtitle {
    font-size: 15px;
    line-height: 22px;
    color: var(--text_color);
    margin-bottom: 0;
}

.configuration-card.travel-card {
    display: grid;
    grid-template-columns: 115px 1fr auto;
    gap: 24px;
    align-items: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.configuration-card.travel-card.active {
    border-color: #16a34a;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.configuration-card.travel-card.inactive {
    border-color: #e5e7eb;
    background: #ffffff;
    opacity: 0.9;
}

.travel-card img {
    width: 115px;
    height: 115px;
    object-fit: contain;
}

#travelModeBadge {
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 999px;
}

.premium-luggage-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-upload {
    width: 100%;
    max-width: 280px;
    margin-top: -50px;
    padding: 22px;
    border: 2px dashed #93c5fd;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

.image-upload.drag-over {
    border-color: #0055a4;
    background: #eef6ff;
    box-shadow: 0 0 0 4px rgba(0, 85, 164, 0.08);
}

.upload-input {
    display: none;
}

.upload-hint {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 10px;
    line-height: 1.35;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    padding: 10px 20px;
    background-color: var(--primary_color);
    font-size: var(--font_size_small);
    line-height: var(--font_size_small_lineheight);
    color: var(--white_color);
    border: none;
    transition: all 0.3s linear;
    font-weight: var(--font_weight_500);
}

.upload-btn:hover {
    background-color: var(--secondary_color);
}

.upload-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.delete-modal-notice {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 16px;
    color: #7c2d12;
}

.delete-modal-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(73%) sepia(88%) saturate(742%) hue-rotate(344deg) brightness(101%) contrast(97%);
}

.form-floating > .form-control {
    padding-right: 44px;
}

#notes {
    min-height: 132px;
}

/* =========================================================
   07) Action Rows / Button Groups
   ========================================================= */

.form-action-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.segment-action-stack {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.segment-main-actions,
.segment-secondary-actions {
    display: flex;
    gap: 12px;
}

.app-card-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
}

.app-card-actions form {
    margin: 0;
}

.app-card-actions .my_btn_primary,
.app-card-actions .my_btn_danger {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   08) Forms / Account / Welcome / Login
   ========================================================= */

.country-select-wrapper {
    position: relative;
}

.country-select-wrapper .selected-flag {
    position: absolute;
    left: 0.85rem;
    z-index: 5;
    font-size: 1rem;
    line-height: 1;
    pointer-events: none;
}

.account-country-select .selected-flag {
    top: 60%;
    transform: translateY(-50%);
}

.account-country-select .country-select,
.settings-language-select .country-select {
    padding-left: 2.6rem !important;
}

.account-country-select > label,
.settings-language-select > label {
    padding-left: 2.6rem;
}

.settings-language-select .selected-flag {
    top: 62%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.settings-language-select .country-select {
    height: 58px;
    line-height: 1.6;
}

.allow_check {
    align-items: center;
}

.allow_check .switch_wrapper {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.allow_check .switch {
    flex: 0 0 auto;
    margin: 0;
}

.allow_check .switch_text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.allow_check .switch_text p {
    margin: 0;
    text-align: left;
}

.bagly-example-text {
    font-size: 13px;
    line-height: 18px;
    color: var(--text_color_60);
    margin-top: 8px;
    margin-bottom: 0;
}

.welcome_card a.my_basic_bttn,
.welcome_card a.my_btn_primary,
.welcome_card .welcome_link_btn {
    width: 100%;
    min-height: 44px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 44px 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    font-size: var(--font_size_small);
    line-height: var(--font_size_small_lineheight);
    font-weight: var(--font_weight_500);
    color: var(--white_color);
    transition: all 0.3s linear;
}

.welcome_card a.my_basic_bttn img,
.welcome_card a.my_btn_primary img,
.welcome_card .welcome_link_btn img {
    width: 14.37px !important;
    height: 12.5px !important;
    margin: 0 !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.welcome_card a.my_basic_bttn:focus-visible,
.welcome_card a.my_btn_primary:focus-visible,
.welcome_card .welcome_link_btn:focus-visible {
    outline: 3px solid var(--secondary_color);
    outline-offset: 3px;
}

.welcome_card a.my_basic_bttn:active,
.welcome_card a.my_btn_primary:active,
.welcome_card .welcome_link_btn:active {
    transform: translateY(1px);
}

.login_input .password-eye-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    z-index: 5;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.login_input .password-eye-toggle .password-eye-icon {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px;
    max-height: 20px;
    margin: 0 !important;
    object-fit: contain;
    display: block;
}

.login_input .icon_input.with_eye_icon input.password-field {
    padding-right: 3rem !important;
}

/* =========================================================
   09) Print Code / Preview Tool
   ========================================================= */

.panel,
.preview {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

/* Achtung: Diese Regeln sind global. Falls möglich, besser auf die Print-Seite scopen. */
h1 {
    margin: 0 0 8px;
    font-size: 24px;
}

p {
    margin: 0 0 24px;
    color: #555;
    line-height: 1.5;
}

label {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-weight: 700;
    margin-bottom: 0;
}

button,
.button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

code {
    background: #f0f0f0;
    padding: 2px 5px;
    border-radius: 5px;
}

input[type="range"] {
    width: 100%;
    height: 25px !important;
    accent-color: #038C7F;
}

.preset-group {
    margin: 24px 0 26px;
}

.preset-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #e9e9e9;
    color: #111;
    padding: 10px 14px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.preset-button.is-active {
    background: #111;
    color: #fff;
}

.field {
    margin-bottom: 24px;
}

.value {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button.secondary {
    background: #e9e9e9;
    color: #111;
}

.button.debug {
    background: #f2f2f2;
    color: #111;
}

.meta {
    margin-top: 20px;
    padding: 14px;
    background: #f2f2f2;
    border-radius: 12px;
    font-size: 14px;
    color: #333;
}

.preview-frame {
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(45deg, #eee 25%, transparent 25%),
        linear-gradient(-45deg, #eee 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #eee 75%),
        linear-gradient(-45deg, transparent 75%, #eee 75%);
    background-size: 24px 24px;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    border-radius: 12px;
    overflow: hidden;
}

.preview-object {
    width: 100%;
    height: 420px;
    border: 0;
}

.print-action-form {
    margin: 0;
    flex: 1;
}

.print-action-form .save_btn {
    width: 100%;
}

.print-title-block {
    margin-bottom: 30px;
}

.print-buttons-margin {
    margin-top: 50px;
}

/* =========================================================
   10) CTA / Products / Shop
   ========================================================= */

.cta-print-code {
    width: 100%;
    max-width: 1120px;
    min-height: 160px;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 28px 42px;
    border-radius: 16px;
    background: linear-gradient(90deg, #027AA3 0%, #025A7E 100%);
    box-shadow: 0 10px 24px rgba(2, 90, 126, 0.28);
    text-decoration: none;
    color: #ffffff;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-print-code:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(2, 90, 126, 0.36);
}

.cta-print-code__icon {
    width: 96px;
    height: 96px;
    min-width: 96px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.cta-print-code__icon img {
    width: 52px;
    height: 52px;
    display: block;
}

.cta-print-code__content {
    flex: 1;
}

.cta-print-code__content h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #ffffff;
}

.cta-print-code__content p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    color: #ffffff;
}

.cta-print-code__arrow {
    width: 24px;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-section__intro {
    margin: 40px 0 20px 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    text-align: center;
    color: #333333;
}

.product-section-headline {
    width: 100%;
    max-width: 1120px;
    margin: 36px auto 24px auto;
    text-align: center;
    box-sizing: border-box;
}

.product-section-headline__title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.product-section-headline__title-row span {
    flex: 1;
    height: 2px;
    background: #b8b8b8;
}

.product-section-headline__title-row h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    color: #025A7E;
    white-space: nowrap;
}

.product-section-headline p {
    margin: 10px 0 0 0;
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    color: #333333;
}

.product-grid-section {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    box-sizing: border-box;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 284px;
    padding: 16px 14px 14px 14px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.product-card__image {
    width: 100%;
    aspect-ratio: 1 / 0.72;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-card h3 {
    margin: auto 0 6px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 26px;
    color: #222222;
}

.product-card p {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    color: #027AA3;
}

.shop-button {
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 2px solid #027AA3;
    border-radius: 8px;
    background: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    color: #027AA3;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.2s ease, color 0.2s ease;
}

.shop-button:hover {
    background: #027AA3;
    color: #ffffff;
}

.shop-button__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   11) Customer Type / Billing
   ========================================================= */

.customer-type-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.customer-type-option {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
}

.customer-type-option input {
    margin-top: 3px;
}

.customer-type-option span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.customer-type-option small {
    color: #666;
    font-weight: 400;
}

.business-fields {
    display: none;
}

body.is-business .business-fields {
    display: flex;
}

/* =========================================================
    12) Code Activation Page
    ========================================================= */

/* -------------------------
   Activation input card
   ------------------------- */

.code_activation_card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: center;
}

.code_activation_image_area {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code_activation_image {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
}

.code_activation_content_area {
    min-width: 0;
}

.code_form_input.code_activation_card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    max-width: 920px;
    width: 100%;
    padding: 36px 42px;
}

/* -------------------------
   Activation choice card
   ------------------------- */

.activation-choice-section {
    padding-bottom: 40px;
}

.activation-choice-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.activation-choice-header h2 {
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 700;
}

.activation-choice-subline {
    max-width: 620px;
    margin: 0 auto 24px;
    color: #666;
    line-height: 1.5;
}

.activation-choice-warning {
    background: #fff4df;
    color: #5f4100;
    border-radius: 14px;
    padding: 14px 16px;
}

/* -------------------------
   Bagly selection list
   ------------------------- */

.activation-bagly-list {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.activation-bagly-item {
    position: relative;
}

.activation-bagly-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.activation-bagly-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    border: 2px solid #eeeeee;
    border-radius: 18px;
    padding: 14px;
    cursor: pointer;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.activation-bagly-card:hover {
    border-color: #d7d7d7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.activation-bagly-radio:checked + .activation-bagly-card {
    border-color: currentColor;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.10);
}

.activation-bagly-image-wrap {
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f5f5;
}

.activation-bagly-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.activation-bagly-content {
    flex: 1;
    min-width: 0;
}

.activation-bagly-name {
    display: block;
    font-weight: 700;
    font-size: 17px;
    color: #222;
    margin-bottom: 5px;
    word-break: break-word;
}

.activation-bagly-status {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: #666;
    background: #f4f4f4;
    border-radius: 999px;
    padding: 5px 10px;
}

.activation-bagly-status-warning {
    color: #7a4b00;
    background: #fff0d2;
}

.activation-bagly-check {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 2px solid #d0d0d0;
    border-radius: 50%;
    position: relative;
}

.activation-bagly-radio:checked + .activation-bagly-card .activation-bagly-check {
    border-color: currentColor;
}

.activation-bagly-radio:checked + .activation-bagly-card .activation-bagly-check::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: currentColor;
}

/* -------------------------
   Confirmation / buttons
   ------------------------- */

.activation-replace-confirm {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff4df;
    border-radius: 16px;
    padding: 16px;
    margin: 18px 0;
}

.activation-replace-confirm p {
    margin: 0;
    line-height: 1.45;
    color: #5f4100;
}

.activation-button-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.activation-choice-submit {
    justify-content: center;
    margin-top: 6px;
}

.activation-choice-card .activation-choice-submit,
.activation-choice-card .activation-create-new-btn {
    width: 320px;
    max-width: 100%;
    justify-content: center;
    text-align: center;
}

.activation-choice-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 24px 0;
    color: #777;
    font-size: 14px;
}

.activation-choice-divider::before,
.activation-choice-divider::after {
    content: "";
    height: 1px;
    background: #e5e5e5;
    flex: 1;
}

.activation-secondary-button {
    width: 100%;
    border: 2px solid currentColor;
    background: transparent;
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 700;
    cursor: pointer;
}

.activation-empty-state {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 18px;
    margin: 20px 0;
    text-align: center;
    color: #666;
}

.activation-empty-state p {
    margin: 0;
}

/* -------------------------
   Responsive
   ------------------------- */

@media (max-width: 991.98px) {
    .code_activation_card {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .code_activation_image {
        width: 180px;
    }
}

@media (max-width: 575.98px) {
    .code_activation_card {
        gap: 16px;
    }

    .code_activation_image {
        width: 150px;
    }

    .activation-choice-card {
        padding: 20px;
        border-radius: 20px;
    }

    .activation-choice-header h2 {
        font-size: 23px;
    }

    .activation-bagly-card {
        align-items: flex-start;
        gap: 12px;
        padding: 12px;
    }

    .activation-bagly-image-wrap {
        flex-basis: 62px;
        width: 62px;
        height: 62px;
        border-radius: 14px;
    }

    .activation-bagly-name {
        font-size: 16px;
    }

    .activation-bagly-status {
        font-size: 12px;
    }

    .activation-replace-confirm {
        gap: 12px;
    }

    .activation-button-row {
        display: block;
    }

    .activation-choice-card .activation-choice-submit,
    .activation-choice-card .activation-create-new-btn {
        width: 100%;
    }
}


/* =========================================================
   13) Responsive — Tablet / Mobile
   ========================================================= */

@media (min-width: 576px) {
    .card_area_main.card_with_list.for_mobile {
        height: 100%;
        min-height: 230px;
    }
}

@media (max-width: 991.98px) {
    #mobileControlsSlot {
        margin-top: 20px;
    }

    .print-title-block {
        margin-bottom: 30px;
    }
}

@media (max-width: 991px) {
    .upload-hint {
        display: none;
    }

    .image-upload {
        margin: 20px 0 20px 0;
    }
}

@media (max-width: 900px) {
    .global-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .global-card-body {
        grid-template-columns: 1fr;
    }

    .global-card-switch {
        justify-self: start;
    }
}

@media (max-width: 768px) {
    .page-navbar__logo {
        width: 80px;
    }

    .configuration-wrapper {
        padding: 14px;
    }

    .configuration-card {
        padding: 16px;
        border-radius: 14px;
    }

    .configuration-card.travel-card {
        grid-template-columns: 90px 1fr auto;
        gap: 12px;
    }

    .travel-card img {
        width: 90px;
        height: 90px;
    }

    .notice_card_traveller_empty > .my_btn_primary {
        margin-top: 10px;
        display: inline-flex;
    }

    .form-action-row {
        gap: 12px;
        width: 100%;
    }

    .form-action-row .my_btn_primary,
    .form-action-row .my_btn_close {
        flex: 1;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .desktop-back-label {
        display: none;
    }

    .mobile-back-label {
        display: inline;
    }

    .segment-action-stack {
        flex-direction: column;
        gap: 14px;
    }

    .segment-main-actions,
    .segment-secondary-actions {
        width: 100%;
        display: flex;
        gap: 12px;
    }

    .segment-main-actions .my_btn_primary,
    .segment-main-actions .my_btn_close,
    .segment-secondary-actions .my_btn_primary,
    .segment-secondary-actions .my_btn_danger {
        flex: 1;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .app-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
        margin-top: 12px;
    }

    .app-card-actions > a,
    .app-card-actions > button,
    .app-card-actions > form {
        width: 100%;
        min-width: 0;
    }

    .app-card-actions .my_btn_primary,
    .app-card-actions .my_btn_danger,
    .app-card-actions form .my_btn_danger {
        width: 100%;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 14px;
    }

    .app-card-actions form {
        margin: 0;
    }

    .mobile-action-spacer {
        display: block;
        height: 20px;
    }
}

@media (max-width: 767.98px) {
    .bagly-toast-container {
        left: 12px;
        right: 12px;
        bottom: 16px;
        top: auto;
        transform: none;
    }

    .bagly-toast-container .toast {
        width: 100%;
        min-width: unset;
        max-width: unset;
    }

    .my-account-title {
        font-size: 1.5rem;
    }

    .travel_mode_title h2 {
        font-size: 18px;
    }

    .welcome_area_section {
        background-image: url('../img/welcome_bg.png');
        background-position: center 20%;
        background-size: contain;
        background-repeat: no-repeat;
        width: auto;
        height: auto;
    }
}

@media (max-width: 767px) {
    .page-navbar__container {
        padding: 0 12px;
    }

    .page-navbar__title {
        font-size: 22px;
    }

    .page-content {
        padding: 20px 12px;
    }

    .page-navbar__icon svg {
        width: 30px;
        height: 30px;
        display: block;
    }

    .actions {
        flex-direction: column;
    }

    .print-action-form {
        width: 100%;
    }

    .print-action-form .save_btn {
        width: 100%;
        height: 44px;
    }

    .field label {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .field .value,
    #widthValue,
    #heightValue {
        font-size: 16px !important;
    }

    #widthValue,
    #heightValue {
        font-weight: 700;
    }

    .cta-print-code {
        min-height: 124px;
        gap: 18px;
        padding: 24px 22px 24px 20px;
        border-radius: 14px;
    }

    .cta-print-code__icon {
        width: 76px;
        height: 76px;
        min-width: 76px;
    }

    .cta-print-code__icon img {
        width: 42px;
        height: 42px;
    }

    .cta-print-code__content h2 {
        font-size: 20px;
        line-height: 28px;
        margin-bottom: 6px;
    }

    .cta-print-code__content p {
        font-size: 15px;
        line-height: 21px;
    }

    .cta-print-code__arrow {
        width: 18px;
        min-width: 18px;
    }

    .cta-print-code__arrow svg {
        width: 14px;
        height: 24px;
    }

    .cta-section__intro {
        margin: 0 0 20px 0;
    }

    .product-section-headline {
        margin: 32px auto 22px auto;
        padding: 0 18px;
    }

    .product-section-headline__title-row {
        gap: 14px;
    }

    .product-section-headline__title-row span {
        height: 1px;
    }

    .product-section-headline__title-row h2 {
        font-size: 18px;
        line-height: 28px;
    }

    .product-section-headline p {
        margin-top: 8px;
        font-size: 15px;
        line-height: 22px;
    }

    .product-grid-section {
        padding: 0 18px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card {
        min-height: 206px;
        padding: 10px 8px 12px 8px;
        border-radius: 9px;
    }

    .product-card__image {
        aspect-ratio: 1 / 0.78;
        margin-bottom: 8px;
    }

    .product-card h3 {
        font-size: 16px;
        font-weight: 600;
        line-height: 22px;
        margin-bottom: 2px;
    }

    .product-card p {
        font-size: 20px;
        line-height: 26px;
    }

    .shop-button {
        min-height: 48px;
        margin-top: 28px;
        gap: 12px;
        border-radius: 7px;
        font-size: 18px;
        line-height: 24px;
    }

    .shop-button__icon svg {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 640px) {
    .customer-type-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .card_image {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 575.98px) {
    .card_area_main.card_with_list.for_mobile {
        display: block;
        padding: 16px;
    }

    .for_mobile h3.mobile_title {
        font-size: 22px;
        line-height: 26px;
        font-weight: 600;
        display: block;
        margin-bottom: 14px;
        align-self: flex-start;
    }

    .card_area_main.for_mobile > .d-flex.d-sm-none {
        align-items: flex-start !important;
    }

    .for_mobile_flex {
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .for_mobile_flex .card_image {
        width: 100px;
        height: 100px;
        flex: 0 0 100px;
        align-self: flex-start;
        margin-top: 0;
    }

    .card_content {
        align-self: flex-start;
    }

    .card_title.with_switch {
        display: none;
    }

    .card_des {
        margin-top: 0;
    }

    .card_des ul {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .card_des_bottom {
        margin-top: -18px;
        align-items: flex-end;
    }

    .config_info_card .form_title {
        text-align: left;
        margin-bottom: 22px;
    }

    .config_info_card .form_title h2 {
        font-size: 26px;
        line-height: 32px;
        font-weight: var(--font_weight_700);
        color: var(--primary_active_color);
        margin-bottom: 10px;
    }

    .config_info_card .form_title p {
        font-size: 16px;
        line-height: 24px;
        color: var(--body_text_color);
    }
}
