.elementor-1946 .elementor-element.elementor-element-f667d26{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--justify-content:space-between;--align-items:center;--flex-wrap:wrap;--margin-top:-40px;--margin-bottom:40px;--margin-left:0px;--margin-right:0px;--padding-top:15px;--padding-bottom:15px;--padding-left:15px;--padding-right:15px;}.elementor-1946 .elementor-element.elementor-element-f667d26:not(.elementor-motion-effects-element-type-background), .elementor-1946 .elementor-element.elementor-element-f667d26 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#E1EDEB;}.elementor-1946 .elementor-element.elementor-element-460b6e4{--display:flex;--flex-direction:row;--container-widget-width:initial;--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--margin-top:0px;--margin-bottom:40px;--margin-left:0px;--margin-right:0px;}.elementor-1946 .elementor-element.elementor-element-5da0c27{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1946 .elementor-element.elementor-element-52bdb79b{z-index:0;}.elementor-1946 .elementor-element.elementor-element-aebb676{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}html .elementor-1946 .elementor-element.elementor-element-e5e0c9f .product_title{font-size:21px;}.elementor-1946 .elementor-element.elementor-element-5d281f5{padding:15px 15px 15px 15px;border-style:solid;border-width:2px 2px 2px 2px;border-color:#000000;border-radius:8px 8px 8px 8px;}.elementor-1946 .elementor-element.elementor-element-0cad048{--display:flex;--flex-direction:row;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );--container-widget-height:100%;--container-widget-flex-grow:1;--container-widget-align-self:stretch;--flex-wrap-mobile:wrap;--align-items:center;--flex-wrap:wrap;}.elementor-1946 .elementor-element.elementor-element-1193514 > .elementor-widget-container{margin:0px auto 0px 0px;}.elementor-1946 .elementor-element.elementor-element-1193514.elementor-element{--flex-grow:1;--flex-shrink:0;}.elementor-1946 .elementor-element.elementor-element-6f3ebdd{--display:flex;}.elementor-1946 .elementor-element.elementor-element-4a4b2b2{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1946 .elementor-element.elementor-element-45104a7{--display:flex;}.elementor-1946 .elementor-element.elementor-element-bdb6c02{--display:flex;}.elementor-1946 .elementor-element.elementor-element-34ab570{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-1946 .elementor-element.elementor-element-072773c{--n-accordion-title-font-size:1rem;--n-accordion-item-title-space-between:0px;--n-accordion-item-title-distance-from-content:0px;--n-accordion-icon-size:15px;}:where( .elementor-1946 .elementor-element.elementor-element-072773c > .e-n-accordion > .e-n-accordion-item > .e-n-accordion-item-title > .e-n-accordion-item-title-header ) > .e-n-accordion-item-title-text{text-transform:uppercase;}.elementor-1946 .elementor-element.elementor-element-cb0a7d9{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;border-style:solid;--border-style:solid;border-width:1px 0px 0px 0px;--border-top-width:1px;--border-right-width:0px;--border-bottom-width:0px;--border-left-width:0px;border-color:#0000001C;--border-color:#0000001C;--margin-top:40px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:40px;--padding-bottom:0px;--padding-left:15px;--padding-right:15px;}.elementor-1946 .elementor-element.elementor-element-79ff32d .title{font-size:32px;line-height:1.2em;}.elementor-1946 .elementor-element.elementor-element-97cfd6a{--display:flex;border-style:solid;--border-style:solid;border-width:1px 0px 0px 0px;--border-top-width:1px;--border-right-width:0px;--border-bottom-width:0px;--border-left-width:0px;border-color:#0000001C;--border-color:#0000001C;--margin-top:40px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:40px;--padding-bottom:0px;--padding-left:15px;--padding-right:15px;}.elementor-1946 .elementor-element.elementor-element-5783f4f .wd-el-title{font-size:32px;line-height:1.2em;}@media(min-width:769px){.elementor-1946 .elementor-element.elementor-element-5da0c27{--width:75%;}.elementor-1946 .elementor-element.elementor-element-aebb676{--width:50%;}}@media(max-width:1024px){.elementor-1946 .elementor-element.elementor-element-f667d26{--margin-top:-40px;--margin-bottom:20px;--margin-left:0px;--margin-right:0px;}.elementor-1946 .elementor-element.elementor-element-460b6e4{--gap:30px 30px;--row-gap:30px;--column-gap:30px;}html .elementor-1946 .elementor-element.elementor-element-e5e0c9f .product_title{font-size:18px;}.elementor-1946 .elementor-element.elementor-element-1193514 > .elementor-widget-container{margin:0 0 0 0;}.elementor-1946 .elementor-element.elementor-element-1193514.elementor-element{--flex-grow:0;--flex-shrink:1;}.elementor-1946 .elementor-element.elementor-element-c926f0b.elementor-element{--flex-grow:0;--flex-shrink:1;}.elementor-1946 .elementor-element.elementor-element-79ff32d .title{font-size:26px;}.elementor-1946 .elementor-element.elementor-element-5783f4f .wd-el-title{font-size:26px;}}@media(max-width:768px){.elementor-1946 .elementor-element.elementor-element-460b6e4{--margin-top:0px;--margin-bottom:20px;--margin-left:0px;--margin-right:0px;}html .elementor-1946 .elementor-element.elementor-element-e5e0c9f .product_title{font-size:16px;}.elementor-1946 .elementor-element.elementor-element-cb0a7d9{--margin-top:20px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;}}/* Start custom CSS */:root {
    --primary-color: #035826;
    --primary-hover: #e5b26e;
    --text-dark: #222;
    --text-light: #555;
    --border-color: #e5e5e5;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
}

.woocommerce-product-gallery {
    width: 100%;
}

.onepiecetext, .croptext {
    text-align: center;
    margin-bottom: 5px;
    margin-top: 8px;
    color: var(--text-dark);
}

#onepiecetitle, #croptitle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -20px;
    text-align: center;
    color: white;
    font-weight: bold;
    padding: 8px 15px;
    width: 33.4%;
    text-transform: uppercase;
    font-size: 16px;
    background: var(--primary-color);
    border-radius: 8px;
    margin-left: auto;
    margin-right: auto;
}

#onepiece-modal {
    max-height: 700px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 1350px;
    display: none;
    position: fixed;
    z-index: 1051;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: auto;
    max-height: 90vh;
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    border-radius: 8px;
}

#onepiece-image {
    width: 91%;
    object-fit: fill;
}

#onepiece-modal .cropper-modal-content {
    position: relative;
    height: 100%;
    max-height: calc(90vh - 40px);
    overflow-y: auto;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

#onepiece-modal .columns {
    display: flex;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
}

#onepiece-modal .leftcol {
    flex: 0 0 57%;
    padding: 10px;
    padding-left: 35px;
    padding-top: 30px;
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

#onepiece-modal .onepiece-preview-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: height 0.2s ease-out;
    background-color: #2f2f2f;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    min-height: 400px;
    border-radius: 10px;
}

#onepiece-modal #onepiece-image {
    display: block;
    max-width: 100%;
    height: 300px;
    filter: none;
    box-shadow: none;
    border: none;
}

#onepiece-modal .ruler {
    position: absolute;
    border: 1px solid #000;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 5;
    white-space: nowrap;
    font-weight: bold;
    color: #000;
}

#onepiece-modal #onepiece-leftRuler {
    left: 6%;
    top: 40%;
    transform: translateY(-50%) translateX(-100%) rotate(-90deg);
    transform-origin: right center;
}

#onepiece-modal #onepiece-topRuler {
    bottom: 14%;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
}

#onepiece-modal .rightcol {
    flex: 0 0 42%;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    border-left: 1px solid #ccc;
}

#onepiece-modal #shortcode-area {
    border: solid #000 2px;
    padding: 20px;
    border-radius: 5px;
}

#onepiece-modal .close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    height: 35px;
    width: 35px;
    line-height: 30px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
    transition: color 0.2s ease, background-color 0.2s ease;
}

#onepiece-modal .close:hover,
#onepiece-modal .close:focus {
    color: black;
    text-decoration: none;
    background-color: rgba(230, 230, 230, 0.9);
}

#onepiece-modal .cropper-bg {
    background-color: #000000 !important;
    opacity: 1 !important;
}

#onepiece-modal .cropper-modal {
    background-color: rgba(0, 0, 0, 1) !important;
    opacity: 1 !important;
}

#onepiece-modal .cropper-canvas img {
    width: 100%;
    height: 100%;
}

#onepiece-modal .img-container #onepiece-image-target {
    width: 100%;
    height: 100%;
}

#onepiece-modal .cropper-view-box {
    background-color: transparent;
    outline: none !important;
    box-shadow: none !important;
}

.generalbuton1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 30px;
    margin-top: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.option-toggle-container {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.unit-toggle-container {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.button-group, .onepiece-group {
    display: flex;
    gap: 0;
    background: #e5e5e5;
    padding: 4px;
    border-radius: 50px;
}

.onepiece-btn, .unit-btn {
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    color: #555;
    transition: all 0.3s ease;
    background-color: transparent;
    box-shadow: none;
}

.unit-btn {
    padding: 8px 16px;
}

.onepiece-btn.active, .unit-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(191, 26, 26, 0.3);
}

.onepiece-btn:hover, .unit-btn:hover {
    color: #000;
}

.onepiece-btn.active:hover, .unit-btn.active:hover {
    color: #fff;
    background-color: var(--primary-hover);
}
.woocommerce-product-gallery__image.flex-active-slide {
    max-height: 565.2px;
    overflow: hidden;
}

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.loading-overlay .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

.loading-overlay.active {
    display: flex;
}

.color-selection p {
    margin-bottom: 10px;
    text-align: center;
    font-weight: bold;
    padding: 1px;
    text-transform: uppercase;
    font-size: 17px;
    border-radius: 8px;
    color: black;
    padding-right: 20px;
}

.color-options-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.color-option {
    width: 20%;
    cursor: pointer;
}

.color-option input[type="radio"] {
    display: none;
}

.color-label {
    display: block;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    padding-bottom: 8px;
    background: #fff;
    width: 100%;
    margin: 0;
}

.color-image {
    width: 100%;
    height: 70px !important;
    object-fit: cover;
    display: block;
    margin-bottom: 8px;
    border: none !important;
    border-radius: 0 !important;
    opacity: 1 !important;
}

.color-name {
    display: block !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    color: #444;
    padding: 0 5px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 1 !important;
}

.color-label:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.color-option input[type="radio"]:checked + .color-label {
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(191, 26, 26, 0.15);
}

#cropper-modal .color-option input[type="radio"]:checked + .color-label,
#onepiece-modal .color-option input[type="radio"]:checked + .color-label {
    border-color: var(--primary-color);
}

#cropped-image-container22 {
    width: 100%;
    border: 1px solid #ccc;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#removebuttontittle {
    text-align: center;
    margin-top: 5px;
    color: #000;
    font-size: 18px;
    font-weight: bold;
}

#remove-image {
    background-color: black;
    color: white;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    width: 48%;
}

#remove-image:hover {
    background-color: white;
    color: black;
    border: 1px solid black;
}

#cropped-image {
    height: 100px;
    width: 140px;
    border: 1px solid #000;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.7);
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}

#flip-button, #save-button {
    display: inline-block;
    width: 22%;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    text-align: center;
}

#flip-button {
    background-color: var(--text-dark);
}

#save-button {
    background-color: var(--primary-color);
}

#flip-button:hover {
    background-color: #000;
}

#save-button:hover {
    background-color: var(--primary-hover);
}

.confirm-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    margin: 0 auto;
    text-align: center;
    padding: 5px;
}

.confirm-container input[type="checkbox"] {
    display: none;
}

.confirm-container .custom-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.confirm-container input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-hover);
}

.confirm-container input[type="checkbox"]:checked + .custom-checkbox::after {
    content: "✔";
    font-size: 14px;
    color: #fff;
}

#error-message, #save-error-message {
    color: red;
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
}

#confirmation-message {
    display: none;
    color: green;
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
}

#calculated-area {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 00;
    color: #000;
}

.conversion-container {
    display: flex;
}

.conversion-column {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: -20px;
}

.conversion-info {
    font-weight: 500;
    text-align: center;
    margin-bottom: -2px;
    font-size: 13px;
    color: #000;
}

.error-message {
    color: red;
    text-align: center;
    line-height: 1.1;
}

.dimension-inputs .conversion-info {
    min-height: 10px;
    margin-top: 5px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dimension-inputs .conversion-info.active {
    visibility: visible;
    opacity: 1;
}

.variation-selection p {
    display: block;
    text-align: center;
    color: var(--text-dark);
    font-weight: bold;
    background: transparent;
    width: 100%;
    text-transform: uppercase;
    font-size: 17px;
    margin-bottom: 10px;
    margin-top: 0;
    padding: 0;
    border-radius: 0;
    margin-left: 0;
}
.variation-selection {
    margin-top: 10px;
    color: #222;
    font-weight: normal;
    text-transform: none;
}

.variation-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #eaeaea;
    padding: 5px;
    margin-right: 5px;
    margin-bottom: 10px;
    cursor: pointer;
    width: calc(24% - 10px);
    color: #444;
    border-radius: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.variation-card:hover {
    border-color: #bbb;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.variation-card.selected {
    border: 2px solid var(--primary-color);
    background: #fffafa;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(191, 26, 26, 0.15);
}

.variation-price {
    font-size: 14px;
    color: #000;
    
    margin-top: 4px;
    font-weight: bold;
}
.dimension-inputs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    padding: 10px;
    margin-left: 11px;
    margin-right: 10px;
}

.field {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 40%;
}

label {
    font-size: 18px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    font-weight: 500;
    color: black;
}

.double-arrow {
    font-size: 18px;
    margin-right: 5px;
    color: #000;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

input[type="text"] {
    height: 40px;
    padding: 4px;
    font-size: 15px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(191, 26, 26, 0.5);
}

.unit {
    position: absolute;
    right: 1px;
    font-size: 18px;
    margin-right: 8px;
    color: #000;
}

.x {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 5px 10px;
    align-self: flex-end;
}

.action-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

#calculated-price1 {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px 5px;
    font-size: 15px;
    font-weight: bold;
    border: 2px solid #000;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    width: 40%;
    color: #000;
}

#calculated-price1:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(191, 26, 26, 0.5);
}

#calculated-price {
    margin-bottom: 0px !important;
    justify-content: center;
    padding: 5px;
}

#add-to-cart {
    width: 40%;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 4px;
    font-size: 15px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

#add-to-cart:hover {
    background-color: var(--primary-hover);
}

.button-container2 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

#open-cropper {
    background-color: black;
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 15px;
    margin-top: 0px;
    padding: 8px 5px;
    border-radius: 5px;
    margin-left: 20px;
    cursor: pointer;
    width: 50%;
    text-align: center;
    transition: background-color 0.3s ease;
}

#one-piece {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    font-weight: bold;
    font-size: 15px;
    margin-top: 5px;
    padding: 8px 5px;
    border-radius: 5px;
    cursor: pointer;
    width: 50%;
    text-align: center;
    transition: background-color 0.3s ease;
}

.button-containerpapier {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

#papierdetails {
    display: block;
    margin: 0 auto;
   
    text-align: center;
    background: black;
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    border: none;

    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin-bottom: 20px;
}

#papierdetails:hover {
    background-color: #4d4d4d;
}

#other1 {
    background: var(--primary-color);
    font-size: 15px;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 60%;
    text-align: center;
    transition: background-color 0.3s ease;
}

#other1:hover {
    background-color: var(--primary-hover);
}

#cropper-modal {
    max-height: 700px;
    overflow: scroll;
    max-width: 1350px;
}

#open-cropper:hover {
    background-color: #4d4d4d;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 55%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: auto;
    background-color: #fefefe;
    border: 1px solid #888;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.columns {
    display: inline-block;
    width: 100%;
    height: 100%;
}

.leftcol {
    display: inline-block;
    vertical-align: top;
    width: 57%;
    height: 100%;
    padding: 30px 10px 10px 35px;
    position: relative;
    overflow: hidden;
}

.img-container {
    max-width: 100%;
    max-height: 505px !important;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    border: 1px solid #eee;
    background-color: #f9f9f9;
}

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

.cropper-container img {
    object-fit: cover;
}

.cropper-bg {
    background: gray !important;
}

.rightcol {
    display: inline-block;
    vertical-align: top;
    width: 39%;
    height: 100%;
    padding: 5px;
    overflow: auto;
}

.ruler {
    position: absolute;
    border: 1px solid #333;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 20;
    pointer-events: none;
}

.ruler-value {
    margin: 0;
    font-weight: bold;
    color: #000;
}

#leftRuler {
    left: -20px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

#topRuler {
  
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

#shortcode-area {
    border: solid #000 2px;
    padding: 20px;
    border-radius: 5px;
}

.close {
    position: absolute;
    top: 5px;
    right: 0;
    color: #000;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    border: 2px solid;
    border-radius: 28px;
    height: 40px;
    width: 40px;
    text-align: center;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .variation-card {
        border: 1px solid #004;
        padding: 10px;
        margin-left: 8px;
        cursor: pointer;
        width: 44%;
        color: black;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
        font-size: 16px;
    }

    .button-container2 {
        display: block;
    }

    #other1 {
        width: 100%;
        text-align: center;
    }

    #open-cropper {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    #calculated-price1 {
        width: 50%;
        font-size: 13px;
    }

    #add-to-cart {
        padding: 6px 10px;
    }

    .leftcol {
        width: 100%;
        padding: 40px 10px 10px 10px;
        height: 100%;
    }

    .rightcol {
        width: 100%;
        display: inline-block;
        vertical-align: top;
        height: 100%;
        padding: 10px;
        overflow: auto;
    }

    .modal {
        top: 50%;
        width: 102%;
    }

    .button-container {
        display: block;
        width: 100%;
    }

    #flip-button, #save-button {
        display: inline-block;
        width: 80%;
    }

    #leftRuler {
        left: -5px;
        top: 50%;
        transform: translateY(-50%) rotate(-90deg) scale(0.9);
    }

    #topRuler {
        top: 100px;
    }

    #cropper-modal {
        max-height: auto;
        overflow: scroll;
    }

    .close {
        position: absolute;
        top: 1px;
        right: 10px;
        z-index: 999999;
    }

    .color-selection {
        display: inline-block;
        justify-content: center;
        align-items: center;
    }

    .color-selection p {
        margin-bottom: 10px;
        text-align: center;
        font-weight: bold;
        padding: 1px;
        text-transform: uppercase;
        font-size: 16px;
        border-radius: 8px;
        color: black;
    }

    .generalbuton1 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 25px;
        margin-top: -10px;
    }

    .option-unit-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .option-toggle-container {
        flex: 0 0 70%;
        display: flex;
        justify-content: flex-start;
    }

    .unit-toggle-container {
        flex: 0 0 30%;
        display: flex;
        justify-content: flex-end;
    }

    .button-group {
        display: flex;
        gap: 1px;
    }

    .onepiece-btn {
        border: 1px solid var(--border-color);
        padding: 8px;
        cursor: pointer;
        border-radius: 5px;
        font-weight: bold;
        color: black;
        transition: background-color 0.3s, color 0.3s;
    }

    .unit-btn {
        border: 1px solid var(--border-color);
        padding: 8px;
        cursor: pointer;
        border-radius: 5px;
        font-weight: bold;
        color: black;
        transition: background-color 0.3s, color 0.3s;
    }

    .onepiece-btn.active {
        background-color: var(--primary-color);
        color: #fff;
    }

    #btn-crop:hover, .unit-btn:hover {
        background-color: #4D4D4D;
        color: #fff;
    }

    .onepiece-btn:hover {
        background-color: var(--primary-hover);
        color: #fff;
    }

    .unit-btn.active {
        background-color: black;
        color: white;
    }

    #btn-crop.active {
        background-color: black;
        color: white;
    }
}/* End custom CSS */