@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

* {
    outline: none;
}

body {
    background-color: #e7eaf1;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px;
    color: #2b333e;
}

h1 {
    font-size: 22px;
    margin: 0;
}

h4 {
    margin: 8px 0;
    padding: 0 0 8px 0;
    display: block;
    border-bottom: 1px dashed #ccc;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover,
a:focus {
    text-decoration: none;
}

ul {
    margin: 2px 0;
}

li {
    line-height: 1.4;
}

.button {
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 15px;
    cursor: pointer;
    border: 1px solid #e7eaf1;
    background: #fff;
    color: #2b333e;
    border-radius: 5px;
    color: inherit;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s ease-out;
}

.button:hover, a:hover {
    text-decoration: underline;
}

.button.buttonSave {
    background: #2b333e;
    color: #fff;
}

.buttonSaveArea {
    padding: 15px 0;
    text-align: center;
    margin: auto;
}

.looseButton {
    background: #f7f7f7;
    /* height: -webkit-fill-available; */
}

.looseButton.active {
    background: #2b333e;
    color: #f7f7f7;
}

input, select, textarea {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 5px;
    font-size: 13px;
    line-height: 25px;
    height: auto;
    min-height: auto; /* Reset min-height */
    /*  min-height: -webkit-fill-available; */
}

.productSettings input, .productSettings select {
    margin-right: auto;
    width: -webkit-fill-available;
}

.productSettings input[type="checkbox"] {
    width: auto;
}

.formLabelAndInput {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(auto, 190px) 1fr;
    align-items: center;
}

.formCheckboxAndLabel {
    display: grid;
    gap: 10px;
    grid-template-columns: 30px 1fr;
    align-items: center;
}

.formStandardGrid {
    display: grid;
    gap: 10px;
}

select#pageResultsLimit {
    height: 42px;
    padding: 10px;
    margin-left: 5px;
}

[type="checkbox"], [type="radio"] {
    box-sizing: border-box;
    padding: 0;
    display: flex;
    width: 14px;
    place-self: center;
}

.layout {
    display: grid;
    grid-template-areas:
        'aside main';
    grid-template-columns: 230px auto;
    grid-template-rows: 100vh;
}

.header_logo {
    grid-area: logo;
}

header {
    grid-area: header;
    display: grid;
}

aside {
    grid-area: aside;
}

#main {
    grid-area: main;
    padding: 10px;
}

body.loginScreen {
    background-image: url("../../images/background-2IDLNih.jpg");
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
}

.loginScreen .layout {
    grid-template-areas: 'main';
    grid-template-columns: 100%;
    grid-template-rows: 100vh;
    align-items: center;
    justify-items: center;
}

.loginScreen .layout .formLabelAndInput {
    grid-template-columns: minmax(auto, 100px) 1fr;
}

.security {
    width: 400px;
}

.logo {
    height: 80px;
    width: 100%;
    display: block;
    margin: 20px auto 0 auto;
    padding: 0;
    background-image: url("../../images/4over_logo_white_130px-rXlYUx7.png");
    background-position: center;
    background-size: initial;
    background-repeat: no-repeat;
}

#menu {
    background: #2b333e;
    display: grid;
    gap: 10px;
    align-content: space-between;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 230px;
    z-index: 1000;
}

#menu.admin {
    background: #882311;
}

#menu p {
    display: block;
    text-transform: uppercase;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    background: #00000036;
    padding: 10px;
}

#menu .menuGrid {
    display: grid;
    gap: 20px;
}

#menu .menuItem a > div {
    padding: 10px;
    align-items: center;
    display: flex;
    height: 20px;
}

#menu .menuItem.logout {
    background: #000000;
}

#menu .menuItem a > div:hover {
    background: #222933;
}

#menu svg {
    width: 18px;
    margin-right: 10px;
    fill: #E7EAF1;
}

#menu span,
#menu a {
    color: #E7EAF1;
}

#menu span {
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
}

#menu span > a {
    color: #fff;
    font-size: 14px;
    padding-left: 4px;
}

header label {
    font-size: 12px;
}

.small-card {
    max-width: 600px;
}

.productsIndex .header_items_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.merchant_productsIndex .header_items_grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.importIndex .header_items_grid {
    display: grid;
    gap: 10px;
}

.header_items_grid > div {
    background: #fff;
    padding: 10px;
    border-bottom: 1px solid #e1e1e1;
}

.header_items_grid > div.headerButtonsEnd {
    display: flex;
    justify-content: flex-end;
}

.productsIndex .mass-update-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.productsIndex .mass-update-form .mass-update-submit-button {
    align-self: center;
}

.productsPreviewEditor {
    height: 100vh;
    overflow-y: hidden;
}

/* Product Preview */
.productPreview {
    height: 100vh;
    overflow: hidden;
}

.productPreview #main {
    padding: 0;
    overflow: hidden;
    height: 100vh;
}

.productPreview header {
    display: none;
}

.product-preview-layout {
    height: 100vh;
}

.product-preview-sidebar {
    overflow-y: auto;
    height: 100%;
    padding: 10px;
    border-right: 1px solid #ddd;
    background: #fafafa;
    box-sizing: border-box;
}

.product-preview-product-link {
    display: block;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #337ab7;
}

.product-preview-product-link:hover {
    text-decoration: underline;
}

.product-preview-tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.product-preview-tab {
    padding: 6px 12px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
}

.product-preview-tab.active {
    background: #1f8dd6;
    color: #fff;
    border-color: #1f8dd6;
}

.product-preview-parts {
    margin-top: 8px;
}

.product-preview-part-box {
    display: grid;
    grid-template-columns: 44px 1fr minmax(auto, 160px);
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.product-preview-part-box.configured {
    border-color: #5cb85c;
}

.product-preview-part-box.active {
    border-color: #337ab7;
    background: #e8f0fe;
}

.product-preview-part-box.active.configured {
    border-color: #337ab7;
}

.product-preview-part-thumb {
    width: 44px;
    height: 44px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-part-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-preview-part-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.product-preview-part-btn:hover {
    background: #f0f0f0;
}

.product-preview-part-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.product-preview-part-name {
    font-size: 13px;
    font-weight: 600;
}

.product-preview-part-id {
    font-size: 11px;
    color: #888;
}

.product-preview-part-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-preview-part-actions .product-preview-part-btn {
    width: 100%;
    box-sizing: border-box;
}

.product-preview-copy-select {
    width: 100%;
    box-sizing: border-box;
    padding: 5px 8px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    color: #333;
    cursor: pointer;
}

.product-preview-copy-select:hover {
    background: #f0f0f0;
}

.product-preview-empty {
    padding: 12px 0;
    color: #999;
    font-size: 13px;
}

.product-preview-main {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
}

.product-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
    flex-wrap: wrap;
}

.product-preview-toolbar-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.product-preview-toolbar-inputs label {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.product-preview-input {
    width: 70px;
    padding: 3px 6px;
    font-size: 12px;
}

.product-preview-slider {
    width: 80px;
}

.product-preview-rotation-value {
    font-size: 12px;
    min-width: 30px;
}

.product-preview-canvas {
    position: relative;
    overflow: hidden;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-canvas-placeholder {
    color: #2b333e;
    font-size: 22px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-preview-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #ddd;
    background: #f5f5f5;
}

.product-preview-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.product-preview-info-item strong {
    margin-left: 4px;
}

.productsIndex .filterGrid div, .assignProducts .filterGrid > div, .ordersIndex .filterGrid div, .merchant_productsIndex .filterGrid div, .customersIndex .filterGrid div {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: center;
    text-align: left;
    height: 100%;
}

.merchant_productsIndex .filterGrid {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 10px;
}

.customersIndex .filterGrid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
}

.customersIndex .filterGrid input[type="checkbox"] {
    justify-self: start;
}

.productsIndex .filterGrid {
    display: grid;
    grid-template-columns: auto 110px 80px 130px 150px 70px;
    gap: 10px;
}

.ordersIndex .filterGrid {
    display: grid;
    grid-template-columns: 1fr 1fr minmax(100px, 200px);
    gap: 10px;
}

.listing {
    padding-bottom: 20px;
}

.listingTitleAndButtons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #e1e1e1;
}

.listingTitleAndButtons > * {
    display: flex;
    align-items: center;
    gap: 20px;
}

.promoLabel {
    padding: 5px;
    border-radius: 3px;
    background: #d7dff1;
    border: 1px solid #d7dff1;
    color: #2b333e;
    white-space: nowrap;
}

.promoVendorHit {
    background: #008fdb;
    border: 1px solid #008fdb;
    color: #fff;
}

.promoVendorKoozie {
    background: #2d5291;
    border: 1px solid #2d5291;
    color: #fff;
}

.promoLabelInfo {
    background: #d7dff1;
    color: #2b333e;
    border: 1px solid #2b333e;
}

.promoLabelInvalid {
    background: #bb3018;
    color: #fff;
    border: 1px solid #bb3018;
}

.promoLabelWarning {
    background: #fff6e2;
    border: 1px solid #ffb300;
    color: #976a00;
}

.promoLabelError {
    background: #fff6f4;
    color: #bb3018;
    border: 1px solid #bb3018;
}

.promoLabelSuccess {
    background: #d6ffe6;
    border: 1px solid #00973a;
    color: #00973a;
}

.pricingLabelAccordion {
    display: flex;
    align-items: center;
    gap: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
    border-top: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    empty-cells: show;
    font-size: 13px;
    margin-bottom: 20px;
}

table td, table th {
    color: #2b333e;
    padding: 1px 5px;
    text-align: left;
    vertical-align: middle;
    line-height: 1.4;
}

table tr:nth-child(odd) {
    background: #fff;
}

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

table tbody tr:hover, table tbody tr:hover td, table tbody tr:hover img {
    background: #882311;
    color: #fff;
    mix-blend-mode: normal;
}

table tbody tr:hover th {
    color: #fff;
}

table tbody tr.table_nohover:hover td, table tbody tr.table_nohover:hover th {
    background: #fff;
    color: #999;
}

table tbody tr.row-inactive,
div.row-inactive {
    opacity: 0.4;
}

table thead {
    border-bottom: 1px solid #e1e1e1;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
}

table th {
    padding: 5px;
    height: 25px;
}

table th, table td {
    border-width: 0 0 1px 0;
    border-bottom: 1px solid #f1f1f1;
}

table > tr:last-child > td {
    border-bottom-width: 0;
}

table img {
    height: 40px;
    mix-blend-mode: multiply;
    border-radius: 5px;
    vertical-align: middle;
}

.warningLog td {
    background: #fff6e2;
    color: #976a00;
    font-weight: bold;
    padding: 5px;
}

.errorLog td {
    background: #fff6f4;
    color: #bb3018;
    font-weight: bold;
    padding: 5px;
}

.minwidth550 {
    min-width: 550px;
}

.tableWrap {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
}

.tableButtons {
    place-content: end;
}

.tableButtons a, .ordertableButtons a {
    color: #2b333e;
    font-size: 13px;
    padding: 7px 10px;
    line-height: 14px;
    background: #fff;
}

.tableButtons a:hover, .ordertableButtons a:hover {
    text-decoration: underline;
    color: #fff;
    fill: #fff;
    background: #222933;
    border-color: #222933;
}

.card {
    display: grid;
    gap: 10px;
    align-content: flex-start;
    padding: 10px;
    background: #fff;
}

.productUpdateGrid {
    display: grid;
    gap: 10px;
    grid-template-areas:
        'productBackgroundImages productBackgroundImages productBackgroundImages productBackgroundImages'
        'productSettings productVendorData productInternalData productImprintCharges'
        'productBottomRow productBottomRow productBottomRow productBottomRow';
    grid-template-columns: auto auto auto 540px;
}

.productBottomRow {
    grid-area: productBottomRow;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.partLocationAvailabilityForm .plaItem {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    cursor: pointer;
}

.partLocationAvailabilityForm .plaItem--location {
    padding-left: 24px;
}

.partLocationAvailabilityForm .plaConnector {
    color: #999;
}

.partLocationAvailabilityForm .plaSwitchInput {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.partLocationAvailabilityForm .plaSwitch {
    position: relative;
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    border-radius: 22px;
    background: #4caf50; /* odznaczony = dostępny = zielony */
    transition: background .15s ease;
}

.partLocationAvailabilityForm .plaSwitch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 20px; /* gałka po prawej gdy dostępny */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
    transition: left .15s ease;
}

.partLocationAvailabilityForm .plaSwitchInput:checked + .plaSwitch {
    background: #ccc; /* zaznaczony = wyłączony = szary */
}

.partLocationAvailabilityForm .plaSwitchInput:checked + .plaSwitch::after {
    left: 2px; /* gałka po lewej gdy wyłączony */
}

.partLocationAvailabilityForm .plaSwitchInput:focus-visible + .plaSwitch {
    box-shadow: 0 0 0 2px rgba(76, 175, 80, .4);
}

.partLocationAvailabilityForm .plaSwitchInput:checked ~ .plaText {
    color: #999;
    text-decoration: line-through;
}

.partLocationAvailabilityActions {
    margin-top: 10px;
}

.merchant_productUpdateGrid {
    display: grid;
    gap: 10px;
    grid-template-areas: 
        'productSettings productVendorData productBackgroundImages';
    grid-template-columns: auto auto 540px;
}

.productUpdateMainImage img {
    width: 100%;
    border: 1px solid #E7EAF1;
}

.productUpdatePartsGallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, 120px);
    grid-template-rows: repeat(auto-fit, 120px);
    gap: 5px;
}

.productBackgroundImages {
    grid-area: productBackgroundImages;
    display: grid;
    grid-template-columns: 243px 1fr;
    gap: 7px;
}

.productBackgroundImages.merchant_productBackgroundImages {
    grid-template-columns: repeat(4, 1fr);
}

.productBackgroundImages.merchant_productBackgroundImages .productUpdateMainImage {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
}

.productBackgroundImages.merchant_productBackgroundImages .image_box {
    width: 124px;
    height: 124px;
}

.productSettings {
    grid-area: productSettings;
}

.productVendorData {
    grid-area: productVendorData;
}

.productInternalData {
    grid-area: productInternalData;
}

.productImprintCharges {
    grid-area: productImprintCharges;
}

.productSettings h1, .productVendorData h1, .productInternalData h1, .pricingDataGrid h1, .orderedProductDetails h2 {
    display: flex;
    gap: 20px;
    align-items: center;
}

.productVendorData h1, .productInternalData h1, .pricingDataGrid h1 {
    justify-content: space-between;
}

.productVendorData h1 > div, .productInternalData h1 > div, .pricingDataGrid h1 > div {
    display: flex;
    gap: 10px;
}

.productSettings #productForm {
    display: grid;
    gap: 10px;
}

.productSettings .promoLabel, .productVendorData .promoLabel, .productInternalData .promoLabel, .pricingDataGrid .promoLabel, .orderedProductDetails .promoLabel {
    font-size: 14px;
    font-weight: normal;
    display: flex;
    align-items: center;
}

.productSettingGroups {
    display: grid;
    gap: 10px;
}

.productSettingGroups > div {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 10px;
    justify-content: left;
    align-items: center;
}

.vendorProductDescription {
    line-height: 1.4;
}

.pricingDataGrid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
}

.productWarningsAndErrorsGrid {
    display: grid;
    gap: 5px;
}

.productWarningsAndErrorsGrid span {
    line-height: 1.4;
    padding: 4px;
}

.productWarningsAndErrors h1 {
    justify-content: space-between;
    display: flex;
    gap: 20px;
}

.productWarningsAndErrors h1 > div {
    display: flex;
    gap: 10px;
}

.products_assignment_list .product_row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 5px;
    align-items: center;
}

.products_assignment_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr;
    gap: 10px;
}

.email_template_grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

.email_template_grid h1 {
    margin-bottom: 10px;
}

.email_template_variables {
    display: grid;
    gap: 10px;;
}

.email_template_variables > div {
    display: grid;
    gap: 3px;
}

#promo_decoration_preflightFileTypes {
    display: grid;
    gap: 10px;
    grid-template-columns: 20px 1fr;
}

.cardArtworkUploader form {
    display: grid;
    gap: 20px;
}

.cardArtworkUploader form > div {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    gap: 10px;
    justify-self: start;
    align-items: center;
}


/* IMAGES GALLERY*/
.image_box {
    border: 1px solid #E7EAF1;
    width: 118px;
    height: 118px;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.action_buttons {
    position: absolute;
    right: 0;
}

.action_buttons > a {
    display: flex;
    padding: 3px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #E7EAF1;
    margin: -1px;
    cursor: pointer;
}

.action_buttons > a:hover svg {
    fill: #fff;
}

.action_buttons svg {
    width: 16px;
    height: 16px;
    fill: #8D8D8D;
}

.action_buttons_default:hover {
    background: #00AEEF;
}

.action_buttons_hide:hover {
    background: #FF3838;
}

.action_buttons_default.active {
    background: #00AEEF;
}

.action_buttons_default.active svg {
    fill: #fff;
}

.action_buttons_hide.active {
    background: #FF3838;
}

.action_buttons_hide.active svg {
    fill: #fff;
}

.image_box span {
    background: #129fea;
    padding: 7px;
    color: #fff;
    width: auto;
    display: block;
    position: absolute;
    bottom: 0;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    margin: 4px 5px;
    border-radius: 4px;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
    opacity: 0.8;
    filter: alpha(opacity=80);
}

.modal {
    position: fixed;
    top: 10%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 1050;
    width: 560px;
    background-color: #ffffff;
    border: 1px solid #999;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border: 1px solid #999;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    outline: none;
    -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
    -webkit-background-clip: padding-box;
    -moz-background-clip: padding-box;
    background-clip: padding-box;
}

.modal-header {
    padding: 9px 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.modal-header .close {
    margin-top: 2px;
}

.modal-header h3 {
    margin: 0;
    line-height: 30px;
}

.modal-body {
    position: relative;
    max-height: 400px;
    padding: 15px;
    overflow-y: auto;
}

.product-picker-modal .modal-body {
    padding: 0 15px 15px 15px;
}

.product-picker-modal table thead {
    top: -1px
}

.modal-footer {
    padding: 14px 15px 15px;
    margin-bottom: 0;
    text-align: right;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    -webkit-border-radius: 0 0 6px 6px;
    -moz-border-radius: 0 0 6px 6px;
    border-radius: 0 0 6px 6px;
    zoom: 1;
    -webkit-box-shadow: inset 0 1px 0 #ffffff;
    -moz-box-shadow: inset 0 1px 0 #ffffff;
    box-shadow: inset 0 1px 0 #ffffff;
}

.modal-footer:before {
    display: table;
    line-height: 0;
    content: "";
}

.modal-footer:after {
    display: table;
    line-height: 0;
    content: "";
    clear: both;
}

.hideModal {
    display: none;
}

.showModal {
    display: block;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1040;
    background-color: #000000;
}

.modal-close-button {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 22px;
    height: 22px;
}

.product-issues-trigger {
    cursor: pointer;
}

.issuesModalInfo {
    display: grid;
    gap: 6px;
    margin-bottom: 15px;
}

.issuesModalInfo > div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
}

.issuesModalSection + .issuesModalSection {
    margin-top: 15px;
}

.issuesModalList {
    display: grid;
    gap: 6px;
}

.issuesModalRow--warning {
    color: #976a00;
}

.issuesModalRow--error {
    color: #bb3018;
}

.issuesModalBadge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: normal;
    vertical-align: middle;
}

/* IMAGES GALLERY END */

/* IMPRINT CHARGES */
.part-container h4 {
    border-top: 1px dashed #ccc;
    padding: 8px;
    margin: 0px;
}

.part-container h4:first-of-type {
    border-top: 0;
}

.location-container {
    display: grid;
    gap: 10px;
}

.accordion-data {
    border: 1px solid #ccc;
    border-bottom: 0;
}

.accordion-data.noborder {
    border-width: 1px 0 0 0px;
}

.accordion-data.part-container {
    padding: 0;
}

.accordion-data.accordion-parent {
    background: #f1f1f1;
    padding: 5px;
    border: 1px solid #ccc;
}

.imprintDecorationMethod {
    padding-left: 20px;
    margin: 8px 0;
}

.decoration-container {
    padding-left: 40px;
    display: grid;
    gap: 5px;
}

.location-container {
    border-bottom: 1px solid #ccc;
}

.decoration-container span {
    display: block;
}

/* IMPRINT CHARGES END*/

.sentOrdersDetails {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, auto);
}

.table_purchaseprice {
    color: #999 !important;
}

.table_purchaseprice_border {
    border-top: 2px dotted #ddd;
    background: #ffffff;
}

/* DROPDOWN BUTTONS IN ORDERS*/
.dropdown_button_container {
    position: relative;
    gap: 10px;
}

.button.dropdown_action {
    padding-right: 10px;
}

.droppeddown_items {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow: hidden;
    margin-top: 5px;
}

.droppeddown_items a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease
}

.droppeddown_items a:hover {
    background-color: #f7f7f7;
    text-decoration: underline;
}

.droppeddown_items.show {
    display: block;
}

/* DROPDOWN BUTTONS IN ORDERS END*/

/* EMAIL SETTINGS */
.emailer_grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
}

.alert-mailer {
    font-family: monospace;
    line-height: 1.6;
    display: grid;
}

.mailer-success {
    background: #d6ffe6;
    border: 1px solid #00973a;
    color: #00973a;
}

.mailer-danger {
    background: #fff6f4;
    color: #bb3018;
    border: 1px solid #bb3018;
}

/* EMAIL SETTINGS END */

/* Badges grid styling */
.badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 15px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    width: 100%;
    max-width: none;
    min-height: 130px;
    box-sizing: border-box;
}

.badge-item:active {
    transform: scale(0.98);
}

.badge-item:hover {
    border-color: #007cba;
    background: #f0f8ff;
}

.badge-item:has(input[type="checkbox"]:checked) {
    border-color: #007cba;
    background: #e6f3ff;
}

.badge-item input[type="checkbox"] {
    position: absolute;
    top: 8px;
    right: 8px;
    transform: scale(1.1);
    z-index: 10;
    pointer-events: auto;
}

.badge-item label.badge-clickable-area {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 1;
    margin: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 12px;
    box-sizing: border-box;
}

.badge-item label.badge-name {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: #333;
    line-height: 1.2;
}

.badge-item label {
    cursor: pointer;
}

.badge-image {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
    pointer-events: none;
    flex-shrink: 0;
    position: relative;
    z-index: 0;
}

.badge-image img {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.badge-no-image {
    background: #f0f0f0;
    border: 1px dashed #ccc;
}

.no-image-placeholder {
    font-size: 10px;
    color: #999;
    text-align: center;
}

/* Product Preview — Canvas Editor */
.product-preview-panel-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    overflow: hidden;
}

.product-preview-notification {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    animation: ppn-fade-in 0.2s ease;
    pointer-events: none;
}

@keyframes ppn-fade-in {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.product-preview-panel-content {
    position: relative;
}

.product-preview-tool.active {
    background-color: #2196F3;
    color: #fff;
    border-color: #1976D2;
}

.product-preview-tool.active:hover {
    color: #fff;
}

.product-preview-tool:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.product-preview-canvas-wrapper {
    position: relative;
    width: 600px;
    height: 600px;
}

.product-preview-canvas-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    object-fit: contain;
    pointer-events: none;
}

.product-preview-canvas-wrapper .canvas-container {
    position: absolute;
    top: 0;
    left: 0;
}

.product-preview-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-preview-image-modal-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

.product-preview-image-modal-close {
    text-align: right;
    margin-bottom: 12px;
}

.product-preview-image-modal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.product-preview-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.product-preview-image-thumb {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    background: #f9f9f9;
    padding: 4px;
}

.product-preview-image-thumb:hover {
    border-color: #2196F3;
}

.product-preview-image-part-label {
    font-size: 11px;
    color: #555;
    text-align: center;
}