/* macOS WooCommerce Products Display CSS */

/* Reset and base styles */
.macos-products-container * {
    box-sizing: border-box;
}

/* Performance optimizations */
.macos-product-item,
.macos-modal-content,
.macos-modal-overlay {
    will-change: transform, opacity;
    transform: translateZ(0); /* Force GPU acceleration */
}

/* Smooth transitions for all interactive elements */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main product grid container */
.macos-products-container {
    padding: 20px 0;
    background: transparent;
}

.macos-products-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive grid */
@media (max-width: 1200px) {
    .macos-products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1000px) {
    .macos-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .macos-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
    }
}

@media (max-width: 480px) {
    .macos-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
}

/* Individual product items */
.macos-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}

.macos-product-item:hover {
    transform: scale(1.02);
    opacity: 0.8;
    transition: all 0.2s ease;
}

/* Product icon/image */
.macos-product-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macos-product-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* Extra cards (FAQs / Contact) share same layout as product items */
.macos-extra-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border-radius: 16px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
}
.macos-extra-item:hover { transform: scale(1.02); opacity: 0.85; }

/* Icon tile styling to match other app icons */
.macos-extra-item .macos-product-icon {
    margin-top: 8px;
    width: 70px;
    height: 70px;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.3), 
                inset 0 1px 0 rgba(255,255,255,0.15),
                inset 0 -1px 0 rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}
.macos-faq-card .macos-product-icon {
    background: linear-gradient(135deg, #5b9bd5 0%, #4472c4 50%, #3b5998 100%);
}
.macos-contact-card .macos-product-icon {
    background: linear-gradient(135deg, #70d470 0%, #4caf50 50%, #2e7d32 100%);
}
.macos-info-card .macos-product-icon {
    background: linear-gradient(135deg, #ff9500 0%, #ff6b35 50%, #e55100 100%);
}
.macos-extra-item .macos-product-icon svg {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.macos-extra-item .macos-product-icon svg path {
    fill: rgba(255, 255, 255, 0.95);
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* Modal FAQ accordion */
.macos-faq-modal-content {
    padding: 24px;
    color: #ffffff;
}
.macos-faq-modal-content .macos-modal-product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}
.macos-faq-accordion { margin: 0; }
.macos-faq-item { 
    background: rgba(255,255,255,0.06); 
    border: 1px solid rgba(255,255,255,0.12); 
    border-radius: 12px; 
    margin-bottom: 12px; 
    overflow: hidden;
    transition: all 0.2s ease;
}
.macos-faq-item:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}
.macos-faq-q { 
    padding: 16px 18px; 
    font-weight: 600; 
    color: #fff; 
    cursor: pointer; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    transition: all 0.15s ease;
}
.macos-faq-q:hover { background: rgba(255,255,255,0.04); }
.macos-faq-a { 
    padding: 0 18px 16px; 
    color: rgba(255,255,255,0.85); 
    display: none;
    line-height: 1.5;
    font-size: 14px;
}
.macos-faq-item.open .macos-faq-a { display: block; }
.macos-faq-q .chev { 
    opacity: 0.7; 
    transition: transform 0.2s ease;
    font-size: 12px;
}
.macos-faq-item.open .macos-faq-q .chev { 
    transform: rotate(180deg);
}

/* FAQ skeleton loading */
.macos-faq-skeleton {
    padding: 24px;
}
.macos-faq-skeleton-title {
    height: 24px;
    width: 120px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    margin-bottom: 20px;
}
.macos-faq-skeleton-item {
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    margin-bottom: 12px;
}

/* Info skeleton loading */
.macos-info-skeleton {
    padding: 24px;
}
.macos-info-skeleton-image {
    height: 200px;
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    margin-bottom: 20px;
}
.macos-info-skeleton-text {
    height: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    margin-bottom: 12px;
}
.macos-info-skeleton-text:nth-child(2) { width: 90%; }
.macos-info-skeleton-text:nth-child(3) { width: 75%; }
.macos-info-skeleton-text:nth-child(4) { width: 85%; }

/* intentionally no styles; previously used to override hover effects */

/* Product name */
.macos-product-name {
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    word-wrap: break-word;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Modal styles */
.macos-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.macos-modal.active {
    display: flex;
    opacity: 1;
}

.macos-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.macos-modal-content {
    position: relative;
    background: rgba(55, 55, 57, 0.98);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 16px;
    margin: auto;
    max-width: 85%;
    max-height: 90vh;
    width: 600px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding-bottom: 80px; /* reserve space so bottom arrows never overlap CTA */
    display: flex;
    flex-direction: column;
}

.macos-modal.active .macos-modal-content {
    transform: scale(1);
}

/* Modal header - removed since we moved elements */

.macos-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    z-index: 10004;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.macos-modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}


.macos-modal-prev,
.macos-modal-next {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    color: #ffffff;
    cursor: pointer;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: absolute;
    z-index: 10003;
}

/* Show navigation buttons for product and ad modals */
.macos-modal.product-modal .macos-modal-prev,
.macos-modal.product-modal .macos-modal-next,
.macos-modal.ad-modal .macos-modal-prev,
.macos-modal.ad-modal .macos-modal-next {
    display: flex;
}

/* Hide navigation buttons for contact, FAQ, info, and checkout modals */
/* Show navigation buttons for ad modals since they're now part of the navigation flow */
.macos-modal.contact-modal .macos-modal-prev,
.macos-modal.contact-modal .macos-modal-next,
.macos-modal.faq-modal .macos-modal-prev,
.macos-modal.faq-modal .macos-modal-next,
.macos-modal.info-modal .macos-modal-prev,
.macos-modal.info-modal .macos-modal-next,
.macos-modal.checkout-modal .macos-modal-prev,
.macos-modal.checkout-modal .macos-modal-next {
    display: none !important;
}

/* Remove bottom padding for FAQ, Contact, Info, and Checkout modals since they don't have navigation buttons */
/* Keep padding for ad-modal since it now has navigation buttons */
.macos-modal.contact-modal .macos-modal-content,
.macos-modal.faq-modal .macos-modal-content,
.macos-modal.info-modal .macos-modal-content,
.macos-modal.checkout-modal .macos-modal-content {
    padding-bottom: 0 !important;
}

.macos-modal-prev:hover,
.macos-modal-next:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Place prev/next at bottom corners of modal content */
.macos-modal-prev { 
    left: 24px; 
    right: auto; 
    top: auto;
    bottom: 24px;
}
.macos-modal-next { 
    right: 24px; 
    left: auto; 
    top: auto;
    bottom: 24px;
}

/* Modal body */
.macos-modal-body {
    padding: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0; /* Important for flexbox scrolling */
}

/* Product details in modal */
.macos-modal-product {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 24px;
    color: #ffffff;
}

.macos-modal-product-image {
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macos-modal-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.macos-modal-product-details {
    flex: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.macos-modal-product-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.2;
}

.macos-modal-product-description {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    display: block !important;
}

.macos-modal-product-price {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Form styles */
/* form container (reserved for future layout hooks) */

.macos-variations {
    margin-top: 24px;
    margin-bottom: 24px;
    width: 100%;
}

.macos-variation-group {
    margin-bottom: 20px;
}

.macos-variation-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macos-variation-select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(48, 48, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 14px;
    padding-right: 44px;
    box-shadow: none;
}

.macos-variation-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(60, 60, 67, 0.95);
    box-shadow: none;
}

/* Variation buttons (replacing dropdown UX in modal) */
.macos-variation-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 6px 0 12px;
}

.macos-variation-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    min-width: 96px; /* make a consistent, tappable target */
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.macos-variation-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.macos-variation-button:active {
    transform: translateY(1px);
}

.macos-variation-button.active {
    background: linear-gradient(135deg, #0a84ff, #6e5efb);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.30);
}

/* Hide native selects when button UI is present */
.macos-variations .macos-variation-select { display: none; }

/* Email Variation Group */
.macos-email-variation-group {
    margin-bottom: 24px;
}

.macos-email-variation-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macos-email-variation-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.macos-email-variation-button {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.95);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    flex: 1;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.macos-email-variation-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

.macos-email-variation-button:active {
    transform: translateY(1px);
}

.macos-email-variation-button.active {
    background: linear-gradient(135deg, #0a84ff, #6e5efb);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.30);
}

/* Tooltip styles for account options */
.macos-email-variation-button {
    position: relative;
}

.macos-email-variation-button::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    white-space: normal;
    max-width: 220px;
    min-width: 180px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    word-wrap: break-word;
}

.macos-email-variation-button::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    pointer-events: none;
}

.macos-email-variation-button:hover::before,
.macos-email-variation-button:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-6px);
}

.macos-email-variation-button:hover::after {
    transform: translateX(-50%) translateY(100%);
}

.macos-conditional-email,
.macos-conditional-password {
    margin-top: 12px;
    transition: all 0.3s ease;
}

.macos-conditional-email label,
.macos-conditional-password label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macos-custom-email-input,
.macos-custom-password-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(48, 48, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.macos-custom-email-input::placeholder,
.macos-custom-password-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.macos-custom-email-input:focus,
.macos-custom-password-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(60, 60, 67, 0.95);
    box-shadow: none;
}

/* Side-by-side layout for email and password fields */
.macos-email-password-row {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

.macos-email-password-row .macos-conditional-email,
.macos-email-password-row .macos-conditional-password {
    flex: 1;
    margin-top: 0;
}

/* Remove transitions on all inputs/buttons inside the cart form for snappy feel */
.macos-cart-form *,
.macos-quantity-controls *,
.macos-add-to-cart {
    transition: none !important;
}

/* Skeleton styles for instant-looking popup */
.macos-modal-skeleton {
    padding: 24px;
}
.macos-skel-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.macos-skel-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
}
.macos-skel-lines { flex: 1; }
.macos-skel-line {
    height: 14px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
}
.macos-skel-line.w-60 { width: 60%; }
.macos-skel-line.w-40 { width: 40%; }
.macos-skel-field { height: 48px; border-radius: 12px; margin: 14px 0; }
.macos-skel-field,
.macos-skel-btn {
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
}
.macos-skel-btn { height: 52px; border-radius: 12px; margin-top: 8px; }

@keyframes macos-skel-shine {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

.macos-variation-select option {
    background: #2c2c2e;
    color: #ffffff;
    padding: 8px;
}

/* Quantity controls */
.macos-quantity-group {
    margin-bottom: 28px;
}

.macos-quantity-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macos-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    background: rgba(48, 48, 51, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.macos-qty-minus,
.macos-qty-plus {
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.macos-qty-minus:hover,
.macos-qty-plus:hover {
    background: rgba(255, 255, 255, 0.1);
}

.macos-quantity-input {
    width: 50px;
    height: 40px;
    border: none;
    background: transparent;
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    -moz-appearance: textfield;
    appearance: textfield;
}

.macos-quantity-input::-webkit-outer-spin-button,
.macos-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.macos-quantity-input:focus {
    outline: none;
}

/* Add to cart button */
.macos-add-to-cart {
    background: linear-gradient(135deg, #007aff, #5856d6);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding: 16px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    margin-top: 8px;
}

.macos-add-to-cart:hover {
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.4);
    background: linear-gradient(135deg, #0066cc, #4a44b8);
}

.macos-add-to-cart:active {
    transform: scale(0.98);
}

/* Actions row: Add to Cart + Checkout */
.macos-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: stretch;
    margin-top: 10px;
}

.macos-actions .macos-add-to-cart { width: 100%; }

.macos-go-checkout {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 16px 18px;
    height: 52px; /* visually match add-to-cart height */
    background: transparent;
    color: #0a84ff;
    border: 1px solid #0a84ff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: none;
    white-space: nowrap;
    width: 100%;
    margin-top: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
}

.macos-go-checkout:hover {
    background: rgba(10, 132, 255, 0.1);
    color: #0066cc;
    border-color: #0066cc;
}

.macos-go-checkout:active { transform: scale(0.98); }

/* Responsive modal */
@media (max-width: 768px) {
    .macos-modal-content {
        max-width: 95%;
        margin: 20px auto;
        width: 90%;
    }
    
    .macos-modal-product {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-auto-rows: auto;
        align-items: start;
        text-align: left;
        gap: 10px 10px;
        padding: 12px;
    }
    
    .macos-modal-product-image {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        grid-column: 1;
        grid-row: 1 / span 3;
    }
    
    .macos-modal-product-details {
        width: 100%;
        display: contents; /* allow children to participate in parent grid */
    }
    
    .macos-modal-product-title {
        font-size: 14px;
        margin-top: 2px;
        grid-column: 2;
    }
    
    .macos-modal-product-price {
        font-size: 14px;
        grid-column: 2;
    }
    
    .macos-modal-product-description {
        font-size: 13px;
        margin-bottom: 16px;
        grid-column: 2;
    }
    
    .macos-cart-form{
        margin-top: -25px;
    }

    .macos-variation-group { text-align: left; }
    .macos-variations { grid-column: 1 / -1; }
    .macos-cart-form { grid-column: 1 / -1; }
    
    /* Email variation mobile styles */
    .macos-email-variation-group { 
        grid-column: 1 / -1; 
        text-align: left;
        margin-bottom: 16px;
    }
    
    .macos-email-variation-buttons {
        gap: 8px;
        margin-bottom: 10px;
    }
    
    .macos-email-variation-button {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .macos-conditional-email {
        margin-top: 10px;
    }
    
    .macos-custom-email-input,
    .macos-custom-password-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
    
    /* Mobile: Stack fields vertically on small screens */
    .macos-email-password-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .macos-email-password-row .macos-conditional-email,
    .macos-email-password-row .macos-conditional-password {
        flex: none;
    }
    
    /* Mobile tooltip adjustments */
    .macos-email-variation-button::before {
        max-width: 200px;
        min-width: 160px;
        font-size: 11px;
        padding: 8px 10px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .macos-email-variation-button:hover::before {
        transform: translateX(-50%) translateY(-4px);
    }
    
    .macos-quantity-group { text-align: left; grid-column: 1 / -1; }
    
    .macos-quantity-controls { justify-content: flex-start; }
    
    .macos-add-to-cart { font-size: 15px; padding: 12px 18px; }

    /* Stack CTAs on mobile */
    .macos-actions {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .macos-actions .macos-add-to-cart,
    .macos-go-checkout { width: 100%; }

    /* Keep arrows small and pinned to bottom on mobile */
    .macos-modal-prev,
    .macos-modal-next {
        width: 28px;
        height: 32px;
        font-size: 13px;
        bottom: 16px;
        position: absolute !important;
    }
    
    /* Mobile positioning - relative to modal content */
    .macos-modal-prev { 
        left: 16px !important; 
    }
    .macos-modal-next { 
        right: 16px !important; 
    }
}

/* Loading state */
.macos-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: #ffffff;
    font-size: 16px;
}

/* Smooth scrollbar */
.macos-modal-body::-webkit-scrollbar {
    width: 8px;
}

.macos-modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.macos-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.macos-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ============================================
   Contact Modal Styling (matching checkout modal)
   ============================================ */

/* Contact Container (matching checkout) */
.macos-contact-container {
    padding: 0;
    position: relative;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(44, 44, 46, 0.95) 0%, rgba(28, 28, 30, 0.98) 100%);
    border-radius: 20px;
}

.macos-contact-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-contact-container h2 {
    font-size: 22px;
    margin: 0 0 20px;
    font-weight: 500;
    color: #fff;
}

/* Custom Scrollbar Styles for Contact Modal */
.macos-contact-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.macos-contact-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.macos-contact-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.macos-contact-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox Scrollbar */
.macos-contact-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Contact Form Layout (matching checkout) */
.macos-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.macos-contact-section {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.macos-contact-form-full {
    grid-column: span 2;
}

.macos-contact-group {
    margin-bottom: 20px;
}

.macos-contact-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macos-contact-group input,
.macos-contact-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(48, 48, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    outline: none;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.macos-contact-group input::placeholder,
.macos-contact-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.macos-contact-group input:focus,
.macos-contact-group textarea:focus {
    border-color: rgba(0, 122, 255, 0.6);
    background: rgba(60, 60, 67, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.macos-contact-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Contact Actions (matching checkout) */
.macos-contact-actions {
    padding: 25px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

.macos-contact-submit {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.macos-contact-submit:hover {
    background: linear-gradient(135deg, #0056cc, #4a44b8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.macos-contact-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

.macos-contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.macos-contact-response {
    padding: 16px 20px;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 15px;
    font-weight: 500;
    display: none;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macos-contact-response.success {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.3);
    color: #34C759;
    display: block;
}

.macos-contact-response.error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #FF3B30;
    display: block;
}

/* Loading state for submit button */
.macos-contact-submit.loading {
    position: relative;
    color: transparent;
}

.macos-contact-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: contactSpin 1s linear infinite;
}

@keyframes contactSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info Modal Styles */
.macos-info-modal-content {
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
}

.macos-info-item {
    margin-bottom: 30px;
}

.macos-info-item:last-child {
    margin-bottom: 0;
}

.macos-info-image {
    text-align: center;
    margin-bottom: 20px;
}

.macos-info-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    width: 35% !important;
}

.macos-info-image img:hover {
    transform: scale(1.02);
}

.macos-info-content {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macos-info-content p {
    margin-bottom: 16px;
}

.macos-info-content p:last-child {
    margin-bottom: 0;
}

.macos-info-content h1,
.macos-info-content h2,
.macos-info-content h3,
.macos-info-content h4,
.macos-info-content h5,
.macos-info-content h6 {
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
}

.macos-info-content ul,
.macos-info-content ol {
    padding-left: 20px;
    margin-bottom: 16px;
}

.macos-info-content li {
    margin-bottom: 8px;
}

/* Floating Cart Styles - Enhanced from functions.php */
.macos-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(70, 70, 75, 0.5);
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    min-width: 300px;
    max-width: 400px;
    transform: translateY(120%);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: none;
}

.macos-floating-cart.active {
    transform: translateY(0);
    display: block;
}

.macos-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-cart-title {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.macos-cart-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 5px;
    font-size: 18px;
}

.macos-cart-close:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.macos-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.macos-cart-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    padding-right: 30px;
}

.macos-cart-item-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    margin-right: 12px;
}

.macos-cart-item-details {
    flex: 1;
}

.macos-cart-item-title {
    color: white;
    font-size: 14px;
    margin: 0 0 4px;
}

.macos-cart-item-price {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.macos-cart-item-quantity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.macos-cart-item-remove {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 5px 8px;
    transition: color 0.2s;
}

.macos-cart-item-remove:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}

.macos-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-cart-total-text {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.macos-cart-total-amount {
    color: white;
    font-size: 15px;
    font-weight: 500;
}

.macos-cart-checkout {
    background: linear-gradient(135deg, #007AFF 0%, #0056CC 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    display: block;
}

.macos-cart-checkout:hover {
    background: linear-gradient(135deg, #1E88E5 0%, #1565C0 100%);
    transform: scale(1.02);
}

.macos-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff3b30;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.macos-cart-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid rgba(70, 70, 75, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.macos-cart-toggle:hover {
    transform: scale(1.05);
}

.macos-cart-toggle.active {
    display: flex;
}

.macos-cart-toggle svg {
    width: 24px;
    height: 24px;
    fill: white;
}

@media (max-width: 768px) {
    .macos-modal-content {
        max-height: 95vh;
        max-width: 95%;
        margin: 10px auto;
        padding-bottom: 60px;
    }
    
    /* Reduce bottom padding for FAQ, Contact, and Info modals on mobile */
    .macos-modal.contact-modal .macos-modal-content,
    .macos-modal.faq-modal .macos-modal-content,
    .macos-modal.info-modal .macos-modal-content {
        padding-bottom: 15px;
    }
    
    .macos-contact-container {
        padding: 20px;
        height: auto;
        min-height: 100%;
    }
    
    .macos-contact-title {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    .macos-contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .macos-contact-form-full {
        grid-column: span 1;
    }

    .macos-contact-submit {
        width: 100%;
        justify-self: stretch;
        padding: 18px 32px;
    }
    
    .macos-contact-group input,
    .macos-contact-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }

    .macos-floating-cart {
        width: 100%;
        max-width: none;
        bottom: 0;
        right: 0;
        border-radius: 12px 12px 0 0;
        transform: translateY(100%);
    }

    .macos-floating-cart.active {
        transform: translateY(0);
    }

    .macos-cart-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* Hide WooCommerce notices/popups when using our custom cart */
.woocommerce-message.added_to_cart,
.woocommerce-message .wc-forward,
.woocommerce-notices-wrapper .woocommerce-message,
.wc-forward,
.added_to_cart,
.view-cart,
.woocommerce-message a.wc-forward {
    display: none !important;
}

/* Only hide WooCommerce messages that contain "View cart" or similar */
.woocommerce-message:has(.wc-forward),
.woocommerce-message:has(a[href*="cart"]) {
    display: none !important;
}

/* Ensure navigation buttons are positioned relative to modal content */
.macos-modal.product-modal .macos-modal-prev,
.macos-modal.product-modal .macos-modal-next {
    position: absolute !important;
    z-index: 10003 !important;
}

/* ============================================
   Checkout Modal Styling (copied from functions.php)
   ============================================ */

/* Checkout Container */
.macos-checkout-container {
    padding: 0;
    position: relative;
    height: 100%;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(44, 44, 46, 0.95) 0%, rgba(28, 28, 30, 0.98) 100%);
    border-radius: 20px;
}

.macos-checkout-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-checkout-container h2 {
    font-size: 22px;
    margin: 0 0 20px;
    font-weight: 500;
    color: #fff;
}

/* Custom Scrollbar Styles */
.macos-checkout-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.macos-checkout-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.macos-checkout-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.macos-checkout-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Firefox Scrollbar */
.macos-checkout-container {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

/* Form Layout */
.macos-checkout-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.macos-checkout-section {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.macos-checkout-form-full {
    grid-column: span 2;
}

.macos-form-group {
    margin-bottom: 20px;
}

.macos-conditional-email {
    margin-top: 10px;
    padding-left: 20px;
}

.macos-conditional-email input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.macos-redeem-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.macos-redeem-container input {
    flex: 1;
}

.macos-apply-code {
    padding: 10px 16px;
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.macos-apply-code:hover {
    background: linear-gradient(135deg, #0056cc, #4a44b8);
    transform: translateY(-1px);
}

.macos-apply-code:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.macos-form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.macos-form-group input,
.macos-form-group select {
    width: 100%;
    padding: 10px 12px;
    background: rgba(40, 40, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.macos-form-group input:focus,
.macos-form-group select:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(45, 45, 50, 0.6);
}

/* Field note styling */
.macos-field-note {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.3;
}

/* Order Summary Styles */
.macos-order-summary {
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-order-summary h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.macos-order-items {
    margin-bottom: 15px;
}

.macos-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.macos-order-item:last-child {
    border-bottom: none;
}

.macos-item-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.macos-item-price {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.macos-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 10px;
}

.macos-discount-label {
    color: #32d74b;
    font-size: 14px;
    font-weight: 500;
}

.macos-discount-amount {
    color: #32d74b;
    font-weight: 600;
    font-size: 14px;
}

.macos-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0 0;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

.macos-total-label {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.macos-total-amount {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

/* Select element styling */
.macos-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%228%22 height=%228%22 viewBox=%220 0 8 8%22%3E%3Cpath d=%22M4 6L0 2h8z%22 fill=%22white%22/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 8px 8px;
    padding-right: 36px;
}

.macos-form-group select:hover {
    background-color: rgba(50, 50, 55, 0.7);
}

/* Checkbox styling */
.macos-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
}

.macos-checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #0B84FF;
}

.macos-checkbox-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    user-select: none;
}

.macos-email-field {
    transition: all 0.3s ease;
}

.macos-email-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.macos-email-field input {
    width: 100%;
    padding: 10px 12px;
    background: rgba(40, 40, 45, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    outline: none;
    transition: all 0.2s ease;
}

.macos-email-field input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(45, 45, 50, 0.6);
}

/* Order Summary Styles */
.macos-checkout-summary {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.macos-checkout-summary h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

.macos-checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.macos-checkout-item:last-child {
    border-bottom: none;
}

.macos-checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-weight: 500;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Checkout Actions */
.macos-checkout-actions {
    padding: 25px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: rgba(255, 255, 255, 0.02);
}

/* Button Styles - Updated design */
.macos-back-button {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macos-back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.macos-place-order {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.macos-place-order:hover {
    background: linear-gradient(135deg, #0056cc, #4a44b8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.macos-place-order:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

/* Sticky Footer */
.macos-checkout-form-full:last-child {
    position: sticky;
    bottom: 0;
    padding: 15px 0;
    margin-bottom: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Spinner */
.macos-spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid #fff;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Checkout form mobile improvements */
@media (max-width: 768px) {
    /* Modal content adjustments for mobile */
    .macos-modal-content {
        max-width: 95%;
        max-height: 85vh;
        width: 90%;
        margin: 20px auto;
        border-radius: 12px;
    }
    
    /* Checkout modal specific mobile styles */
    .macos-modal.checkout-modal .macos-modal-content {
        max-width: 95%;
        width: 90%;
        height: auto;
        max-height: 85vh;
        margin: 20px auto;
        border-radius: 12px;
        overflow-y: auto;
    }
    
    .macos-checkout-container {
        padding: 6px 10px;
        padding-top: 12px;
        height: auto;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(28, 28, 30, 0.98) 0%, rgba(44, 44, 46, 0.95) 100%);
    }
    
    .macos-checkout-header {
        padding: 10px 0 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .macos-checkout-header h2 {
        font-size: 16px;
        margin: 0;
    }
    
    .macos-checkout-section {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .macos-form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .macos-checkout-form-full {
        grid-column: 1;
    }

    .macos-form-group {
        margin-bottom: 10px;
    }

    .macos-form-group input,
    .macos-form-group select,
    .macos-form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 12px;
        border-radius: 6px;
    }
    
    .macos-form-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .macos-order-summary {
        padding: 12px 0;
        background: rgba(0, 0, 0, 0.2);
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .macos-order-summary h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .macos-checkout-actions {
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: stretch;
        background: rgba(255, 255, 255, 0.02);
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .macos-back-button,
    .macos-place-order {
        width: 100%;
        margin: 0;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }

    .macos-checkbox-label {
        margin-bottom: 12px;
        font-size: 15px;
    }

    .macos-conditional-email {
        margin-top: 10px;
        padding-left: 0;
    }
    
    .macos-redeem-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .macos-apply-code {
        width: 100%;
        padding: 14px 16px;
    }
    
    /* Contact form mobile improvements */
    .macos-modal.contact-modal .macos-modal-content {
        max-width: 95%;
        width: 90%;
        height: auto;
        max-height: 85vh;
        margin: 20px auto;
        border-radius: 12px;
        overflow-y: auto;
    }
    
    .macos-contact-container {
        padding: 6px 10px;
        padding-top: 12px;
        height: auto;
        border-radius: 10px;
        background: linear-gradient(135deg, rgba(28, 28, 30, 0.98) 0%, rgba(44, 44, 46, 0.95) 100%);
    }
    
    .macos-contact-header {
        padding: 10px 0 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .macos-contact-header h2 {
        font-size: 16px;
        margin: 0;
    }
    
    .macos-contact-section {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .macos-contact-form-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 10px;
    }

    .macos-contact-form-full {
        grid-column: 1;
    }

    .macos-contact-group {
        margin-bottom: 10px;
    }
    
    .macos-contact-group label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .macos-contact-group input,
    .macos-contact-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px 12px;
        border-radius: 6px;
    }
    
    .macos-contact-group textarea {
        min-height: 80px;
    }

    .macos-contact-actions {
        padding: 12px 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        justify-content: stretch;
        background: rgba(255, 255, 255, 0.02);
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .macos-contact-submit {
        width: 100%;
        margin: 0;
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    /* Make close button smaller and better positioned on mobile */
    .macos-modal-close {
        width: 24px;
        height: 24px;
        right: 8px;
        top: 8px;
        font-size: 12px;
    }
}

/* ============================================
   Ads Styling (copied from functions.php)
   ============================================ */

/* Ad styles - Make consistent with product items */
.macos-ad {
    position: relative;
    /* Remove background - glow will be applied to icon only */
}

/* Glowing border animation */
@keyframes glowing-border {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.3),
                    0 0 10px rgba(255, 149, 0, 0.2),
                    0 0 15px rgba(255, 204, 2, 0.1);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.5),
                    0 0 16px rgba(255, 149, 0, 0.4),
                    0 0 24px rgba(255, 204, 2, 0.3);
        filter: brightness(1.05);
    }
}

/* Enhanced glow on hover - apply to icon only */
.macos-ad:hover .macos-product-icon {
    animation-duration: 1.5s; /* Faster animation on hover */
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6),
                0 0 20px rgba(255, 149, 0, 0.5),
                0 0 30px rgba(255, 204, 2, 0.4) !important;
}

/* Mobile responsive adjustments for glowing effect */
@media (max-width: 768px) {
    .macos-ad .macos-product-icon {
        /* Reduce glow intensity on mobile for better performance */
        animation-duration: 4s; /* Slower animation on mobile */
    }
    
    @keyframes glowing-border {
        0%, 100% {
            box-shadow: 0 0 3px rgba(255, 107, 53, 0.2),
                        0 0 6px rgba(255, 149, 0, 0.15),
                        0 0 10px rgba(255, 204, 2, 0.1);
            filter: brightness(1);
        }
        50% {
            box-shadow: 0 0 5px rgba(255, 107, 53, 0.3),
                        0 0 10px rgba(255, 149, 0, 0.25),
                        0 0 15px rgba(255, 204, 2, 0.2);
            filter: brightness(1.03);
        }
    }
    
    .macos-ad:hover .macos-product-icon {
        animation-duration: 2s;
        box-shadow: 0 0 8px rgba(255, 107, 53, 0.4),
                    0 0 12px rgba(255, 149, 0, 0.3),
                    0 0 18px rgba(255, 204, 2, 0.25) !important;
    }
}

.macos-ad-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 59, 48, 0.95);
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 8px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Make ad icon same size as product icons with glowing border */
.macos-ad .macos-product-icon {
    width: 70px !important;
    height: 70px !important;
    border-radius: 16px !important;
    overflow: visible; /* Allow glow to show */
    position: relative;
    z-index: 1;
    /* Apply glowing border effect to the icon only */
    border: 2px solid transparent;
    background: linear-gradient(#000, #000) padding-box,
                linear-gradient(45deg, #ff6b35, #ff9500, #ffcc02, #32d74b, #007aff, #5856d6, #af52de, #ff2d92) border-box;
    animation: glowing-border 3s ease-in-out infinite;
}

.macos-ad .macos-product-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 14px; /* Slightly smaller than container to show border */
    margin: 0; /* Remove margin to center properly */
}

.macos-ad .macos-product-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
}

/* Modal styles for ads */
.macos-ad .macos-modal-header {
    text-align: center;
}

.macos-ad .macos-modal-app-icon {
    margin: 0 auto 20px;
}

.macos-ad .macos-modal-description {
    text-align: center;
    padding: 20px;
}

/* Ads skeleton loading */
.macos-ads-skeleton {
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
}

.macos-ads-skeleton-image {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    margin-bottom: 20px;
}

.macos-ads-skeleton-title {
    height: 28px;
    width: 60%;
    margin: 0 auto 15px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
}

.macos-ads-skeleton-text {
    height: 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
}

.macos-ads-skeleton-text:nth-child(3) { width: 90%; }
.macos-ads-skeleton-text:nth-child(4) { width: 75%; }
.macos-ads-skeleton-text:nth-child(5) { width: 85%; }

/* Add or update carousel styles */
.macos-ads-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    padding: 30px;
    max-height: 85vh;
    overflow-y: auto;
}

.macos-ad-slide {
    display: none;
    animation: fadeEffect 0.5s ease-out;
    opacity: 0;
}

.macos-ad-slide.active {
    display: block;
    opacity: 1;
}

.macos-ad-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.macos-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.macos-ad-image img:hover {
    transform: scale(1.02);
}

.macos-ad-content {
    padding: 0 10px;
    text-align: center;
}

.macos-ad-content h3 {
    font-size: 28px;
    margin: 0 0 20px;
    color: #fff;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: -0.5px;
}

.macos-ad-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 600px;
    margin: 0 auto;
}

.macos-ad-prev,
.macos-ad-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    opacity: 0.7;
}

.macos-ad-prev {
    left: 10px;
}

.macos-ad-next {
    right: 10px;
}

.macos-ad-prev:hover,
.macos-ad-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom scrollbar for ads carousel */
.macos-ads-carousel::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.macos-ads-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.macos-ads-carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.macos-ads-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .macos-ads-carousel {
        padding: 20px 15px;
    }

    .macos-ads-skeleton {
        padding: 20px 15px;
    }

    .macos-ads-skeleton-image {
        height: 250px;
    }

    .macos-ad-image {
        height: 250px;
        margin-bottom: 20px;
    }

    .macos-ad-content h3 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .macos-ad-description {
        font-size: 15px;
        line-height: 1.5;
    }

    .macos-ad-prev,
    .macos-ad-next {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Mobile adjustments for ad badge */
    .macos-ad-badge {
        font-size: 8px;
        padding: 1px 3px;
        border-radius: 6px;
    }

    /* Ensure ad icon stays consistent on mobile */
    .macos-ad .macos-product-icon {
        width: 70px !important;
        height: 70px !important;
        border-radius: 14px !important;
    }
}

/* Contact form styles */
.macos-contact-container {
    padding: 24px;
    color: #ffffff;
}

.macos-contact-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}

/* Contact info section with QR codes */
.macos-contact-info {
    margin-bottom: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.macos-contact-qr-section {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.macos-contact-qr-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 32px;
    margin-bottom: 30px;
}

.macos-contact-qr-item:last-child {
    margin-bottom: 0;
}

.macos-contact-qr-code {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.macos-contact-qr-code img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.macos-contact-info-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    flex: 1;
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.macos-contact-info-text strong {
    color: #ffffff;
    font-weight: 600;
}

/* Contact skeleton loading */
.macos-contact-skeleton {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 32px;
    margin-bottom: 30px;
}

.macos-contact-skeleton-qr {
    width: 80px;
    height: 80px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    border-radius: 8px;
    flex-shrink: 0;
}

.macos-contact-skeleton-text {
    flex: 1;
    height: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    border-radius: 8px;
    margin-left: 16px;
}

/* Removed .macos-contact-no-image styles as we no longer use placeholder boxes */

/* Contact form styles */
.macos-contact-form {
    margin-top: 20px;
}

.macos-contact-section {
    margin-bottom: 20px;
}

.macos-contact-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.macos-contact-group {
    flex: 1;
    margin-bottom: 15px;
}

.macos-contact-form-full {
    flex: none;
    width: 100%;
}

.macos-contact-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.macos-contact-group input,
.macos-contact-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(48, 48, 51, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.macos-contact-group input::placeholder,
.macos-contact-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.macos-contact-group input:focus,
.macos-contact-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(60, 60, 67, 0.95);
    box-shadow: none;
}

.macos-contact-group textarea {
    resize: vertical;
    min-height: 120px;
}

.macos-contact-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.macos-contact-submit {
    background: linear-gradient(135deg, #007aff, #5856d6);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.macos-contact-submit:hover {
    background: linear-gradient(135deg, #0056cc, #4a44b8);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.macos-contact-submit.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.macos-contact-response {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.macos-contact-response.success {
    background: rgba(48, 209, 88, 0.2);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: #30d158;
}

.macos-contact-response.error {
    background: rgba(255, 59, 48, 0.2);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

/* Mobile responsive for contact form */
@media (max-width: 768px) {
    .macos-contact-container {
        padding: 20px 16px;
    }
    
    .macos-contact-qr-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .macos-contact-qr-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .macos-contact-skeleton {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        margin-bottom: 25px;
    }
    
    .macos-contact-info-text,
    .macos-contact-skeleton-text {
        margin-left: 0;
    }
    
    .macos-contact-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .macos-contact-group input,
    .macos-contact-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px 16px;
    }
}


figure{
    margin:10px !important;
}

/* Impress Modal Styles */
.macos-impress-container {
    padding: 24px 24px 0 24px;
    color: #ffffff;
    max-height: 70vh;
    overflow-y: auto;
}

.macos-impress-item {
    margin-bottom: 32px;
}

.macos-impress-item:last-child {
    margin-bottom: 0;
}

.macos-impress-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.macos-impress-content {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.macos-impress-content h1,
.macos-impress-content h2,
.macos-impress-content h3,
.macos-impress-content h4,
.macos-impress-content h5,
.macos-impress-content h6 {
    color: #ffffff;
    margin: 20px 0 12px 0;
}

.macos-impress-content p {
    margin: 0 0 16px 0;
}

.macos-impress-content ul,
.macos-impress-content ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.macos-impress-content li {
    margin: 0 0 8px 0;
}

/* Impress Skeleton Loading */
.macos-impress-skeleton {
    padding: 24px 24px 0 24px;
}

.macos-impress-skeleton-title {
    width: 200px;
    height: 24px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
}

.macos-impress-skeleton-text {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.macos-impress-skeleton-text:nth-child(3) {
    width: 85%;
}

.macos-impress-skeleton-text:nth-child(4) {
    width: 92%;
}

.macos-impress-skeleton-text:nth-child(5) {
    width: 78%;
}

/* Privacy Modal Styles */
.macos-privacy-container {
    padding: 24px 24px 0 24px;
    color: #ffffff;
    max-height: 70vh;
    overflow-y: auto;
}

.macos-privacy-item {
    margin-bottom: 32px;
}

.macos-privacy-item:last-child {
    margin-bottom: 0;
}

.macos-privacy-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.macos-privacy-content {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.macos-privacy-content h1,
.macos-privacy-content h2,
.macos-privacy-content h3,
.macos-privacy-content h4,
.macos-privacy-content h5,
.macos-privacy-content h6 {
    color: #ffffff;
    margin: 20px 0 12px 0;
}

.macos-privacy-content p {
    margin: 0 0 16px 0;
}

.macos-privacy-content ul,
.macos-privacy-content ol {
    margin: 0 0 16px 0;
    padding-left: 20px;
}

.macos-privacy-content li {
    margin: 0 0 8px 0;
}

/* Privacy Skeleton Loading */
.macos-privacy-skeleton {
    padding: 24px 24px 0 24px;
}

.macos-privacy-skeleton-title {
    width: 200px;
    height: 24px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
}

.macos-privacy-skeleton-text {
    width: 100%;
    height: 16px;
    background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);
    background-size: 400% 100%;
    animation: macos-skel-shine 1.2s infinite;
    border-radius: 8px;
    margin-bottom: 12px;
}

.macos-privacy-skeleton-text:nth-child(3) {
    width: 85%;
}

.macos-privacy-skeleton-text:nth-child(4) {
    width: 92%;
}

.macos-privacy-skeleton-text:nth-child(5) {
    width: 78%;
}

/* Mobile responsive for new modals */
@media (max-width: 768px) {
    .macos-impress-container,
    .macos-privacy-container {
        padding: 20px 16px 0 16px;
        max-height: 60vh;
    }
    
    .macos-impress-title,
    .macos-privacy-title {
        font-size: 20px;
    }
    
    .macos-impress-content,
    .macos-privacy-content {
        font-size: 13px;
    }
}