* {
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: start;
}

.gift-cards {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
}
.gift-card-image {
    overflow: hidden;
    width: 100%;
    max-width: 220px !important;
}
.gift-cards img {
    width: 100%;
    overflow: hidden;
    height: auto;
    object-fit: cover;
}

.card-body {
    padding: 15px;
    text-align: center;
}

.complete-order-button {
    font-size: 20px;
    width: 100%;
    max-width: 200px;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
}

.complete-order-button:hover {
    background-color: var(--primary-color);
    color: var(--white);
    opacity: 0.9;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.4) !important;
}

input,
textarea {
    border-radius: 20px!important;
    width: 100% !important;
    min-width: 100% !important;
}

input:focus, textarea:focus {
    outline: none!important;
    box-shadow: none!important;
    border-color: #a3907a!important;
}

.form-control {
    width: 100% !important;
    min-width: 100% !important;
    margin-bottom: 10px;
}

.form-control,
.btn {
    border-radius: 10px;
}

.btn.save-card {
    width: 100% !important;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.modal .card-form {
    width: 100%;
}

.modal .flex-grow-1 {
    width: 100%;
}

.leave-empty {
    cursor: pointer;
    width: auto !important;
    min-width: auto !important;
}

input[type="checkbox"] + label {
    cursor: pointer;
    display: inline-block;
}

@media (min-width: 992px) {
    .row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .choose-boxes-header {
        padding: 0 15px;
    }

    .choose-boxes-header p {
        line-height: 1.4 !important;
        margin-bottom: 15px !important;
    }

    .choose-boxes-page {
        width: 90% !important;
        padding: 3rem 2rem !important;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
    }

    .col-md-3 {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .col-md-3 {
        padding: 0 8px;
    }

    .complete-order-button {
        display: block;
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .gift-cards {
        height: 100%;
    }

    .gift-cards img {
        height: auto;
    }

    .choose-boxes-header h3 {
        font-size: 22px;
        margin-bottom: 20px !important;
    }

    .choose-boxes-header p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }

    .choose-boxes-page {
        width: 95% !important;
        padding: 2rem 1.5rem !important;
    }
    .col-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 576px) {
    .choose-boxes-header h3 {
        font-size: 22px;
    }

    .choose-boxes-header p {
        font-size: 12px !important;
        padding: 0 10px;
    }

    .choose-boxes-page {
        width: 100% !important;
        padding: 1.5rem 1rem !important;
    }

    .row {
        margin: 0 -8px;
    }

    .col-md-3 {
        padding: 0 8px;
    }
}

@media (min-width: 350px) and (max-width: 607px) {
    .row {
        grid-template-columns: repeat(2, 1fr);
    }

    .complete-order-button {
        width: 100%;
        max-width: 190px;
        font-size: 15px;
        padding: 5px 10px;
    }

    .gift-cards {
        height: auto;
    }

    .gift-cards img {
        height: auto;
    }

    .choose-boxes-header h3 {
        font-size: 22px;
        margin-bottom: 20px !important;
    }

    .choose-boxes-header p {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin-bottom: 12px !important;
    }

    .choose-boxes-page {
        width: 95% !important;
        padding: 2rem 1.5rem !important;
    }
}

