/*
Theme Name: Mysa Day Spa Child
Theme URI: https://shop.mysadayspa.com
Description: Custom child theme for Mysa Day Spa with exact Shopify colors
Author: Mysa Day Spa
Author URI: https://www.mysadayspa.com
Template: spa-treatment
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: mysa-child
*/

:root {
    --wp--preset--color--primary: #9ed1c0 !important;
    --wp--preset--color--secondary: #215f50 !important;
    --wp--preset--color--accent: #9ed1c0 !important;
    --wp--preset--color--foreground: #0f4537 !important;
    --wp--preset--color--background: #ffffff !important;
    --mysa-sage-green: #9ed1c0;
    --mysa-dark-teal: #215f50;
    --mysa-light-body: #209576;
    --mysa-text: #0f4537;
    --mysa-page-bg: #ffffff;
    --mysa-panel-bg: #fcfbfc;
    --mysa-border: #e0e0e0;
    --mysa-footer-bg: #d8dedc;
}

[data-theme="dark"] {
    --wp--preset--color--background: #1a1a1a !important;
    --wp--preset--color--foreground: #9ed1c0 !important;
    --mysa-text: #e0e0e0;
    --mysa-page-bg: #1a1a1a;
    --mysa-panel-bg: #2a2a2a;
    --mysa-border: #404040;
    --mysa-footer-bg: #252525;
}

[data-theme="dark"] body {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

[data-theme="dark"] .site-header {
    background-color: #252525;
    border-bottom: 1px solid #404040;
}

[data-theme="dark"] .main-navigation a {
    color: #e0e0e0;
}

[data-theme="dark"] .main-navigation a:hover {
    color: #9ed1c0;
}

[data-theme="dark"] .main-navigation .sub-menu {
    background: #252525;
    border: 1px solid #404040;
}

[data-theme="dark"] .main-navigation .sub-menu a:hover {
    background-color: #2a2a2a;
}

[data-theme="dark"] .menu-toggle {
    color: #9ed1c0;
}

[data-theme="dark"] .mysa-announcement-bar {
    background-color: #2a2a2a;
    border-bottom: 2px solid #215f50;
}

[data-theme="dark"] .mysa-announcement-bar p {
    color: #e0e0e0;
}

[data-theme="dark"] .carousel-overlay {
    background: rgba(26, 26, 26, 0.7);
}

[data-theme="dark"] .carousel-content h2 {
    color: #9ed1c0;
}

[data-theme="dark"] .carousel-content p {
    color: #e0e0e0;
}

[data-theme="dark"] .mysa-footer {
    background-color: #252525;
}

[data-theme="dark"] .footer-section h3 {
    color: #9ed1c0;
}

[data-theme="dark"] .footer-section a,
[data-theme="dark"] .footer-section p,
[data-theme="dark"] .footer-bottom p {
    color: #e0e0e0;
}

[data-theme="dark"] .footer-section a:hover {
    color: #9ed1c0;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: #9ed1c0;
}

[data-theme="dark"] a {
    color: #9ed1c0;
}

[data-theme="dark"] a:hover {
    color: #215f50;
}

body {
    color: #0f4537;
    background-color: #ffffff;
}

.topbar {
    background-color: #9ed1c0 !important;
    color: #0f4537 !important;
}

.lower-header {
    background-color: #ffffff !important;
}

.has-primary-background-color {
    background-color: #9ed1c0 !important;
}

.wp-block-button__link,
.wp-element-button {
    background-color: #215f50 !important;
    color: #ffffff !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: #209576 !important;
}

a {
    color: #215f50;
}

a:hover {
    color: #9ed1c0;
}

.wp-block-navigation a {
    color: #ffffff !important;
}

.wp-block-navigation a:hover {
    opacity: 0.8;
}

footer {
    background-color: #d8dedc !important;
    color: #0f4537 !important;
}

.woocommerce-Price-amount {
    color: #215f50 !important;
}

.onsale {
    background-color: #209576 !important;
}

body,
p,
.wp-block-navigation {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Palatino', 'Palatino Linotype', 'Book Antiqua', serif;
    color: #0f4537;
}

.mysa-announcement-bar {
    background-color: #9ed1c0;
    border-bottom: 2px solid #215f50;
    text-align: center;
    padding: 12px 20px;
}

.mysa-announcement-bar p {
    margin: 0;
    color: #0f4537;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 600;
}

.mysa-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #9ed1c0;
}

.carousel-slides {
    position: relative;
    width: 100%;
    height: 500px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide.active {
    opacity: 1;
    animation: fadeIn 0.6s ease-in;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(158, 209, 192, 0.7);
    z-index: 1;
}

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

.carousel-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.carousel-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #215f50;
}

.carousel-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #0f4537;
}

.carousel-content .btn {
    background-color: #215f50;
    color: #ffffff;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
}

.carousel-content .btn:hover {
    background-color: #209576;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background-color: #215f50;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(33, 95, 80, 0.7);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(33, 95, 80, 0.9);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.wp-block-group.has-primary-background-color .slider-main-box,
.wp-block-group.has-primary-background-color {
    display: none;
}

.wp-block-query,
.wp-block-post-template {
    display: none;
}

.mysa-footer {
    background-color: #d8dedc;
    padding: 60px 20px 20px;
    margin-top: 80px;
}

.mysa-acuity-appointments {
    max-width: 1200px;
    margin: 40px auto 60px;
    padding: 0 20px;
}

.mysa-acuity-appointments + h2,
.mysa-acuity-appointments + .wp-block-heading {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e0e0e0;
}

[data-theme="dark"] .mysa-acuity-appointments + h2,
[data-theme="dark"] .mysa-acuity-appointments + .wp-block-heading {
    border-top-color: #404040;
}

.appointment-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.appointment-type-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.appointment-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

[data-theme="dark"] .appointment-type-card {
    background: #252525;
    border-color: #404040;
}

.appointment-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.appointment-content {
    padding: 20px;
}

.appointment-content h3 {
    margin: 0 0 15px 0;
    color: #215f50;
    font-size: 22px;
}

[data-theme="dark"] .appointment-content h3 {
    color: #9ed1c0;
}

.appointment-description {
    color: #0f4537;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

[data-theme="dark"] .appointment-description {
    color: #e0e0e0;
}

.appointment-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

[data-theme="dark"] .appointment-meta {
    color: #aaa;
}

.appointment-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.book-appointment-btn {
    display: inline-block;
    background-color: #215f50;
    color: #ffffff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.book-appointment-btn:hover {
    background-color: #209576;
    color: #ffffff;
}

.acuity-error {
    color: #d32f2f;
    padding: 15px;
    background: #ffebee;
    border-left: 4px solid #d32f2f;
    border-radius: 4px;
}

[data-theme="dark"] .acuity-error {
    background: #4a1f1f;
    color: #ff6b6b;
}

.mysa-booking-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mysa-booking-modal.active {
    opacity: 1;
    pointer-events: all;
}

.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1;
}

.booking-modal-panel {
    position: fixed;
    top: 0;
    right: -500px;
    width: 500px;
    max-width: 90vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease;
    z-index: 2;
}

.mysa-booking-modal.active .booking-modal-panel {
    right: 0;
}

[data-theme="dark"] .booking-modal-panel {
    background: #252525;
}

.booking-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #0f4537;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.booking-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .booking-modal-close {
    color: #e0e0e0;
}

[data-theme="dark"] .booking-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.booking-modal-header {
    padding: 30px;
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .booking-modal-header {
    border-bottom-color: #404040;
}

.booking-modal-header h2 {
    margin: 0;
    color: #215f50;
    font-size: 24px;
}

[data-theme="dark"] .booking-modal-header h2 {
    color: #9ed1c0;
}

.booking-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.booking-modal-content p {
    color: #0f4537;
    line-height: 1.6;
    margin-bottom: 15px;
}

[data-theme="dark"] .booking-modal-content p {
    color: #e0e0e0;
}

/* Calendar Selection Styles */
.calendars-selection h3 {
    color: #215f50;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9ed1c0;
}

.calendars-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.calendar-card {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.calendar-card:hover {
    border-color: #9ed1c0;
    box-shadow: 0 4px 12px rgba(158, 209, 192, 0.2);
}

.calendar-info h4 {
    color: #215f50;
    font-size: 18px;
    margin: 0 0 10px 0;
}

.calendar-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px 0;
}

.calendar-email {
    color: #0f4537;
    font-size: 13px;
    margin: 5px 0;
}

.select-calendar-btn {
    background: #9ed1c0;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 15px;
    width: 100%;
}

.select-calendar-btn:hover {
    background: #215f50;
}

.loading, .error, .no-calendars, .success {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

.loading {
    color: #666;
}

.error {
    color: #dc3545;
    background: #f8d7da;
    border-radius: 8px;
}

.success {
    color: #155724;
    background: #d4edda;
    border-radius: 8px;
}

.no-calendars {
    color: #856404;
    background: #fff3cd;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .booking-modal-panel {
        width: 100%;
        right: -100%;
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: #215f50;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Palatino', serif;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #0f4537;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
}

.footer-section a:hover {
    color: #215f50;
}

.footer-section p {
    color: #0f4537;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    margin: 5px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(15, 69, 55, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #0f4537;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    margin: 0;
}

footer:not(.mysa-footer) {
    display: none;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #215f50;
    border-radius: 50%;
    color: #ffffff;
}

.social-icons a:hover {
    background-color: #209576;
}

.social-icons svg {
    fill: #ffffff;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.payment-methods img {
    height: 18px;
    width: auto;
}

.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
}

.site-branding {
    flex: 0 0 auto;
    order: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dark-mode-toggle {
    background: transparent;
    border: 2px solid #215f50;
    color: #215f50;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    background: #215f50;
    color: #ffffff;
}

[data-theme="dark"] .dark-mode-toggle {
    border-color: #9ed1c0;
    color: #9ed1c0;
}

[data-theme="dark"] .dark-mode-toggle:hover {
    background: #9ed1c0;
    color: #1a1a1a;
}

.site-logo {
    display: block;
}

.site-logo img {
    height: 60px;
    width: auto;
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    order: 3;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    margin: 0;
    position: relative;
}

.main-navigation a {
    color: #0f4537;
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    display: block;
}

.main-navigation a:hover {
    color: #9ed1c0;
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #215f50;
    border-bottom: 2px solid #9ed1c0;
}

.main-navigation .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
    opacity: 0.7;
}

[data-theme="dark"] .main-navigation a {
    color: #e0e0e0;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 250px;
    padding: 15px 0;
    z-index: 1000;
    list-style: none;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu li {
    margin: 0;
    padding: 0;
}

.main-navigation .sub-menu a {
    padding: 10px 20px;
    color: #0f4537;
    font-weight: 400;
    border-bottom: none;
}

.main-navigation .sub-menu a:hover {
    background-color: #f5f5f5;
    color: #215f50;
}

.menu-toggle {
    display: none;
    background: transparent;
    color: #215f50;
    border: none;
    padding: 5px;
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    order: 2;
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .header-inner {
        flex-wrap: wrap;
        position: relative;
        justify-content: space-between;
    }

    .site-logo img {
        height: 50px;
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .main-navigation {
        width: 100%;
        order: 3;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px;
        gap: 15px;
        z-index: 999;
    }

    .main-navigation.toggled ul {
        display: flex;
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        background: #f9f9f9;
        margin-top: 5px;
    }

    .main-navigation li:hover > .sub-menu {
        display: none;
    }

    .main-navigation .menu-item-has-children.toggled > .sub-menu {
        display: block;
    }

    .main-navigation .menu-item-has-children > a::after {
        content: ' ▶';
        transition: transform 0.3s ease;
    }

    .main-navigation .menu-item-has-children.toggled > a::after {
        content: ' ▼';
    }

    .mysa-announcement-bar {
        padding: 10px 15px;
    }

    .mysa-announcement-bar p {
        font-size: 14px;
    }

    .carousel-slides {
        height: 350px;
    }

    .carousel-content h2 {
        font-size: 28px;
    }

    .carousel-content p {
        font-size: 15px;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ==========================================
   Gift Card Section
   ========================================== */

.mysa-gift-card-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Gift Card Preview */
.gift-card-preview {
    position: sticky;
    top: 120px;
}

.gift-card-visual {
    perspective: 1000px;
}

.gift-card-front {
    background: linear-gradient(135deg, #9ed1c0 0%, #215f50 100%);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    aspect-ratio: 1.586;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    position: relative;
    overflow: hidden;
}

.gift-card-front::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.gift-card-logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.gift-card-amount {
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 20px 0;
}

.gift-card-label {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.9;
}

/* Gift Card Form */
.gift-card-form-container h2 {
    color: #215f50;
    margin-bottom: 10px;
    font-size: 32px;
}

.gift-card-form-container > p {
    color: #666;
    margin-bottom: 30px;
}

.gift-card-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #215f50;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #9ed1c0;
}

/* Amount Selection */
.amount-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.amount-btn {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #0f4537;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    border-color: #9ed1c0;
    background: rgba(158, 209, 192, 0.1);
}

.amount-btn.active {
    background: #9ed1c0;
    border-color: #9ed1c0;
    color: white;
}

.custom-amount label {
    display: block;
    margin-bottom: 10px;
    color: #0f4537;
    font-weight: 600;
}

.amount-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.currency-symbol {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: 600;
    color: #666;
}

.custom-amount input {
    width: 100%;
    padding: 12px 15px 12px 35px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.custom-amount input:focus {
    outline: none;
    border-color: #9ed1c0;
}

/* Form Fields */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    color: #0f4537;
    font-weight: 600;
    font-size: 14px;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #9ed1c0;
}

.form-row textarea {
    resize: vertical;
    min-height: 100px;
}

/* Payment Container */
#card-container {
    min-height: 100px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
}

/* Form Total */
.form-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(158, 209, 192, 0.1);
    border-radius: 8px;
    margin: 20px 0;
    font-size: 24px;
    font-weight: 700;
    color: #215f50;
}

/* Purchase Button */
.purchase-btn {
    width: 100%;
    padding: 18px;
    background: #9ed1c0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.purchase-btn:hover {
    background: #215f50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 95, 80, 0.3);
}

.purchase-btn:active {
    transform: translateY(0);
}

.purchase-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Payment Status Messages */
#payment-status {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    display: none;
}

#payment-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#payment-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive Design for Gift Cards */
@media (max-width: 768px) {
    .mysa-gift-card-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .gift-card-preview {
        position: static;
    }

    .gift-card-front {
        padding: 30px;
    }

    .gift-card-logo {
        font-size: 22px;
    }

    .gift-card-amount {
        font-size: 36px;
    }

    .amount-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .amount-btn {
        padding: 12px;
        font-size: 16px;
    }

    .gift-card-form {
        padding: 20px;
    }

    .form-total {
        font-size: 20px;
        padding: 15px;
    }

    .purchase-btn {
        padding: 15px;
        font-size: 16px;
    }
}

/* Dark Mode for Gift Cards */
[data-theme="dark"] .gift-card-form {
    background: #2a2a2a;
}

[data-theme="dark"] .gift-card-form-container h2,
[data-theme="dark"] .form-section h3 {
    color: #9ed1c0;
}

[data-theme="dark"] .gift-card-form-container > p,
[data-theme="dark"] .form-row label,
[data-theme="dark"] .custom-amount label {
    color: #e0e0e0;
}

[data-theme="dark"] .amount-btn {
    background: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .amount-btn:hover {
    border-color: #9ed1c0;
    background: rgba(158, 209, 192, 0.2);
}

[data-theme="dark"] .amount-btn.active {
    background: #9ed1c0;
    border-color: #9ed1c0;
    color: #1a1a1a;
}

[data-theme="dark"] .form-row input,
[data-theme="dark"] .form-row textarea,
[data-theme="dark"] .custom-amount input {
    background: #2a2a2a;
    border-color: #404040;
    color: #e0e0e0;
}

[data-theme="dark"] .form-row input:focus,
[data-theme="dark"] .form-row textarea:focus,
[data-theme="dark"] .custom-amount input:focus {
    border-color: #9ed1c0;
}

[data-theme="dark"] #card-container {
    background: #2a2a2a;
    border-color: #404040;
}

[data-theme="dark"] .form-total {
    background: rgba(158, 209, 192, 0.2);
    color: #9ed1c0;
}

/* ==========================================
   Square Products Section
   ========================================== */

.mysa-square-products {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #999;
    font-size: 14px;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #215f50;
    margin: 0 0 10px 0;
}

.product-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #0f4537;
    margin: 0 0 15px 0;
}

.product-view-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #9ed1c0;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.product-view-btn:hover {
    background: #215f50;
    color: white;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.square-products-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 20px 0;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 12px 24px;
    background: #9ed1c0;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background: #215f50;
    color: white;
    transform: translateY(-2px);
}

/* Dark Mode for Products */
[data-theme="dark"] .product-card {
    background: #2a2a2a;
}

[data-theme="dark"] .product-name {
    color: #9ed1c0;
}

[data-theme="dark"] .product-description {
    color: #ccc;
}

[data-theme="dark"] .product-price {
    color: #9ed1c0;
}

[data-theme="dark"] .product-image-placeholder {
    background: linear-gradient(135deg, #2a2a2a 0%, #404040 100%);
    color: #666;
}

[data-theme="dark"] .no-products {
    color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 20px;
    }

    .products-pagination {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
    }
}

/* Date and Time Selection Styles */
.date-time-selection {
    padding: 20px 0;
}

.back-button {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    color: #0f4537;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    display: inline-block;
}

.back-button:hover {
    background: #e0e0e0;
    border-color: #9ed1c0;
}

.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.date-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.date-btn:hover {
    border-color: #9ed1c0;
    box-shadow: 0 2px 8px rgba(158, 209, 192, 0.2);
}

.date-btn.active {
    background: #9ed1c0;
    border-color: #9ed1c0;
    color: white;
}

.date-btn .day-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

.date-btn .month-day {
    font-size: 18px;
    font-weight: 700;
}

.date-btn.active .day-name,
.date-btn.active .month-day {
    color: white;
}

.times-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.times-container h3 {
    color: #215f50;
    margin-bottom: 15px;
}

.times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.time-btn {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #0f4537;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-btn:hover {
    border-color: #9ed1c0;
    background: #9ed1c0;
    color: white;
}

.no-dates, .no-times {
    text-align: center;
    padding: 30px;
    color: #856404;
    background: #fff3cd;
    border-radius: 8px;
    margin: 20px 0;
}
