/*
 Theme Name:   GeneratePress Child (For TeresasPizza.com)
 Theme URI:    http://teresaspizza.com/generatepress-child/
 Description:  GeneratePress Child (For TeresaPizza.com)
 Author:       Website Psychiatrist
 Author URI:   https://websitepsychiatrist.com
 Template:     generatepress
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  generatepress-child
*/

:root {
    --font-family-primary: 'copse', serif;
    --font-family-secondary: 'Acme', sans-serif;
}

/* Undoing Fiasco
p.item_price {
    color: #36AC51;
    font-size: 15px;
    font-weight: 700;
}
h2.item_title {
    color: rgb(165,31,21);
    font-size: 22px;
    font-weight: 700;
}
.empty_div{
	display:none;
}
*/

.pre-header {
    position: relative;
    background-color: var(--accent);
    color: #fff;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5em 0.5em;
    height: 2.5rem;
}

.text-content {
    font-family: var(--font-family-primary);
    font-size: 1.2em;
    font-weight: 700;
    & h6 {
        margin: 0;
    }

    @media (max-width: 768px) {
        display: none;
    }
}

.location-selector {
    position: absolute;
    right: 1em;
    top: 0.25em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    cursor: pointer;
    padding: 0.25em;
    transition: all 0.3s ease-out;

    & svg {
        width: 1.25rem;
        height: 1.25rem;
        fill: white;
    }

    & p {
        margin: 0;
        font-family: var(--font-family-secondary);
    }

    &:hover {
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 3px;
    }
}



.modal-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0);
    z-index: 999;
    transition: all 0.3s ease-out;
}

.modal-background.active {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.location-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, calc(-50% - 20px));
    width: 90%;
    max-width: 600px;
    height: 500px; /* Fixed height */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5em;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease-out;
}

.location-modal.active {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.location-modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.location-modal h2, .location-name {
    color: var(--accent);
    font-family: var(--font-family-secondary);
}

.locations-list {
    flex-grow: 1;
    overflow-y: auto;
    transition: opacity 0.3s ease-out;
}

.location-modal ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.location-modal li, .loading-line {
    padding: 1em;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease-out;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
}

.location-modal li:last-child {
    border-bottom: none;
}

.location-modal .confirmation {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: var(--accent);
    opacity: 0;
    animation: fadeIn 0.3s ease-out forwards;
    gap: 2em;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.location-modal .close-button {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--accent);
}

.location-modal .address {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.location-modal .distance-info {
    color: var(--accent-2);
    font-size: 0.9em;
}

/* Loading animation */
.location-modal .loading {
    padding: 1em;
}

.loading-line {
    height: 24px;
    background-color: #b3b3b3;
    margin-bottom: 1em;
    position: relative;
    overflow: hidden;
}

.loading-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        90deg,
        #b3b3b3 0%,
        #d9d9d9 50%,
        #b3b3b3 100%
    );
    animation: pulse 1s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .location-modal {
        width: 95%;
        height: 400px; /* Slightly smaller height on mobile */
    }
}


.checkmark, .x-mark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    justify-self: center;
    stroke-width: 2;
    stroke: white;
    stroke-miterlimit: 10;
  }

  .checkmark {
    box-shadow: inset 0px 0px 0px var(--accent-2);
    animation: checkmark-fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;

  }

  .x-mark {
    box-shadow: inset 0px 0px 0px var(--accent);
    animation: x-mark-fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;

  }

  .checkmark__circle, .x-mark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    fill: none;
    animation: stroke .6s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards;
  }

  .checkmark__circle {
    stroke: var(--accent-2);
  }

  .x-mark__circle {
    stroke: var(--accent);
  }
  
  .checkmark__check, .x-mark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.650, 0.000, 0.450, 1.000) .8s forwards;
    stroke: white;
  }

  .x-mark__check-1 {
    stroke-dasharray: 47;
    stroke-dashoffset: 47;
    animation: stroke-1 .3s cubic-bezier(0.650, 0.000, 0.450, 1.000) .4s forwards;
}

.x-mark__check-2 {
    stroke-dasharray: 47;
    stroke-dashoffset: 47;
    animation: stroke-2 .3s cubic-bezier(0.650, 0.000, 0.450, 1.000) .6s forwards;
}
  
  @keyframes stroke {
    100% {
      stroke-dashoffset: 0;
    }
  }

  @keyframes stroke-1 {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes stroke-2 {
    100% {
        stroke-dashoffset: 0;
    }
}
  
  @keyframes scale {
    0%, 100% {
      transform: none;
    }
    50% {
      transform: scale3d(1.1, 1.1, 1);
    }
  }
  
  @keyframes checkmark-fill {
    100% {
      box-shadow: inset 0px 0px 0px 30px var(--accent-2);
    }
  }

  @keyframes x-mark-fill {
    100% {
      box-shadow: inset 0px 0px 0px 30px var(--accent);
    }
  }

  .navigation-actions {
    display: flex;
    gap: 1rem;
}

a.location-info-action {
    width: 3rem;
    height: 3rem;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

