:root {
    --dl-points-background-color: #4681f8;
    --dl-points-border-size: 0.5px;
    --dl-points-border-color: #4681f8;
    --dl-points-text-color: #fff;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#loyalty-coupons-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 5px
}

.loyalty-coupon {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #bbb;
    padding: 10px 15px;
}

@media (max-width: 576px) {
    .loyalty-coupon {
        flex: 1 1 100%;
    }
}

.loyalty-coupon-title {
    margin-bottom: 5px;
}

.loyalty-coupon-description {
    text-align: center;
    margin-bottom: 15px;
}

.loyalty-coupon-discount-title {
    font-weight: bold;
}

.loyalty-coupon-discount {
    margin-bottom: 15px;
}

.loyalty-coupon-usage {
    text-align: center;
    margin-bottom: 20px;
}

.loyalty-coupon-button {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.diller-points {
    display: flex;
    border-radius: 50%;
    background-color: var(--dl-points-background-color);
    border: var(--dl-points-border-size) solid var(--dl-points-border-color);
    width: 80px;
    height: 80px;
    align-items: center;
    justify-content: center;
    color: var(--dl-points-text-color);
    font-weight: bold;
    margin: 10px auto;
    font-size: 18px;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);
}

.hidden {
    display: none;
}

.field label:has(input[type="checkbox"].mage-error),
.field label:has(input[type="radio"].mage-error) {
    color: #ed8380;
}

#enrollment-form .diller-label,
#phone-form .label {
    font-weight: 600;
}

#enrollment-form .field.required > .diller-label::after,
#enrollment-form .field.required > .label::after,
#enrollment-form .field._required > .label::after {
    content: '*';
    color: #e02b27;
    font-size: 1.2rem;
    margin: 0 0 0 5px;
}

#phone-form .field {
    margin: 0 0 20px;
}

/*============================================================================================*/
/* MODALS */
/*============================================================================================*/
.diller-modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    display: none;
    overflow: auto;
    background-color: #000000;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
}

.diller-modal-window {
    position: relative;
    background-color: #FFFFFF;
    width: 50%;
    margin: 10% auto;
    border-top: 1px solid #d3d3d3d4;
}

.diller-modal-window--small {
    width: 30%;
}

.diller-modal-window--medium {
    width: 50%;
}

.diller-modal-window--large {
    width: 75%;
}

.diller-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #ebebeb;
}

.diller-modal-title {
    margin-bottom: 0;
    line-height: 1.5;
}

.diller-modal-body {
    padding: 15px;
    line-height: 1.5;
}

.diller-modal-footer {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 15px;
    border-top: 1px solid #ebebeb;
}

.diller-modal-footer > :not(:last-child) {
    margin-right: 15px;
}

.diller-modal-close {
    border: 0 !important;
    cursor: pointer;
    float: right;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: .5;
    background-color: transparent;
    padding: 15px;
    margin: -15px -15px -15px auto;
}

.diller-modal-close:hover, .diller-modal-close:focus {
    color: #000;
    text-decoration: none;
    opacity: .75;
}

.diller-modal--open {
    display: block;
}

.diller-modal button.diller-modal-close {
    background-color: transparent;
}

.coupon-copied {
    display: none;
    position: absolute;
    bottom: -25px;
    left: 0;
    right: 0;
    font-size: 12px;
    color: #666;
    text-align: center;
    white-space: nowrap;
}

.coupon-actions div {
    position: relative;
}

#my-coupons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: 20px;
}

.my-coupon {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #bbb;
}

.coupon-apply-button {
    text-align: center;
    display: flex;
}

.coupon-copy-container {
    display: flex;
    flex-direction: column
}