/* Editor */
.tx-step:has(.collapse.show) {
    background-color: var(--color-lightgrey-std);
    transition: opacity 1s;
}

.tx-step:first-of-type {
    border-radius: 0px;
    border: 0px !important;
}

.tx-step:not(:first-of-type) {
    border-top: 1px solid #000000;
}

.tx-step:first-of-type>.accordion-header .accordion-button {
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}

.tx-step {
    border-top: 1px solid #efefef !important;
    border-bottom: 0px;
    border-left: 0px;
    border-right: 0px;
}

.tx-step {
    box-shadow: none;
    border-bottom: 1px solid var(--color-white);
}

.tx-step:not(.collapsed) {
    color: var(--color-black-std);
    background-color: var(--color-lightgrey-std);
    box-shadow: none;
    border-bottom: 1px solid var(--color-white);
}

.tx-step-button:focus {
    box-shadow: none;
}

.tx-step-button::after {
    width: 20px;
    height: 20px;
    background-size: 14px;
    background-color: var(--color-black-std);
    border-radius: 20px;
    background-position: center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath stroke-width='2' d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.tx-step-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath stroke-width='2' d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.tx-step.collapse {
    background-color: var(--color-lightgrey-std);
}

.tx-step-body h5 {
    font-size: 14px;
    display: inline-block;
}

.editor_button_ct {
    gap: 15px;
}

.editor_button_ct button {
    white-space: break-spaces;
}

.editor_button_color {
    margin-top: 5px;
}

.editor_button_color span {
    width: 14px;
    height: 14px;
    background-color: #C8102E;
    border-radius: 10px;
    margin: 0px 5px 0px 0px;
}

.editor_button_color span:nth-child(2) {
    background-color: #000000;
    margin: 0px 5px 0px 0px;
}

.editor_button_color span:nth-child(3) {
    background-color: #1FB748;
    margin: 0px 5px 0px 0px;
}

.editor_button_color span:nth-child(4) {
    background-color: #226BDE;
    margin: 0px 0px 0px 0px;
}

.tx-step-body .btn {
    border-radius: 5px;
    font-size: 13px;
    font-weight: 300;
}

.tx-step-body .btn-light {
    background-color: var(--color-white-std);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.16);
}

#CopyConfigurationPrefButtons button {
    font-weight: 800;
    font-size: 14px;
}

#CopyConfigurationPrefButtons button:last-child {
    margin-left: 4px;
}

.tx-step-body .editor_step__select-previous-configuration .btn-light.selected,
.tx-step-body .editor_step .btn.btn-light.selected {
    border: 2px solid #1fb748;
}

.tx-step-body .editor_step__select-previous-configuration .btn-light * {
    pointer-events: none;
}

.tx-step-body .btn span {
    display: block;
    font-size: 11px;
    color: var(--color-medgrey-dark);
    text-wrap: auto;
}

.editor_step {
    padding: 1rem 1rem 1px;
    border-bottom: 1px solid var(--color-white-std);
}

.editor_step:last-of-type {
    border-bottom: 0px;
}

.editor_step_row {
    margin: 0px 0px 15px 0px;
}

.editor_step input {
    display: inline-block;
    width: 100%;
    height: 40px;
    border: 0px;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.16);
    border-radius: 5px;
    padding: 0px 10px;
}

#orderReference {
    width: 100%;
}

.editor-position-selector label {
    padding-top: 2px;
}

.editor_step_row .checkbox_input {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.editor_step_row .checkbox_input input {
    display: inline;
    height: auto;
    width: auto;
    border: inherit;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.16);
    border-radius: 0px;
    padding: 0px 5px;
}

.size_input>div>div {
    background-color: #fff;
    width: 100%;
    border-radius: 5px;
    text-align: center;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.16);
}

.size_input>div>div label {
    border-bottom: 1px solid var(--color-lightgrey-dark);
    width: 100%;
    font-weight: 800;
    padding: 7px 0px;
}

.size_input input {
    box-shadow: none;
    background-color: transparent;
    text-align: center;
}

.size_input input::placeholder {
    color: var(--color-medgrey-dark);
}

.btn_switch {
    background-color: var(--color-white-std);
    border: 1px solid var(--color-medgrey-std);
    border-radius: 5px;
    text-wrap: nowrap;
}

.btn_switch .btn-sm {
    padding: 2px 5px;
    border-radius: 4px;
}

.flow_question {
    border-top: 1px solid #efefef;
}

.flow_question h2 {
    font-size: 16px;
    padding: 0px var(--bs-accordion-btn-padding-x);
}

.info_tooltip {
    display: inline-block;
    background-color: var(--color-medgrey-std);
    border-radius: 20px;
    width: 18px;
    height: 18px;
    font-family: times;
    font-weight: bold;
    color: var(--color-white-std);
    padding: 0px 5px 0px;
    font-style: italic;
    font-size: 12px;
}

.recap_ct {
    background-color: var(--color-lightgrey-std);
    position: relative;
    top: 0px;
}

.recap_ct h3 {
    border-bottom: 1px solid var(--color-lightgrey-darker);
    font-size: 20px;
}

.recap_ct h4 {
    font-size: 16px;
}

.editor-color-selector {
    gap: 5px;
}

.editor-color-selector div {
    height: 27px;
    width: 27px;
    border-radius: 50px;
    background-color: var(--color-red-std);
    cursor: pointer;
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.08);
    position:relative;
    overflow: hidden;
}

.editor-color-selector > div > div {
    background-color: #B9BBBE;
    display: block;
    position: absolute;
    top: 4px;
    left: 0;
    height: 76px;
    width: 84px;
    border-radius: 0px;
    transform: rotate(44deg);
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0);
}

.editor-color-selector div.selected {
    box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.38);
    border: 1px solid transparent;
}

/* 
 *  New * 
*/

#tx-steps {
    margin: 20px 0px;
}

#tx-steps .flow_question {
    padding: 1rem 1.25rem !important;
}

.tx-step-heading {
    margin: 0;
    padding: 1rem 1.25rem;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #efefef;
}

.tx-step:first-of-type .tx-step-heading {
    border-top: none !important;
}

.tx-step-heading .step-icon {
    width: 20px;
    height: 20px;
    display: block;
    background-color: black;
    border-radius: 50%;
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.tx-step-heading .collapse {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath stroke-width='2' d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.tx-step-heading .expand {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath stroke-width='2' d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

.tx-step-body {
    overflow: hidden;
    max-height: 0;
    transition: 500ms ease;
}

.tx-step.active {
    background-color: var(--color-lightgrey-std);
}

.tx-step.active .tx-step-heading {
    border-bottom: 1px solid var(--color-white);
}

.tx-step.active .tx-step-body,
.tx-step.active .tx-child-step.active .tx-step-body {
    max-height: 1000px;
    overflow: visible;
    transition: 500ms ease;
}

.tx-step.active .tx-child-step .tx-step-body {
    overflow: hidden;
    max-height: 0;
}

.tx-step .collapse {
    display: none;
}

.tx-step.active .collapse {
    display: block;
}

.tx-step.active .expand {
    display: none;
}

#tx-product-configurator .bullet_list {
    list-style: none;
}

#tx-product-configurator .bullet_list {
    flex-wrap: wrap;
}

#tx-product-configurator .product-image {
    max-width: 100%;
    position: sticky;
    top: 25px;
}

#tx-product-configurator .size-select {
    width: 61px;
    margin-bottom: 15px;
    display: inline-block;
}

/* remove the input number tickers */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.printMethodSelector.active {
    border: 2px solid #1fb748;
}

.printMethodSelector>* {
    pointer-events: none;
}

.printTypeSelector.active {
    border: 2px solid #1fb748;
}

.printTypeSelector>* {
    pointer-events: none;
}

.editor_button_ct.printColorSelector,
div[data-step-id="selectedPrintMethod"] div.editor_button_ct,
div[data-step-id="selectedPrintType"] div.editor_button_ct {
    flex-wrap: wrap;
}

.printColorSelector .active {
    border: 2px solid #1fb748;
}

.printColorSelector button>* {
    pointer-events: none;
}

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

#tx-product-configurator .editor_step h3 {
    font-size: 14px !important;
    display: inline-block;
}

.complete {
    background-color: #1fb748 !important;
}

.error {
    background-color: #c8102e !important;
}

#editor-files-list .files-list-span {
    display: block;
    overflow-wrap: anywhere;
}

.discard-file {
    cursor: pointer;
}

.editor-position-selector label {
    padding-left: 10px;
}

.info_tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.editor-error-label {
    color: #c8102e;
    display: flex;
    margin: 10px 0px;
}

.editor-error-label .material-symbols-outlined {
    margin: 0px 5px;
}

.info_tooltip::after {
    content: attr(data-bs-title);
    visibility: hidden;
    width: 150px;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px 0;
    border-radius: 6px;

    position: absolute;
    z-index: 2;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.info_tooltip:hover::after {
    visibility: visible;
    opacity: 1;
}

/* Hide the default checkbox */
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Create a custom checkbox */
input[type="checkbox"]+label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    display: inline-block;
}

/* Style the custom checkbox */
input[type="checkbox"]+label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 15px;
    height: 15px;
    border: 2px solid #555;
    border-radius: 4px;
    background-color: white;
    transition: background-color 0.2s, border-color 0.2s;
}

/* Style the checkbox when it is checked */
input[type="checkbox"]:checked+label::before {
    background-color: #c8102e;
    border-color: #c8102e;
}

/* Optional: Add a checkmark when checked */
input[type="checkbox"]:checked+label::after {
    content: '\2713';
    /* Content is a Unicode checkmark */
    position: absolute;
    left: 2px;
    top: 2px;
    width: 15px;
    height: 15px;
    font-size: 15px;
    color: white;
}

.info_tooltip {
    display: none;
}

.tx-logged-in {
    display: none;
}

.tx-is-loggedin .tx-logged-in {
    display: block;
}

.tx-is-loggedin .tx-not-logged-in {
    display: none;
}

.tx-is-not-loggedin .size_input>div>div {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tx-step .editor_step .size_input .size-select .size-stock-label {
    font-size: 80%;
    font-weight: 400;
    color: #5f5f5f;
    display: block;
    margin-top: 0px;
    padding-top: 0;
}

button.btn-light.no-hover-effect:active,
button.btn-light.no-hover-effect:focus {
    background-color: inherit;
    color: inherit;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.16);
}

.tx-step .editor_button_ct #printWidth,
.tx-step .editor_button_ct #printHeight {
    width: calc(50% - 15px);
    /* We calculate the width here because the parent has a gap size of 15px */
}

.tx-recap-amount-row {
    display: flex;
    flex-wrap: wrap;
}

.tx-recap-amount-row .qty {
    width: 20%;
}

.tx-recap-amount-row .title {
    width: 30%;
}

.tx-recap-amount-row .amnt {
    width: 25%;
}


.tx-costs-row.tx-recap-amount-row .qty {
    width: 20%;
}

.tx-costs-row.tx-recap-amount-row .title {
    width: 80%;
}

.tx-costs-row.tx-recap-amount-row .amnt {
    width: 75%;
}

.tx-costs-row.tx-recap-amount-row .amnt:last-child {
    width: 25%;
}

.tx-recap-list {
    max-height: calc(100vh - 400px);
    overflow: auto;
    padding-right: 12px;
    font-size: 12px;
}

.tx-recap-list li.tx-recap-title {
    margin-top: 20px;
}

button#submitOrder,
button#mailQuote {
    position: relative;
}

button#submitOrder.loading,
button#mailQuote.loading {
    color: transparent;
}

.minimumText {
    font-size: 12px;
    font-weight: 300;
    color: gray;
}

.flexCol {
    display: flex;
    flex-direction: column;
}

.miscError {
    color: red;
    display: none;
}

.tx-configurator-colors-1 div.tx-step[data-step-id="colors"] {
    height: 0;
    overflow: hidden;
    opacity: 0;
}

button#submitOrder.loading::after,
button#mailQuote.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #000000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

button#printUpload {
    position: relative;
}

button.loadingUpload {
    color: transparent;
}

button.loadingUpload::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.editor-sizes-selector input {
    height: 32px;
}

.tx-minimum-amount {
    display: none;
}

.tx-has-minimum-amount .tx-minimum-amount {
    display: block;
}

.dragover {
    border: 2px dashed #007bff;
    background-color: #f8f9fa;
}

textarea {
    width: 100%;
    border-radius: 5px;
    padding: 5px;
    border: none;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.16);
    border: 1px solid #b8b8b8;
}

#tx-product-thumbnails {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow-x: auto;
}
#tx-product-thumbnails a {
    width: 25%;
}
#tx-product-thumbnails img {
	width: 100px;
	cursor: pointer;
}

