
#card-element {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

#submit-button {
    background-color: #6772e5;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#submit-button:disabled {
    background-color: #ccc;
}

.form-checkout label::after {
    content: none;
}

label.required::after {
    content: "*";
    position: absolute;
    color: var(--primary);
}


.checkout-product-item {
    display: flex;
    /* Creates a horizontal layout for the image and content */
    align-items: center;
    /* Aligns image and text vertically */
    gap: 15px;
    /* Adds space between the image and the content */
    border-bottom: 1px solid #eee;
    /* Optional: Adds a separator between items */
    padding: 10px 0;
    /* Optional: Adds spacing around the item */
}

.img-product {
    position: relative;
    /* Allows the quantity badge to be positioned */
    flex-shrink: 0;
    /* Ensures the image does not shrink */
    width: 60px;
    /* Fixed width for the image */
    height: 60px;
    /* Fixed height for the image */
}

.img-product img {
    width: 100%;
    /* Ensures the image fills the container */
    height: 100%;
    /* Ensures the image fills the container */
    object-fit: cover;
    /* Ensures the image retains aspect ratio */
    border-radius: 5px;
    /* Optional: Adds rounded corners to the image */
}

.img-product .quantity {
    position: absolute;
    /* Positions the quantity badge on the image */
    top: -5px;
    right: -5px;
    background-color: #333;
    /* Dark background for the badge */
    color: #fff;
    /* White text color */
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
    /* Makes the badge circular */
    font-weight: bold;
}

.content {
    flex-grow: 1;
    /* Allows the content to expand and take available space */
}

.content .info {
    margin-bottom: 5px;
    /* Adds space between the name and price */
}

.content .name {
    font-size: 14px;
    /* Adjusts the font size */
    font-weight: bold;
    /* Makes the name stand out */
    color: #333;
    /* Text color for the name */
    word-wrap: break-word;
    /* Ensures long names break to the next line */
    white-space: normal;
    /* Allows text to wrap if necessary */
    max-width: 100%;
    /* Prevents overflow */
}

.content .price {
    font-size: 14px;
    color: #555;
    font-weight: bold;
}

.loader {
    text-align: center;
    margin: 10px 0;
}

.dot {
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#delivery-error {
    display: block;
    font-size: 14px;
    color: red;
}

.text-danger {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}
