.main-container-field {
    margin: 15px;
}

#croppie-container {
    position: relative;
    width: 500px;
    height: 500px;
    overflow: hidden;
    border: 2px solid #333;
    margin: 20px auto;
}

.fixed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.viewport {
    width: 200px;
    height: 200px;
    border: 2px solid red;
    position: absolute;
    top: 148px;
    left: 148px;
    cursor: grab;
    background: rgba(255, 255, 255, 0.2);
}

.result img {
    max-width: 100%;
    display: block;
    margin-top: 20px;
}

input,
button {
    display: block;
    margin: 10px auto;
    padding: 8px;
}

/* General styling for the container */
.wallpaper-selector-show-tiles-container,
.flip-image-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

/* Style for the checkboxes */
.wallpaper-selector-show-tiles,
.flip-image {
    margin-right: 10px;
    /* Space between checkbox and label */
}

/* Styling the label text */
.wallpaper-selector-show-tiles-container label,
.flip-image-container label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Add a little styling to the checkbox itself */
input[type="checkbox"] {
    transform: scale(1.2);
    /* Make the checkbox slightly bigger */
}

/* Add some spacing between the elements */
.wallpaper-selector-show-tiles-container,
.flip-image-container {
    margin-bottom: 15px;
}


/* Style the container of the radio buttons */
.color-image-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 10px;
}

/* Style the individual divs containing the radio buttons */
.color-image-container div {
    display: flex;
    align-items: center;
}

.color-image-label {
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
    font-weight: 500;
    margin: 0 !important;
}

/* Style the radio buttons */
.color-image-container input[type="radio"] {
    appearance: none;
    /* Remove default radio button appearance */
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid #888;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    margin-right: 5px !important;
}

/* Add a circular indicator on radio button focus */
.color-image-container input[type="radio"]:checked {
    background-color: #3b990c;
    border-color: #3b990c;
}

/* Add a hover effect for the radio buttons */
.color-image-container input[type="radio"]:hover {
    border-color: #3b990c;
}

/* Add some spacing between the label text and the radio buttons */
.color-image-container label {
    margin-left: 5px;
}


.woocommerce-product-gallery {
    position: relative;
}

.main-product-image {
    width: 100%;
    max-width: 500px;
    display: block;
}

.viewport {
    position: absolute;
    width: 148px;
    height: 148px;
    border: 2px dashed #000;
    cursor: grab;
    background: rgba(255, 255, 255, 0.2);
}

/* Optional: Ensure the product image wrapper has relative positioning */
.woocommerce-product-gallery__wrapper {
    position: relative;
}

/* Optional: Style for the crop viewport */
.image-crop-container {
    position: absolute;
    border: 2px solid red;
    z-index: 999;
    pointer-events: none;
    /* background-color: transparent !important; */
    cursor: move;
    touch-action: none; /* Prevent touch interference */
}

.woocommerce-product-gallery__wrapper {
    overflow: hidden;
}

.image-editor-options {
    margin: 0px;
}

.edit-product-button {
    display: inline-block !important;
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 5px !important; 
    text-decoration: none !important;
    margin-left: 10px !important;
}

.edit-product-button:hover {
    background-color: #45a049;
}


.adjust-image-size{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/*.adjust-image-size{
    width: auto !important;
}*/

.adjust-image-size a{
    position: relative !important;
}

/* Css to center the cropped image */
.crp-img {
    text-align: center !important;
}
/* .crp-img .mfn-product-gallery {
    display: inline-block !important;
    width: auto !important;
    margin: 0 auto !important;
    float: none !important;
} */

.woocommerce-product-gallery__wrapper > div {
    width: auto;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.woocommerce div.product div.images img {
    width: fit-content !important;
    height: auto;
    margin: auto;
    object-fit: contain;
    object-position: center;
}

.mfn-product-hasnt-gallery {
    justify-content: center !important;
}

.wc-img-edit-flipped {
	transform: scaleX(-1);
}
.wc-img-edit-filter-bw {
	filter: grayscale(100%);
}
.wc-img-edit-filter-sephia {
	filter: sepia(100%);
}

/* Container styles */
.image-editor-options, .custom-material-selector {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    margin-bottom: 30px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', sans-serif;
}

/* Step headers */
.image-editor-options span
 {
    
}
.custom-material-selector > label {

}
/* Inputs */
input[type="number"], input[type="checkbox"], input[type="radio"] {
    margin-top: 8px;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

input[type="number"] {
    width: 120px;
    display: inline-block;
}

/* Checkboxes and radios containers */
.wallpaper-selector-show-tiles-container,
.flip-image-container,
.color-image-container {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Material selector */
.material-options {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.material-options li {
    margin-bottom: 12px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: 0.3s ease;
    padding-right: 50px;
    position: relative;
}

.material-options li:hover {
    background-color: #f0f8ff;
    border-color: #aaa;
}

.material-options li input[type="radio"] {
    position: absolute;
    right: 10px;
    top: 10px;
    margin: 0;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #888; 
    cursor: pointer;
    transition: all 0.3s ease; 
}
.material-options li input[type="radio"]:checked {
    background-color: #3b990c;
    border-color: #3b990c;
}

.material-radio {
    margin-right: 8px;
}
.material-radio:checked {
    color: #3b990c !important;
}

.label label {
    font-weight: 500;
    color: #222;
    cursor: pointer;
}

.price-notice {
    display: block;
    color: #3b990c;
    font-size: 14px;
    margin-top: 4px;
}

/* Crop Button */
#crop-btn {
    background-color: #3b990c;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#crop-btn:hover {
    background-color: #3b990c;
}

/* Total Price Display */
#calculated_price {
    margin-top: 20px;
    font-weight: bold;
    font-size: 18px;
    color: #2d2d2d;
    background: #eef6ff;
    padding: 10px 15px;
    border-left: 5px solid #3b990c;
    border-radius: 4px;
}


.size-selection-container {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    margin-top: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.size-selection-container input {
    margin-bottom: 0 !important;
}

.size-selection-container .size-field {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.tiles-and-flip-image-container {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tiles-and-flip-image-container input[type="checkbox"],
.tiles-and-flip-image-container label {
    margin: 0 !important;
}

.tiles-and-flip-image-container  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    width:100%;
}

.checkbox-group input[type="checkbox"] {
    accent-color: #3b990c;
}

.height-width-cm {
    width: 200px !important;
}
.main-container-field {
    margin: 0;
    text-align: left;
}
.stp-2 {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px 0 0 0;
    border-top: 1px solid #ddd;
    width: 100%;
    margin-top: 20px;
}
.stp-2 #crop-btn {
    margin: 0 !important;
    width: fit-content;
}
.woocommerce .product div.entry-summary .cart .button {
    margin-top: 0 !important;
}

.shop_table .product-name{
    width: 80%;
    font-size: 16px;
}
.woocommerce table.shop_table td.product-name .variation{
    font-size: 12px;
}
.checkout-button  br {
    display: none !important;
}
.woocommerce table.shop_table td.actions .coupon .input-text{
    height: 48px;
    font-weight: 500;
}
.woocommerce table.shop_table td.actions .coupon {
    margin-top: 12px;
}
.shop_table .woocommerce-cart-form__cart-item .product-thumbnail {
    min-width: 100px !important;
}
.shop_table.order_details .wc-item-meta {
    margin: 15px 0 0 0;
}
.shop_table.order_details .wc-item-meta li{
    font-size: 15px;
    font-weight: 400;
} 
.shop_table.order_details .wc-item-meta li strong {
    font-weight: 600;
    color: #5c5c5c;
}
.woocommerce-cart-form__cart-item .edit-product-button{
    font-size: 12px;
    padding: 4px 12px !important;
    margin-left: 0 !important;
}