body {
    background-color: #f5f5f5; /* Light gray background */
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.aico-return-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url('/path/to/your/background-image.jpg'); /* Add your image path here */
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.aico-return-form-card {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
    margin:20px;
}

.aico-return-form-card h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: red;
}

.aico-return-form-card h2 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #333;
}

.aico-return-form-card input {
    width: 100%;
    padding: 10px;
    /* margin: 10px 0; */
    border: 1px solid #ccc;
    border-radius: 4px;
}

.aico-return-form-card button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.aico-return-form-card button:hover {
    background-color: #218838;
}

.aico-return-form-card a {
    /* Color is set dynamically via JavaScript based on shop settings */
    text-decoration: none;
    cursor: pointer !important;
}

.aico-return-form-card #need-help-contact {
   font-size: 13.3333px !important;
}

.aico-return-form-card a:hover {
    text-decoration: underline;
}

.aico-return-powered-by {
    margin-top: 15px;
    font-size: 12px;
    color: gray;
}
.aico-return-logo-img img{
    width:100px;
    height:auto;
}

/** 
    product container css
*/

.aico-return-product-container {
    width: 90%;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.aico-return-heading {
    text-align: left;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333;
    font-family: var(--akkurat-primary-font-family);
}
.final-heading{
    text-align: center;
}

.aico-return-product {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    position: relative;
}

.aico-return-product:last-child {
    border-bottom: none;
}

.aico-return-toggle {
    flex: 0 0 10%;
    text-align: center;
}

.aico-return-toggle-label {
    font-size: 0.9em;
    color: #888;
}

.aico-return-product-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding-left: 10px;
}

.aico-return-product-details p {
    margin: 5px 0;
    font-size: 0.95em;
    color: #555;
}

.aico-return-product-name {
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
}

.aico-return-note {
    color: #d9534f;
    font-size: 0.9em;
    margin-top: 5px;
}

.aico-return-actions {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.aico-return-actions select,  .aico-return-actions input{
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    font-size: 0.9em;
    color: #555;
    cursor: pointer;
}

.aico-return-actions select:disabled {
    background: #e9ecef;
}

.aico-return-btn-continue, .aico-return-final-submit, .aico-return-final-cancel{
    display: block;
    background: #28a745;
    color: #fff;
    padding: 10px;
    font-size: 1em;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.aico-return-btn-continue:hover {
    background: #218838;
}
.aico-continue-btn{
    display: flex;
    justify-content: left;
}
.aico-product-img-container {
    width: 130px; 
    display: flex;
    justify-content: left;
    align-items: center;
}
.aico-product-img-container img{
    width: 100%;
    height: auto;
}
/* .aico-return-actions div styles removed - using default layout */
.aico-exchange-size-container{
    display: none
}

/* Style disabled options in exchange sizes dropdown (unavailable variants and selected variant) */
.aico-exchange-sizes option[disabled] {
    color: #999;
    background-color: #f5f5f5;
    font-style: italic;
}

.aico-exchange-sizes option[disabled]:first-of-type {
    color: #999;
    font-style: normal;
}


.aico-return-toggle-product {
    display: inline-block;
}

/* Container */
.aico-return-toggle-product .toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

/* Hide checkbox */
.aico-return-toggle-product .toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Slider */
.aico-return-toggle-product .toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Circle inside the slider */
.aico-return-toggle-product .toggle-switch .slider:before {
    content: "";
    position: absolute;
    height: 21px;
    width: 21px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

/* Unchecked state - ensure circle is on the left and gray background */
.aico-return-toggle-product .toggle-switch input:not(:checked) + .slider {
    background-color: #ccc !important;
}

.aico-return-toggle-product .toggle-switch input:not(:checked) + .slider:before {
    transform: translateX(0);
}

/* Checked state - use dynamic button color */
.aico-return-toggle-product .toggle-switch input:checked + .slider {
    background-color: var(--toggle-checked-color, #0042FF) !important;
}

.aico-return-toggle-product .toggle-switch input:checked + .slider:before {
    transform: translateX(25px);
}

/* Disabled state */
.aico-return-toggle-product .toggle-switch input:disabled + .slider {
    background-color: #e0e0e0 !important;
    cursor: not-allowed;
    opacity: 0.6;
}


.aico-imageupload-container {
    text-align: center;
    background: #fff;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
    margin:20px
    }
    
    .aico-imageupload-container img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    }
    
    .aico-imageupload-container p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    }
    
    .aico-return-upload-button {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    }
    
    .aico-return-upload-input {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    color: #007bff;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    }
    
    .aico-return-upload-input:hover {
    background-color: #e9ecef;
    }
    
    .aico-return-upload-input input {
    display: none;
    }
    
    .aico-return-action-buttons {
    display: flex;
    justify-content: space-between;
    }
    
    .aico-return-action-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    }
    
    .aico-return-action-buttons .aico-return-go-back {
    background-color: #f8f9fa;
    color: #333;
    }
    
    .aico-return-action-buttons .aico-return-continue {
    background-color: #007bff;
    color: #fff;
    }
    
    .aico-return-action-buttons .aico-return-continue:hover {
    background-color: #0056b3;
    }
    
    .aico-return-action-buttons .aico-return-go-back:hover {
    background-color: #e9ecef;
    }
    
    
    
    .aico-return-order-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f9f9f9;
    padding: 20px 30px;
    max-width: 100%;
    border-radius: 10px;
    margin: 20px;
    }
    
    .aico-return-order-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    color: #333;
    background-color: #fafafa;
    transition: border-color 0.3s ease;
    }
    
    .aico-return-order-select:focus {
    border-color: #007bff;
    }
    
    .aico-return-order select {
    font-family: 'Arial', sans-serif;
    }
    
    .aico-return-order select option {
    padding: 10px;
    }
    
    .aico-return-order-select option[disabled] {
    color: #aaa;
    }
    
    /* Style the container and options when selected */
    .aico-return-order-select option {
    font-size: 16px;
    padding: 12px;
    }
    .aico-return-final-submit-container, .aico-return-shop-container{
    display: flex;
    justify-content: center;
    gap: 10px
    }
    
    .aico-return-final-cancel{
    background: transparent;
    color: black;
    border:1px solid black
    }
    
    
    /* General container styling */
    .aico-return-final-container {
        font-family: Arial, sans-serif;
        background-color: #f9f9f9;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 20px;
        margin: 20px;
        max-width: 600px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    
    .img-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-direction: column
    }
    
    /* Image styling */
    .img-title-container img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #4caf50;
    }
    
    /* Subheading styling */
    .img-title-container h3 {
    font-size: 20px;
    color: #4caf50;
    font-weight: bold;
    margin: 0;
    }
    
    /* Paragraph styling */
    .aico-return-final-container h4 {
    font-size: 16px;
    color: #555;
    margin-top: 0;
    line-height: 1.5;
    }
    
    .aico-return-shop-btn {
    display: block;
    background: #28a745;
    color: #fff;
    padding: 10px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    text-decoration: none; /* Remove underline from the link */
    cursor: pointer;
    transition: background 0.3s ease;
    }
    
    .aico-return-shop-btn:hover {
    background: #218838; /* Darken background on hover */
    }




.upload-container {
    text-align: center;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 400px;
}

/* h1 {
font-size: 20px;
margin-bottom: 20px;
} */

.drop-area {
border: 2px dashed #007bff;
padding: 20px;
border-radius: 8px;
background-color: #f9f9f9;
cursor: pointer;
}

.drop-area p {
margin: 0;
font-size: 14px;
color: #555;
}

#fileInput {
display: none;
}

.preview-container {
display: flex;
flex-wrap: wrap;
gap: 10px;
justify-content: center;
border: 2px dashed #ddd;
padding: 10px;
border-radius: 8px;
background-color: #f9f9f9;
max-height: 300px;
overflow-y: auto;
margin: 20px 0;
}

.preview-item {
position: relative;
}

.preview-item img {
width: 80px;
height: 80px;
object-fit: cover;
border: 2px solid #007bff;
border-radius: 4px;
}

.remove-button {
position: absolute;
top: -8px;
right: -8px;
background: red;
color: white;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
font-size: 14px;
cursor: pointer;
}

.remove-button:hover {
background: darkred;
}

#uploadButton {
margin-top: 20px;
padding: 10px 20px;
font-size: 16px;
color: #fff;
background-color: #007bff;
border: none;
border-radius: 4px;
cursor: pointer;
}

#uploadButton:hover {
background-color: #0056b3;
}
.error-message {
color: red;
font-size: 14px;
display: none; 
margin-top:5px;
text-align: left;
}

.input-error {
border-color: red !important;
}
.aico-return-input-field{
margin:20px 0;
border-bottom: 1px solid rgb(241, 239, 239);
padding-bottom: 15px;
}


/* Popup container */
.popup-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: flex-start;
z-index: 1000;
overflow: hidden;
}

/* Hidden class */
.hidden {
display: none;
}

/* Popup content */
.popup {
background-color: white;
padding: 10px 20px;
border-radius: 8px;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
position: relative;
transform: translateY(-100%);
transition: transform 0.5s ease-out;
}

/* Popup message styles */
.popup-message {
display: flex;
align-items: center;
font-size: 14px;
color: black;
}

/* Popup icons */
.popup-icon {
font-size: 12px;
margin-right: 10px;
}

.popup-icon.success {
color: green;
}

.popup-icon.error {
color: red;
}

/* Close button */
.popup-close {
position: absolute;
top: 10px;
right: 15px;
font-size: 18px;
cursor: pointer;
color: #666;
}

/* Show animation */
.popup.show {
transform: translateY(40px); /* Adjust for desired position */
}

.aico-disable-style p
{
color:darkgray;
}

.aico-cannot-return{
position: absolute;
top: 15px;
left:35px
}
.aico-cannot-return{
font-size: 12px;
color:red;
}

.aico-r-final-container{
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.need-help-contact{
    font-size: 13.3333px !important;
}

/* Email link color is set dynamically via JavaScript based on shop settings */

.final-subheading{
    margin-bottom: 16px;
    font-weight: 600;
    font-family: var(--akkurat-secondary-font-family);;
}
.aico-return-final-container ol li{
    margin-bottom: 8px;
}
.finalWrap{
    text-align: left;
    font-family: var(--akkurat-secondary-font-family);
}

/* Responsive Design */
@media (min-width: 769px){
    .aico-return-product{justify-content: left; gap: 100px;}
    .aico-return-product-details{
        width: 50%;
        justify-content: left;
    }
    .aico-return-actions{
        width: 50%;
    }
}
@media (max-width: 768px) {
    .aico-return-product {
        flex-direction: column;
    }

    .aico-return-product-details {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .aico-product-img-container {
        width: 100%;
    }

    .aico-product-content {
        text-align: left;
        margin-bottom: 20px;
    }

    .aico-return-actions {
        gap: 5px;
    }
    .aico-return-toggle-product{
        width:100%;
    }
    .aico-return-toggle-product .toggle-switch {
        width: 40px; /* Optional: Adjust size for smaller screens */
        height: 20px;
    }

    .aico-return-toggle-product .toggle-switch .slider {
        border-radius: 20px;
    }

    .aico-return-toggle-product .toggle-switch .slider:before {
        height: 16px;
        width: 16px;
    }

    .aico-product-img-container img {
        width: 150px; /* Adjust image size */
    }
    .aico-return-toggle-product .toggle-switch input:checked + .slider:before {
        transform: translateX(20px);
    }
    .aico-product-content{
        width: 100%
    }
    .aico-return-final-container {
    padding: 15px;
    }

    .aico-return-final-container h2 {
    font-size: 20px;
    }

    .img-title-container img {
    width: 40px;
    height: 40px;
    }

    .img-title-container h3 {
    font-size: 18px;
    }

    .aico-return-final-container h4 {
    font-size: 14px;
    }
}

@media (max-width: 480px) {
    .aico-return-product {
        padding: 10px 0;
    }

    .aico-return-product-details {
        align-items: flex-start;
    }

    .aico-return-actions select, 
    .aico-return-actions input {
        font-size: 0.8em;
    }

    .aico-return-btn-continue {
        font-size: 0.9em;
    }
}