/* General Styles */
.qr-wrapper {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Header */
.header, .qr-footer {
    text-align: center;
    padding: 10px;
}

.header img, .qr-footer img {
    max-width: 225px;
    height: auto;
}

.qr-footer img {
    max-width: 150px;
}

/* Store Info */
.store-info {
    text-align: center;
    padding: 10px;
    background: white;
    font-size: 14px;
    color: #555;
    border-bottom: 1px solid #ddd;
    line-height: 1.5;
}

.store-info span {
    color: #333;
    margin: 0 5px;
}

.store-info a {
    color: #0070d2;
    text-decoration: none;
}

/* Button Grid */
.button-grid, .happy-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 15px 15px;
}

.button-grid a, .happy-buttons a {
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 15px;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    font-weight: bold;
    text-align: left;
    transition: all 0.3s ease;
}

.button-grid a:hover, .happy-buttons a:hover {
    transform: translateY(-2px);
}

/* Full Width Button */
.full-width-button {
    display: block;
    width: calc(100% - 30px);
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    background-color: #333333;
}

/* Button Grid: Icon and Label Spacing */
.button-grid a i, 
.happy-buttons a i, 
.full-width-button i {
    margin-right: 8px;
    font-size: 16px;
    line-height: 1;
}

/* Header Icons */
.header-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
}

.header-icons a {
    text-decoration: none;
    font-size: 28px;
    background: #fff;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.header-icons a:hover {
    transform: scale(1.1);
}

.header-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mobile-frame .myqiosk-link {
    display: none !important;
}

.icon-label {
    font-size: 10px; /* Small font */
    opacity: 0.7; /* Slightly faded */
    margin-top: 3px; /* Space between icon and label */
    text-transform: uppercase; /* Optional for consistency */
    font-weight: 500;
}

/* FAQ Section */
.faq-section {
    margin-top: 20px;
    width: 100%;
}

.faq-question {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    padding: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
    margin-bottom: 10px;
}

.faq-question h5 {
    margin: 0;
    font-size: 16px;
    font-weight: bold;
}

.faq-toggle-icon {
    font-size: 18px;
    font-weight: bold;
    color: #007bff;
}

.faq-answer {
    display: none;
    padding: 10px;
    background-color: #f1f1f1;
    border-left: 3px solid #007bff;
    border-radius: 5px;
}

.faq-answer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.faq-answer li {
    margin-bottom: 10px;
}

.faq-answer strong {
    font-weight: bold;
}

/* Office Hours Section */
.office-hours-section {
    display: none;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.25s ease-in-out;
}

.office-hours-section.show {
    display: block;
    opacity: 1;
}

.office-hours-section .row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: left;
}

.office-hours-section .col-sm-12 {
    padding: 10px;
    font-size: 14px;
}

.office-hours-section .col-sm-6 p {
    margin: 5px 0;
    line-height: 1.5;
}

.office-hours-section h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: bold;
}

.office-hours-section .office-hours-details,
.office-hours-section .access-hours-details {
    font-size: 14px;
    color: #555;
}

/* Lunch Toggle */
.lunch-toggle {
    font-size: 14px;
    font-weight: bold;
    color: #0070d2;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 5px;
}

.lunch-info {
    font-size: 12px;
    font-style: italic;
}

.office-hours-section .col-sm-12 p.lunch-info {
    margin-top: 5px;
}

/* Priority Section */
.priority-section {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: black;
}

/* Media Queries */
@media (max-width: 768px) {
    .office-hours-section .col-sm-12 {
        font-size: 12px;
    }

    .lunch-info {
        font-size: 11px;
    }
}

@media (max-width: 390px) {
    .office-hours-section .row {
        grid-template-columns: 1fr;
    }

    .office-hours-section h4 {
        font-size: 14px;
    }

    .office-hours-section .col-sm-12 {
        font-size: 12px;
    }

    .button-grid a, .happy-buttons a {
        font-size: 14px;
    }

    .priority-section {
        font-size: 16px;
    }
}

/* Default - Small Chat-Style Pop-Up (Desktop) */
.contact-panel {
    position: fixed;
    bottom: 80px; /* Moves the panel higher so the X button stays below */
    right: 20px;
    width: 350px;
    height: 450px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: transform 0.4s ease-in-out, opacity 0.3s ease-in-out;
    transform: translateY(120%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
}

/* Make it appear */
.contact-panel.show {
    transform: translateY(0);
    opacity: 1;
}

/* Full-Screen Panel on Mobile */
@media (max-width: 768px) {
    .contact-panel {
        width: 100%;
        height: 70vh;
        bottom: 80px; /* Moves it higher on mobile */
        left: 0;
        right: 0;
        border-radius: 15px 15px 0 0;
        transform: translateY(100%);
    }
}

/* Form Wrapper - Ensures form is fully visible above the close button */
.form-wrapper {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ensure iframe fits */
.contact-panel iframe {
    width: 100%;
    height: 100%;
    border: none;
    position: relative;
    z-index: 10000; /* Keeps form on top */
}

/* Floating Close Button - Now positioned below the panel */
.close-btn {
    position: fixed;
    bottom: 20px; /* Keeps it below the panel */
    right: 20px;
    background: #ff4d4d;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 50%; /* Keeps it round */
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease-in-out;
    z-index: 10001; /* Ensures button is always above other elements */
}

.close-btn:hover {
    background: #d63c3c;
}

/* Hide close button when panel is closed */
.contact-panel:not(.show) + .close-btn {
    display: none;
}

/* Styled Back Button */
.back-button {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff; /* Match header icon background */
    border-radius: 50%;
    text-decoration: none;
    font-size: 24px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Match shadow effect */
    transition: transform 0.2s ease;
    z-index: 999; /* Ensure it's on top */
}

/* Hover Effect - Slight Scale */
.back-button:hover {
    transform: scale(1.1);
}

/* Adjust for Smaller Screens */
@media (max-width: 768px) {
    .back-button {
        top: 10px;
        left: 10px;
        width: 45px;
        height: 45px;
        font-size: 22px;
    }
}

/* New get more and referral */

        
.r-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
  }
  
  .r-modal-content {
    background-color: #fff;
    margin: 10% auto;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: fadeInModal 0.3s ease-in-out;
  }
          
  @keyframes fadeInModal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
          
  /* Referral Modal Custom Styling */
  .referral-modal {
    padding: 25px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 10% auto;
    position: relative;
  }
  
  .close-button {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
  }
  
  .referral-title {
    font-size: 22px;
    margin-bottom: 5px;
    text-align: center;
  }
  
  .referral-subtext {
    font-size: 15px;
    margin-bottom: 20px;
    text-align: center;
    color: #444;
  }
  
  .referral-input-group {
    margin-bottom: 15px;
  }
  
  .referral-input {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 5px;
  }
  
  .referral-generate-btn {
      display: block;
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  
  .referral-share-output {
    margin-top: 10px;
  }
         
  .referral-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
  }
  
  
  
  .referral-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 15px;
  }
  
  .referral-disclaimer {
    font-size: 12px;
    color: #777;
    margin-top: 20px;
    text-align: center;
  }
          
          .referral-share-buttons a i {
    margin-right: 6px;
  }
  
          .full-site-button {
    justify-content: center !important;
    grid-column: span 2;
      
  }
          
          /* Referral Banner Heading */
  .referral-header-banner {
    background: linear-gradient(to right, #4CAF50, #2E7D32); /* Green gradient */
    color: #fff;
    padding: 15px 20px;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    position: relative;
  }
  
  /* Dollar Badge */
  .dollar-badge {
    background-color: #fff;
    color: #2E7D32;
    font-weight: bold;
    font-size: 18px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    position: absolute;
    right: 15px;
    top: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }
  
  /* Updated Subtext */
  .referral-subtext {
    font-size: 15px;
    margin: 15px 0;
    text-align: center;
    color: #555;
  }
          .referral-close-button {
    position: absolute;
    top: -5px;
    right: 6px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s ease;
  }
  
  .referral-close-button:hover {
    color: #333;
  }
  
  


