/* File: css/modal-border.css */
.delivery-modal {
    position: relative;
    width: 90%;
    max-width: 350px;
    border-radius: 14px;
    z-index: 1111;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 20px 20px 60px #bebebe, -20px -20px 60px #ffffff;
    padding: 0;
    background: transparent;
}

/* 1. The Animated Green Blob (Border effect) */
.delivery-modal::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-color: #0BDA51;
    opacity: 1;
    filter: blur(12px);
    animation: blob-bounce 5s infinite ease;
}

/* 2. The Inner Yellow Pattern Background */
.delivery-modal::after {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    z-index: 2;
    background-color: #FDFBD4;
    background-image: 
        repeating-linear-gradient(45deg, #FFEF00 0 15px, transparent 15px 30px),
        repeating-linear-gradient(-45deg, #FDC937 0 15px, transparent 15px 30px);
    background-size: 170px 170px;
    border-radius: 10px;
    overflow: hidden;
    outline: 2px solid white; /* Keeps a clean border between pattern and blob */
    padding: 40px; /* Gives space for the text and buttons */
    box-sizing: border-box;
}

/* 3. Ensures Content (text, close button, icons) is on top */
.delivery-modal > * {
    position: relative;
    z-index: 3;
}

@keyframes blob-bounce {
    0% { transform: translate(-100%, -100%) translate3d(0, 0, 0); }
    25% { transform: translate(-100%, -100%) translate3d(100%, 0, 0); }
    50% { transform: translate(-100%, -100%) translate3d(100%, 100%, 0); }
    75% { transform: translate(-100%, -100%) translate3d(0, 100%, 0); }
    100% { transform: translate(-100%, -100%) translate3d(0, 0, 0); }
}