/* Remove spinner buttons for Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.card p {
    font-size: 16px !important;
}

.preview {
    display: flex;
    flex-direction: column;
}
@media screen and (max-width: 996px) {
    .preview {
        margin-bottom: 20px;
    }
}
.preview-pic {
    flex-grow: 1;
}
.preview-thumbnail.nav-tabs {
    border: none;
    margin-top: 15px;
}
.preview-thumbnail.nav-tabs li {
    width: 18%;
    margin-right: 2.5%;
}
.preview-thumbnail.nav-tabs li img {
    max-width: 100%;
    display: block;
}
.preview-thumbnail.nav-tabs li a {
    padding: 0;
    margin: 0;
}
.preview-thumbnail.nav-tabs li:last-of-type {
    margin-right: 0;
}
.tab-content {
    overflow: hidden;
}
.tab-content img {
    width: 100%;
    animation-name: opacity;
    animation-duration: 0.3s;
}
.card {
    background: #eee;
    padding: 3em;
    line-height: 1.5em;
}
@media screen and (min-width: 997px) {
    .wrapper {
        display: flex;
    }
}
.details {
    display: flex;
    flex-direction: column;
}
.colors {
    flex-grow: 1;
}
.product-title,
.price,
.sizes,
.colors {
    text-transform: uppercase;
    font-weight: bold;
}
.checked {
    color: #ff9f1a;
}
.product-title,
.rating,
.product-description,
.price,
.vote,
.sizes {
    margin-bottom: 15px;
}
.product-title {
    margin-top: 0;
}
.add-to-cart,
.like {
    background: #ff9f1a;
    padding: 1.2em 1.5em;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    color: #fff;
    transition: background 0.3s ease;
}
.add-to-cart:hover,
.like:hover {
    background: #b36800;
    color: #fff;
}
.not-available:before {
    font-family: fontawesome;
    content: "\f00d";
    color: #fff;
}
@keyframes opacity {
    0% {
        opacity: 0;
        transform: scale(3);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}
.danger-text {
    font-size: 16px;
    float: left;
}
.card p {
    font-size: 16px !important;
}

/* Mobile-specific styles */

@media screen and (max-width: 767px) {
    .card {
        padding: 1.5em;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .rating {
        font-size: 0.9rem;
    }
    .product-description {
        font-size: 0.9rem !important;
    }
    .price {
        font-size: 1.2rem;
    }
    .vote {
        font-size: 0.9rem;
    }
    .add-to-cart {
        font-size: 0.9rem;
        padding: 0.8em 1.2em;
    }
}

.preview-pic {
    max-height: 350px;
    max-width: 350px;
    margin: 0 auto;
}

.preview-thumbnail img {
    cursor: pointer;
}

@media (max-width: 768px) {
    .modal-bottom {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 45%; /* Ensures the modal takes up 40% of the screen height */
        margin: 0;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        animation: slideUp 0.4s ease-out;
        overflow-y: auto; /* Allows scrolling if the content overflows */
        background-color: #fff; /* Set background color for visibility */
        box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1); /* Optional shadow for effect */
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    /* Adjust modal content padding to ensure proper spacing */
    .modal-content {
        padding: 15px;
    }

    /* Ensure modal header and footer are properly aligned */
    .modal-header,
    .modal-footer {
        border: none;
        padding: 10px 15px;
    }
}

.product-image-container {
    display: flex;
    flex-direction: row;
}
.thumbnails {
    display: flex;
    flex-direction: column;
    margin-right: 10px;
    cursor: pointer;
}
.thumbnail {
    width: 65px;
    height: 65px;
    object-fit: contain;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    padding: 3px;
}
.product-image {
    max-width: 100%;
    height: auto;
}
/* .rating {
    color: #ffa41c;
} */
.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #b12704;
}
.discount {
    color: #b12704;
}
.offer-box {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
}
.delivery-info {
    font-size: 0.9rem;
}
.protection-plan label {
    display: block;
    margin-bottom: 5px;
}
@media (max-width: 768px) {
    .product-image-container {
        flex-direction: column-reverse;
    }
    .thumbnails {
        flex-direction: row;
        margin-right: 0;
        margin-top: 10px;
    }
    .thumbnail {
        margin-right: 4px;
        margin-bottom: 0;
    }
    .mobile-margin-0 {
        margin-top: 0 !important;
    }
}

.cursor-pointer {
    cursor: pointer !important;
}
.i-active {
    border: 2px solid black;
}

.otp-input,
.otp-input-desktop {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
}

.danger-text {
    font-size: 16px;
    float: left;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

.colored-toast .swal2-title {
    color: white;
}

.custom-dropdown-menu {
    position: absolute;
    right: 100%;
    bottom: 50%;
    left: 50%;
}

.colored-toast.swal2-icon-error {
    background-color: #f27474 !important;
}

apple-pay-button {
    --apple-pay-button-width: 140px;
    --apple-pay-button-height: 30px;
    --apple-pay-button-border-radius: 5px;
    --apple-pay-button-padding: 5px 0px;
}
