
:root {
  /* Primary brand colors */
  --nps_brown: #6F4930;
  --dark_brown: #5c3a21;
  --darker_brown: #442a15;
  --accent: #1da1f2;
  
  /* Neutral colors */
  --neutral_base: #f8f5f2;
  --neutral_base_dark: #f0ede8;
  
  /* Common UI colors */
  --border-color: #ddd;
  --border-color-focus: var(--nps_brown);
  --text-color-primary: var(--darker_brown);
  --text-color-secondary: #666;
  --text-color-muted: #999;
  --background-white: #ffffff;
  --background-light: #f8f9fa;
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  
  /* Input styling */
  --input-padding: 12px 16px;
  --input-font-size: 16px;
  --input-border-radius: 8px;
  --input-focus-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

body {
    background-color: var(--neutral_base) !important;
}


* {
    box-sizing: border-box;
    font: inherit;
}



body {
    overflow-x: auto;
    overflow-y: auto;
}


h1, h2, p {
    color: var(--text-color-primary);
}

/* SVG Container - positions SVG and overlay together */
.svg-container {
    position: relative;
    display: inline-block;
    width: 600px;
    height: 600px;
    margin: auto;
    margin-bottom: 7px;
    
    /* Force square dimensions - don't let parent constrain width */
    min-width: 260px; /* Smallest size we support */
    flex-shrink: 0; /* Prevent flex containers from shrinking this */
    
    /* Allow toolbar to extend outside container */
    overflow: visible;
}

.largeSignCanvas {
    width: 100%;
    height: 100%;
    display: block;
    
    /* Apply container styling directly to SVG */
    box-shadow: 0 6px 18px var(--shadow-dark);
    border-radius: 5%;
    /* Removed background-color to allow transparent corners */
    
    /* Smooth responsive scaling */
    transition: all 0.3s ease;
}

/* Overlay container for pulsing elements - positioned over SVG */
.svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through to SVG */
}




/* Consolidated SVG container responsive styles */
@media (max-width:800px) {
    .svg-container {
        width: 480px;
        height: 480px;
    }
}

@media (max-width:700px) {
    .svg-container {
        width: 420px;
        height: 420px;
    }
}

@media (max-width:600px) {
    .svg-container {
        width: 360px;
        height: 360px;
    }
}

@media (max-width:380px) {
    .svg-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width:320px) {
    .svg-container {
        width: 280px;
        height: 280px;
    }
}

@media (max-width:300px) {
    .svg-container {
        width: 260px;
        height: 260px;
        /* Break out of parent constraints on very narrow screens */
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        max-width: 260px;
    }
}

/* Handle very narrow screens where parent container constrains width */
@media (max-width:320px) {
    .w3-container.w3-content {
        padding: 5px !important; /* Reduce padding on very narrow screens */
    }
}

select {
    border: 1px solid #ccc;
    border-radius: 10px;
    resize: vertical;
}

label {
    padding: 0px;
    display: inline-block;
}

/* Consolidated .parkTextInput styles with CSS custom properties */
.parkTextInput {
    width: 100%;
    padding: var(--input-padding);
    border: 2px solid var(--border-color);
    border-radius: var(--input-border-radius);
    resize: vertical;
    font-size: var(--input-font-size); /* Prevent zoom on iOS */
    font-family: 'Manjari', Arial, sans-serif !important; /* Restrict to Manjari font */
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.parkTextInput:focus {
    border-color: var(--border-color-focus);
    outline: none;
    box-shadow: var(--input-focus-shadow);
}

.character-count {
    text-align: right;
    font-size: 12px;
    color: var(--text-color-secondary);
    margin-top: 4px;
    font-family: Arial, sans-serif;
}

.character-count.warning {
    color: #ff6b35;
}

.character-count.error {
    color: var(--text-color-secondary);
}

.input-group-separated {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

/* Date picker styling - text will be hidden via JavaScript */

/* Ensure datepicker inputs are visible when their containers are shown */
#singleDateContent,
#dateRangeContent {
    display: none;
}

#singleDateContent.show,
#dateRangeContent.show {
    display: block !important;
}

#singleDatePicker,
#datePicker {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* More specific rules to override mobile styles - must be higher specificity than #headerModal .parkTextInput */
#headerModal #singleDatePicker.parkTextInput,
#headerModal #datePicker.parkTextInput {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

/* Hide Flatpickr-generated mobile inputs */
#headerModal .flatpickr-mobile,
#headerModal .flatpickr-input.flatpickr-mobile,
#headerModal input[type="date"].parkTextInput {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    min-height: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}


/* Fix Flatpickr calendar positioning to appear centered on modal */
.flatpickr-calendar {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 999999 !important;
}

/* Ensure the calendar appears above EVERYTHING when open */
.flatpickr-calendar.open {
    z-index: 999999 !important;
}

/* Additional safety - ensure all flatpickr elements are above everything */
.flatpickr-calendar,
.flatpickr-calendar *,
.flatpickr-calendar.open,
.flatpickr-calendar.open * {
    z-index: 999999 !important;
}

/* Ensure flatpickr calendar doesn't interfere with click events */
.flatpickr-calendar {
    pointer-events: auto !important;
}

/* Ensure flatpickr months container allows click events */
.flatpickr-months {
    pointer-events: auto !important;
}

/* Ensure navigation arrows are clickable and visible */
.flatpickr-prev-month,
.flatpickr-next-month {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1000001 !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    background: transparent !important;
    border: none !important;
    padding: 5px !important;
    margin: 0 !important;
}

/* Ensure the SVG inside the arrows is also clickable */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
}

/* Fix flatpickr header layout to properly position year input */
/* Compact Flatpickr Header Layout */
.flatpickr-months {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 12px !important;
    margin-bottom: 0 !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-bottom: 1px solid #dee2e6 !important;
}

.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 !important;
    justify-content: center !important;
}

/* Enhanced year input styling */
.numInputWrapper {
    display: inline-block !important;
    position: relative !important;
    margin-left: 8px !important;
    z-index: 10 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Compact Year Input Styling */
.cur-year {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 55px !important;
    height: 24px !important;
    background: white !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 2px 4px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-align: center !important;
    color: #333 !important;
    position: relative !important;
    z-index: 5 !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    transition: all 0.2s ease !important;
}

.cur-year:hover {
    border-color: #999 !important;
}

.cur-year:focus {
    outline: none !important;
    border-color: var(--nps_brown) !important;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2) !important;
}

/* Hide the arrow buttons to reduce clutter */
.numInputWrapper .arrowUp,
.numInputWrapper .arrowDown {
    display: none !important;
}

/* Compact Month Dropdown Styling - wider to show more month name */
.flatpickr-monthDropdown-months {
    display: inline-block !important;
    position: relative !important;
    z-index: 10 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #333 !important;
    padding: 2px 8px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    background: white !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    min-width: 80px !important;
    text-align: center !important;
}

.flatpickr-monthDropdown-months:hover {
    border-color: #999 !important;
    background-color: #f8f9fa !important;
}

.flatpickr-monthDropdown-months:focus {
    outline: none !important;
    border-color: var(--nps_brown) !important;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2) !important;
}

.cur-year::placeholder {
    color: #adb5bd !important;
    font-size: 12px !important;
}

/* Improve overall calendar styling */
.flatpickr-calendar {
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
    border: 1px solid #dee2e6 !important;
    overflow: hidden !important;
}

/* Style the calendar body */
.flatpickr-innerContainer {
    padding: 8px !important;
}

/* Ensure weekday header doesn't overlap with month/year header */
.flatpickr-weekdays {
    margin-top: 10px !important;
    clear: both !important;
}

.flatpickr-weekdaycontainer {
    display: flex !important;
    justify-content: space-around !important;
    padding: 5px 0 !important;
}

/* Compact navigation arrows styling */
.flatpickr-prev-month,
.flatpickr-next-month {
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    border: 1px solid #ddd !important;
    background: white !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    background-color: #f8f9fa !important;
    border-color: var(--nps_brown) !important;
}

/* Style the arrow icons inside */
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
    width: 12px !important;
    height: 12px !important;
    fill: #495057 !important;
    transition: fill 0.2s ease !important;
}

.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg {
    fill: var(--nps_brown) !important;
}

/* Mobile-specific date picker fixes */
@media (max-width: 768px) {
    .flatpickr-calendar {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 999999 !important;
        width: 90vw !important;
        max-width: 350px !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .flatpickr-calendar.open {
        z-index: 999999 !important;
    }
    
    /* Ensure date picker is never hidden on mobile */
    .flatpickr-calendar,
    .flatpickr-calendar * {
        z-index: 999999 !important;
        pointer-events: auto !important;
    }
    
    /* Ensure navigation arrows work on mobile */
    .flatpickr-prev-month,
    .flatpickr-next-month {
        pointer-events: auto !important;
        cursor: pointer !important;
        touch-action: manipulation !important;
        min-width: 32px !important;
        min-height: 32px !important;
    }
}

/* Disable save button when calendar is open */
.flatpickr-calendar.open ~ * #save_header_modal,
.flatpickr-calendar.open ~ #save_header_modal,
body:has(.flatpickr-calendar.open) #save_header_modal {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Alternative approach - when calendar is open, style the save button */
.flatpickr-calendar.open ~ .header-modal-content #save_header_modal,
.header-modal-content:has(.flatpickr-calendar.open) #save_header_modal {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
}

/* JavaScript-controlled disabled state for save button when calendar is open */
#save_header_modal.calendar-open {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease !important;
}


/* Note: HTML5 date picker positioning is controlled by the browser and cannot be easily repositioned */

input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

    input[type=submit]:hover {
        background-color: #45a049;
    }

.container {
    border-radius: 5px;
    background-color: #f2f2f2;
    padding: 20px;
}

/* Favorites Section - Clean Start */
#ideas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 0 auto;
    max-width: 800px;
    padding: 20px;
    justify-items: center;
}

.favorite-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 500px;
    width: 350px;
}

.favorite-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.favorite-card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.favorite-card-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.favorite-card-info {
    padding: 12px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.favorite-card-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 2px;
    color: #333;
    font-family: "Segoe UI", Arial, sans-serif;
}

.favorite-card-description {
    color: #666;
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
}

.favorite-card-button {
    /* Inherits standard button styling from cart.css */
    /* Just add specific styles for this context */
    width: 100%;
    margin-top: auto;
}

.show-more-button {
    /* Inherits standard button styling from cart.css */
    grid-column: 1 / -1; /* Span all grid columns */
    justify-self: center;
    margin: 30px auto;
    max-width: 250px;
}

.loading-templates {
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #666;
    grid-column: 1 / -1;
}

/* Responsive */
@media (max-width: 780px) {
    #ideas {
        grid-template-columns: 1fr;
        max-width: 400px;
        gap: 20px;
        padding: 15px;
    }
    
    .favorite-card {
        width: 320px;
        height: 420px;
        margin: 0 auto;
    }
    
    .favorite-card-image {
        height: 280px;
    }
    
    .favorite-card-info {
        padding: 10px 15px;
    }
    
    .favorite-card-title {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .favorite-card-description {
        font-size: 0.95rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    #ideas {
        max-width: 350px;
        gap: 15px;
        padding: 10px;
    }
    
    .favorite-card {
        width: 280px;
        height: 380px;
    }
    
    .favorite-card-image {
        height: 240px;
    }
    
    .favorite-card-info {
        padding: 8px 12px;
    }
    
    .favorite-card-title {
        font-size: 1.1rem;
    }
    
    .favorite-card-description {
        font-size: 0.9rem;
    }
}

.shopitem {
    float: left;
    width: 23%;
    background-color: var(--background-white);
    margin: 1%;
    border: 1px solid #e1e3e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    height: 300px;
    box-shadow: 0 1px 3px var(--shadow-light);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.shopitem:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-medium);
    border-color: #007185;
}

@media (max-width: 600px) {
    .shopitem {
        width: 48%;
        /* 2 items per row for smaller screens */
        margin: 1%;
    }
}

@media (max-width: 300px) {
    .shopitem {
        width: 96%;
        /* 2 items per row for smaller screens */
        margin: 2%;
    }
    
    .shopitem_add_btn {
        font-size: 10px !important;
        padding: 4px 6px !important;
        height: 26px !important;
    }
}

.shopimage {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    flex-shrink: 0;
    background-color: #f7f7f7;
}

.shopitem_content {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.shopitem_price {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 8px;
    text-align: left;
    flex-shrink: 0;
    position: relative;
}

.shopitem_button {
    margin-top: auto;
    padding: 0 12px 12px 12px;
    flex-shrink: 0;
}

.shopitem_add_btn {
    width: 100% !important;
    padding: 5px 8px !important;
    font-size: 11px !important;
    min-width: auto !important;
    background-color: #ffd814 !important;
    color: #0f1111 !important;
    border: 1px solid #fcd200 !important;
    border-radius: 6px !important;
    font-weight: 400 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    height: 28px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.shopitem_add_btn:hover {
    background-color: #f7ca00 !important;
    border-color: #f2c200 !important;
    transform: none !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.shopitemprice_large {
    font-size: 22px;
    font-weight: 400;
    color: #0f1111;
    margin-right: 2px;
    line-height: 1;
}

.shopitemprice_small {
    font-size: 14px;
    color: #0f1111;
    line-height: 1;
    margin-top: 2px;
    padding-top: 0;
}

/* .buybutton styling now handled by unified button system in cart.css */

.shopitem_title {
    font-size: 14px;
    font-weight: 400;
    color: #0f1111;
    margin-bottom: 4px;
    text-align: left;
    line-height: 1.4;
    display: block;
    flex-shrink: 0;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.shopitemtext {
    font-size: 12px;
    color: #565959;
    margin-bottom: 8px;
    text-align: left;
    line-height: 1.4;
    display: block;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}
/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

.twitter-typeahead {
    /* Add your custom styles here */
    /* For example: */
    width: 100%;
    /* Set width as needed */
    text-align: left
}

.tt-query {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999
}

.tt-menu {
    width: 422px;
    margin: 12px 0;
    padding: 8px 0;
    background-color: #fff;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    border-radius: 8px;
    -webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    -moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
    box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.tt-suggestion {
    padding: 3px 20px;
    font-size: 18px;
    line-height: 24px;
}

    .tt-suggestion:hover {
        cursor: pointer;
        color: #fff;
        background-color: #0097cf;
    }

    .tt-suggestion.tt-cursor {
        color: #fff;
        background-color: #0097cf;
    }

    .tt-suggestion p {
        margin: 0;
    }

/* .addbutton styling now handled by unified button system in cart.css */


.button-50 {
    width: 50%;
    }
.button-75 {
    width: 75%;
    }

/* .addbutton:hover styling now handled by unified button system in cart.css */

/* Clean Icon Text Modal Styles */
.icon-preview-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px auto;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    background: var(--nps_brown);
    border: 2px solid #e9ecef;
}

.icon-preview-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--nps_brown);
}

.icon-preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

.icon-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    text-align: center;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.7);
    border-radius: 0 0 10px 10px;
}

.text-input-container {
    margin-top: 10px;
    margin-bottom: 15px;
}

.text-input-label {
    display: block;
    font-weight: 600;
    color: var(--darker_brown);
    margin-bottom: 4px;
    font-size: 16px;
}

.text-input-field {
    width: 200px;
    height: 45px;
    padding: 0 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Manjari', Arial, sans-serif !important; /* Restrict to Manjari font */
    text-align: center;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
}

.text-input-field:focus {
    border-color: var(--nps_brown);
    box-shadow: 0 0 0 3px rgba(108, 160, 220, 0.1);
}

.text-input-field::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.modal-action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
}

/* When delete button is hidden, center the save button */
#iconTextModal .modal-action-buttons.save-button-full-width {
    justify-content: center !important;
    align-items: center !important;
}

#iconTextModal .modal-action-buttons.save-button-full-width #update_icon_button {
    width: auto !important;
    min-width: 120px !important;
    flex: 0 0 auto !important;
    margin: 0 auto !important;
}

/* .modal-btn styling now handled by unified button system in cart.css */

/* Ensure delete button is visible by default in icon text modal */
#iconTextModal #delete_icon_button_preconfirm {
    display: inline-block;
}

.modal-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width:380px) {
    .addbutton {
        height: 32px;
        font-size: 13px;
        line-height: 2.9;
    }
    
    .icon-preview-container {
        width: 150px;
        height: 150px;
        margin-bottom: 8px;
    }
    
    .text-input-field {
        width: 180px;
        height: 40px;
        font-size: 14px;
    }
    
    .modal-action-buttons {
        flex-direction: row;
        gap: 8px;
        margin-top: 15px;
        justify-content: center;
    }
    
    .modal-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: auto;
        flex: 1;
        max-width: 120px;
    }
}
/* styles.css */
header {
    background-color: var(--nps_brown);
    color: #fff;
    text-align: center;
    padding: 10px !important;
    padding-bottom: 4px !important ;
    height:55px;
    font-family: Manjari;
    position: relative;
    z-index: 1;
    /* Ensure header is below other elements */
}

/* Prevent header bounce by reserving space for dynamically loaded content */
#header {
    min-height: 60px; /* Reserve space for header content */
}

.menu-toggle {
    display: block;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    /* Higher z-index than header */
}

.menu {
    display: none;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--dark_brown);
    border-radius: 10px;
    padding-left: 30px;
    padding-right: 30px;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.75);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.4s;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.menu li {
    margin: 10px 0;
}

.menu a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    transition: color 0.3s;
}

    .menu a:hover {
        color: #fff;
        opacity: 0.8;
    }

.menu.active {
    display: flex;
}

.draggable-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    padding: 0;
}

.draggable {
    flex-basis: auto;
    /* Adjusts width to fit on the same row */
    margin-right: 2%;
    /* Increased margin for breathing room and spacing between items */
    margin-bottom: 10px;
    /* Increased margin for breathing room */
    align-items: center;
    box-sizing: border-box;
    /* Ensures padding and border are included in the total width */
    list-style-type: none;
    width: 23%;
    padding: 1%;
    /* Increased padding for breathing room */
    position: relative;
}

@media (max-width:600px) {
    .draggable {
        width: 30%;
        margin-right: 3%
    }
}

.drag-handle {
    cursor: grab;
    margin-right: 10px;
    font-size: 30px;
    vertical-align: middle;
}

.iconImageContainer {
    background-color: var(--nps_brown);
    border-radius: 5px;
    width: 100%;
    margin-right: 2%;
    display: flex;
    /* Added display: flex */
    justify-content: center;
    align-items: center;
    border-radius: 10%;
}

.iconImage {
    width: 100%;
    height: 100%;
    padding: 15%;
}

.inputIconText {
    width: 100%;
    height: 5px;
    padding: 10%;
    margin-top: 5%;
    text-align: center;
    border-radius: 5px;
    border: 1px solid black;
    font-size: 25px
}

::placeholder {
    color: gray;
    font-style: italic;
}

#loading-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    background-color: rgba(255, 255, 255, 1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    /* Optional: add a subtle box shadow */
    text-align: center;
    font-family: Manjari;
    font-size: 26px;
}
    
    #loading-container img {
        display: block;
        margin: 0 auto;
        /* Center the image horizontally */
    }

.tab-container {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-direction: column;
}

.tab {
    display: block;
    padding: 12px 16px;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 0;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.active-tab, .active-tab-icon {
    background-color: var(--nps_brown);
    color: white;
    border-color: var(--nps_brown);
}

.allIcons {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
    justify-content: center;
    box-sizing: border-box;
    align-items: flex-start;
    align-content: flex-start;
}

@media (max-height:600px) {
    .allIcons {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    #iconTextModalContent {
        width: 95%;
        max-width: 350px;
        min-height: 250px;
        padding: 12px;
    }
    
    #iconSelectionModalContent {
        width: 98%;
        max-width: 800px;
        padding: 15px;
    }
    
    .selection-modal-content {
        width: 98%;
        max-width: 800px;
        padding: 15px;
    }
    
    /* Header Modal Mobile Styles */
    .header-modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 15px;
        /* Remove margin to ensure perfect centering */
    }
    
    .tab-container {
        flex-direction: column;
        gap: 8px;
        justify-content: center;
    }
    
    /* Override for header modal - keep buttons side-by-side */
    #headerModal .tab-container {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .tab {
        width: 100%;
        padding: 14px 16px;
        font-size: 16px;
    }
    
    /* Header modal tabs - keep them side-by-side */
    #headerModal .tab {
        width: auto;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .parkTextInput {
        --input-padding: 14px 16px;
        --input-font-size: 16px;
    }
    
    .modal {
        padding: 10px;
    }
}

/* Desktop styles for header modal */
@media (min-width: 769px) {
    .tab-container {
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .tab {
        width: auto;
        min-width: 120px;
    }
}

/* Header Modal Input Groups */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    text-align: left;
}

.save-button-container {
    margin-top: 20px;
    text-align: center;
}

/* Header modal save button styling */
#headerModal .save-button-container {
    margin-top: 20px;
    padding-top: 0;
}

#headerModal .addbutton {
    width: 100%;
    max-width: 200px;
    margin: 0;
}
    
    .allIcons {
        gap: 12px;
        padding: 12px;
    }

@media (max-width: 480px) {
    #iconTextModalContent {
        width: 95%;
        max-width: none;
        min-height: 220px;
        border-radius: 15px;
        padding: 12px;
        top: 20%;
        transform: translate(-50%, -20%);
        max-height: 50vh;
        overflow-y: auto;
    }
    
    #iconSelectionModalContent {
        width: 100%;
        height: 95%;
        max-width: none;
        border-radius: 0;
    }
    
    .selection-modal-content {
        width: 100%;
        height: 95%;
        max-width: none;
        border-radius: 0;
    }
    
    .allIcons {
        gap: 10px;
        padding: 10px;
    }
}

.icon-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.iconContainer_all {
    width: 90px;
    height: 90px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    flex-shrink: 0;
}

.iconContainer_all:hover {
    transform: translateY(-2px);
}

.iconImageContainer_all {
    background-color: var(--nps_brown);
    border-radius: 20%;
    margin: 0 auto 8px auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.iconImage_all {
    width: 80%;
    height: 80%;
    object-fit: contain;
    margin: auto;
}

.iconText_all {
    margin-top: 3%;
    margin-bottom: 0%;
    font-family: Manjari;
    font-size: 100%;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width:600px) {
    .iconText_all {
        font-size: 75%;
    }
}

#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, .4);
    z-index: 2;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 100;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 15px;
    border-radius: 20px;
    width: 90%;
    height: 90%;
    max-width: 800px;
    max-height: 600px;
    overflow: auto;
    position: relative;
    /* Set position relative for absolute positioning of close button */
}

/* Responsive modal positioning for narrow screens */
@media (max-width: 768px) {
    .modal-content {
        width: calc(100vw - 32px) !important;
        max-width: none !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-50%) !important;
        margin: 0 !important;
    }
}

.header-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 100;
    /* Ensure the modal container is properly positioned */
    margin: 0;
    padding: 0;
}

.header-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 95%;
    max-width: 500px;
    min-width: 320px;
    max-height: 90vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 101;
    /* Set position relative for absolute positioning of close button */
}

/* Header modal tab container - make buttons side-by-side */
.header-modal .tab-container {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Header modal tabs - ensure they look good side-by-side */
.header-modal .tab {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 14px;
}

/* Responsive adjustments for header modal tabs */
@media (max-width: 800px) {
    #headerModal .tab-container {
        flex-direction: row !important;
        gap: 8px !important;
    }
    
    #headerModal .tab {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* Additional mobile adjustments */
@media (max-width: 480px) {
    #headerModal .tab-container {
        flex-direction: row !important;
        gap: 6px !important;
    }
    
    #headerModal .tab {
        padding: 8px 10px;
        font-size: 12px;
    }
}

/* Icon Text Modal - Simple layout */
#iconTextModal {
    z-index: 100;
}

#iconTextModalContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 15px;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    height: auto;
    z-index: 101;
    min-height: 280px;
    overflow: visible;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    box-sizing: border-box;
}

/* Mobile-specific positioning for icon text modal */
@media (max-width: 768px) {
    #iconTextModalContent {
        top: 15%;
        transform: translate(-50%, -15%);
        max-height: 60vh;
        overflow-y: auto;
    }
}

/* Very small screens - position higher to keep icons visible */
@media (max-width: 480px) {
    #iconTextModalContent {
        top: 10%;
        transform: translate(-50%, -10%);
        max-height: 50vh;
        min-height: 250px;
    }
}

/* Prevent viewport jumping on mobile when keyboard appears */
@media (max-width: 768px) {
    body.modal-open {
        position: fixed;
        width: 100%;
        overflow: hidden;
    }
    
    /* Ensure modal stays in place when keyboard appears */
    #iconTextModalContent {
        position: fixed !important;
        will-change: transform;
    }
    
    /* Adjust header modal positioning for mobile to reduce keyboard bounce */
    .header-modal-content {
        top: 20px !important;
        transform: translate(-50%, 0) !important;
        max-height: calc(100vh - 40px) !important;
        gap: 8px !important;
        padding: 12px !important;
        z-index: 2000 !important;
    }
    
    /* Ensure header modal overlay is also above page header but below date picker */
    #headerModal {
        z-index: 1999 !important;
    }
    
    #headerModal #overlay {
        z-index: 1999 !important;
    }
    
    /* Reduce spacing above subtitle on mobile */
    #headerModal .input-group:last-of-type {
        margin-top: 0 !important;
    }
    
    /* Reduce input group spacing on mobile */
    #headerModal .input-group {
        margin-bottom: 8px !important;
    }
    
    /* Make text inputs shorter on mobile */
    #headerModal .parkTextInput {
        --input-padding: 8px 12px !important;
        --input-font-size: 14px !important;
        min-height: 36px !important;
    }
    
    /* Reduce tab container spacing on mobile */
    #headerModal .tab-container {
        margin-bottom: 6px !important;
    }
    
    /* Reduce label spacing on mobile */
    #headerModal label {
        margin-bottom: 4px !important;
        font-size: 14px !important;
    }
    
    /* Move save button up on mobile */
    #headerModal .save-button-container {
        margin-top: 8px !important;
    }
    
    /* Ensure save button is always visible */
    #headerModal .save-button-container {
        flex-shrink: 0 !important;
    }
}

/* Hide drag instruction tooltip when modals are open */
body.modal-open #drag-instruction,
.modal:not([style*="display: none"]) ~ #drag-instruction {
    display: none !important;
}

/* Icon Selection Modal - Full browser */
#iconSelectionModalContent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    width: 95%;
    height: 90%;
    max-width: 1000px;
    max-height: 700px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* Legacy class for backward compatibility */
.selection-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    width: 95%;
    height: 90%;
    max-width: 1000px;
    max-height: 700px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* Modal header and search area - keep at top */
.selection-modal-content h1 {
    margin: 0 0 20px 0;
    flex-shrink: 0;
}

.selection-modal-content .search-container {
    flex-shrink: 0;
    margin-bottom: 20px;
}

/* Icons area - allow scrolling */
.selection-modal-content .allIcons {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

/* Close button always on top-right */
.selection-modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
}

/* Tabs stay at top - removed duplicate rule */

/* Each content tab fills remaining space - Legacy for old modal */
.tab-content-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* distribute children evenly */
    flex: 1; /* take remaining vertical space */
    width: 100%;
}

/* Bottom Action Bar */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0;
    margin-top: 10px;
    position: relative;
}

/* Canvas-integrated add icon button */
.add-button {
    position: relative;
    border-radius: 5% !important; /* Match canvas border-radius */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important; /* Similar to canvas shadow but lighter */
    background: linear-gradient(135deg, #6F4930 0%, #5a3a26 100%) !important; /* Canvas-like gradient */
    border: 2px solid rgba(255, 255, 255, 0.1) !important; /* Subtle white border */
    transition: all 0.3s ease !important;
    font-weight: 600 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.add-button:hover {
    transform: translateY(-3px) !important; /* More pronounced lift */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4) !important; /* Match canvas shadow on hover */
    background: linear-gradient(135deg, #7a5438 0%, #6b4429 100%) !important; /* Lighter gradient on hover */
}

/* Floating Plus Button - bottom right corner */
.floating-plus-button {
    position: absolute;
    bottom: -30px;
    right: 0px;
    height: 52px;
    padding: 0 20px 0 14px;
    border: none;
    border-radius: 26px;
    background: linear-gradient(135deg, #1da1f2 0%, #1a8cd8 100%);
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(29, 161, 242, 0.3);
    border: 3px solid rgba(29, 161, 242, 0.2);
    z-index: 20;
    min-width: 130px;
    line-height: 1;
    
    /* Scale with canvas container */
    transform-origin: right center;
}

.floating-plus-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
    background: linear-gradient(135deg, #1a8cd8 0%, #1da1f2 100%);
    border-color: rgba(29, 161, 242, 0.4);
}

.floating-plus-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

.plus-icon {
    font-size: 24px;
    font-weight: 300;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    transform: translateY(-4px); /* Move plus icon higher */
}

.button-text {
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Manjari', Arial, sans-serif;
    white-space: nowrap;
    transform: translateY(1px); /* Move text down to align with plus icon */
}

.floating-plus-button:hover .plus-icon {
    transform: rotate(90deg) translateY(-4px); /* Maintain vertical positioning during rotation */
    color: white;
}

.floating-plus-button:hover .button-text {
    color: white;
}

/* Hide button when max icons reached */
.floating-plus-button.max-icons-reached {
    display: none;
}

/* Show button when SVG is loaded */
.floating-plus-button.svg-loaded {
    opacity: 1;
    visibility: visible;
}

/* Initial breathing animation on first load OR when at encouragement counts */
.floating-plus-button.svg-loaded:not(.clicked),
.floating-plus-button.encourage-icons {
    animation: breathing 3s ease-in-out infinite;
}

/* Breathing animation for the add button */
@keyframes breathing {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
    }
}

/* Use the same subtle breathing animation for encouragement */
.floating-plus-button.encourage-icons {
    animation: breathing 3s ease-in-out infinite;
}

/* Scale button with canvas at different screen sizes - keep button readable */
@media (max-width: 700px) {
    .floating-plus-button {
        transform: scale(0.95);
        transform-origin: right center;
        bottom: -33px; /* Move down slightly from -30px */
    }
}

@media (max-width: 600px) {
    .floating-plus-button {
        transform: scale(0.9);
        transform-origin: right center;
        bottom: -36px; /* Move down a bit more on smaller screens */
    }
}

@media (max-width: 480px) {
    .floating-plus-button {
        transform: scale(0.85);
        transform-origin: right center;
        bottom: -40px; /* Move down slightly on mobile */
    }
}

@media (max-width: 380px) {
    .floating-plus-button {
        transform: scale(0.8);
        transform-origin: right center;
        bottom: -45px; /* Move down a bit more on small mobile */
    }
}

@media (max-width: 320px) {
    .floating-plus-button {
        transform: scale(0.75);
        transform-origin: right center;
        bottom: -50px; /* Max out at -50px for very small screens */
    }
}

/* .action-button styling now handled by unified button system in cart.css */

/* .share-button, .add-button, .shop-button styling now handled by unified button system in cart.css */


/* Mobile responsive */
@media (max-width: 768px) {
    .action-bar {
        gap: 10px;
        padding: 15px 20px;
        margin-top: 20px; /* Add space above action bar on mobile */
    }
    
    .action-button {
        padding: 14px 20px;
        font-size: 16px;
    }
}

/* Progressive spacing for smaller screens */
@media (max-width: 600px) {
    .action-bar {
        margin-top: 25px; /* Increase spacing on smaller screens */
    }
}

@media (max-width: 480px) {
    .action-bar {
        margin-top: 30px; /* More spacing on mobile */
    }
}

@media (max-width: 380px) {
    .action-bar {
        margin-top: 35px; /* Even more spacing on small mobile */
    }
}

@media (max-width: 320px) {
    .action-bar {
        margin-top: 40px; /* Maximum spacing for very small screens */
    }
}

/* Stack buttons only when container is very narrow */
@media (max-width: 299px) {
    .action-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        margin-top: 40px; /* Keep consistent spacing */
    }
    
    .action-button {
        width: 100%;
        min-width: auto;
        padding: 14px 20px;
        font-size: 16px;
    }
    
    /* Reorder buttons on very narrow screens: Add button first, Shop button second, Share button third */
    .action-bar {
        display: flex;
        flex-direction: column;
    }
    
    .add-button {
        order: 1;
    }
    
    .shop-button {
        order: 2;
    }
    
    .share-button {
        order: 3;
    }
}

/* Share Modal - Clean Modern Design */
.share-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.share-modal-header {
    padding: 32px 32px 24px 32px;
    border-bottom: 1px solid #f1f3f4;
    background: #ffffff;
    position: relative;
}

.share-modal-header h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.01em;
}

.share-modal-body {
    padding: 8px 32px 32px 32px;
}

.share-preview-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.share-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Share button base styling - Clean Modern */
.share-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    border: 1px solid #e1e5e9 !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    width: 100%;
    max-width: 280px;
    justify-content: flex-start;
    text-decoration: none;
    background: #ffffff !important;
    background-image: none !important;
    color: #374151 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    border-color: currentColor !important;
}

.share-btn:hover::before {
    opacity: 1;
}

.share-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    opacity: 0.8;
}

/* Platform-specific colors - Subtle and Sophisticated */
#shareModal .share-btn.share-btn-facebook,
.share-modal-content .share-btn.share-btn-facebook,
.share-buttons-container .share-btn.share-btn-facebook,
.share-buttons-preview .share-btn.share-btn-facebook {
    background: #ffffff !important;
    background-image: none !important;
    color: #1877f2 !important;
    border: 1px solid #e1e5e9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#shareModal .share-btn.share-btn-facebook:hover,
.share-modal-content .share-btn.share-btn-facebook:hover,
.share-buttons-container .share-btn.share-btn-facebook:hover,
.share-buttons-preview .share-btn.share-btn-facebook:hover {
    background: rgba(24, 119, 242, 0.04) !important;
    background-image: none !important;
    border-color: rgba(24, 119, 242, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#shareModal .share-btn.share-btn-twitter,
.share-modal-content .share-btn.share-btn-twitter,
.share-buttons-container .share-btn.share-btn-twitter,
.share-buttons-preview .share-btn.share-btn-twitter {
    background: #ffffff !important;
    background-image: none !important;
    color: #1da1f2 !important;
    border: 1px solid #e1e5e9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#shareModal .share-btn.share-btn-twitter:hover,
.share-modal-content .share-btn.share-btn-twitter:hover,
.share-buttons-container .share-btn.share-btn-twitter:hover,
.share-buttons-preview .share-btn.share-btn-twitter:hover {
    background: rgba(29, 161, 242, 0.04) !important;
    background-image: none !important;
    border-color: rgba(29, 161, 242, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}


#shareModal .share-btn.share-btn-pinterest,
.share-modal-content .share-btn.share-btn-pinterest,
.share-buttons-container .share-btn.share-btn-pinterest,
.share-buttons-preview .share-btn.share-btn-pinterest {
    background: #ffffff !important;
    background-image: none !important;
    color: #e60023 !important;
    border: 1px solid #e1e5e9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#shareModal .share-btn.share-btn-pinterest:hover,
.share-modal-content .share-btn.share-btn-pinterest:hover,
.share-buttons-container .share-btn.share-btn-pinterest:hover,
.share-buttons-preview .share-btn.share-btn-pinterest:hover {
    background: rgba(230, 0, 35, 0.04) !important;
    background-image: none !important;
    border-color: rgba(230, 0, 35, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#shareModal .share-btn.share-btn-whatsapp,
.share-modal-content .share-btn.share-btn-whatsapp,
.share-buttons-container .share-btn.share-btn-whatsapp,
.share-buttons-preview .share-btn.share-btn-whatsapp {
    background: #ffffff !important;
    background-image: none !important;
    color: #128c7e !important;
    border: 1px solid #e1e5e9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#shareModal .share-btn.share-btn-whatsapp:hover,
.share-modal-content .share-btn.share-btn-whatsapp:hover,
.share-buttons-container .share-btn.share-btn-whatsapp:hover,
.share-buttons-preview .share-btn.share-btn-whatsapp:hover {
    background: rgba(18, 140, 126, 0.04) !important;
    background-image: none !important;
    border-color: rgba(18, 140, 126, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#shareModal .share-btn.share-btn-reddit,
.share-modal-content .share-btn.share-btn-reddit,
.share-buttons-container .share-btn.share-btn-reddit,
.share-buttons-preview .share-btn.share-btn-reddit {
    background: #ffffff !important;
    background-image: none !important;
    color: #ff6b35 !important;
    border: 1px solid #e1e5e9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#shareModal .share-btn.share-btn-reddit:hover,
.share-modal-content .share-btn.share-btn-reddit:hover,
.share-buttons-container .share-btn.share-btn-reddit:hover,
.share-buttons-preview .share-btn.share-btn-reddit:hover {
    background: rgba(255, 107, 53, 0.04) !important;
    background-image: none !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

#shareModal .share-btn.share-btn-copy,
.share-modal-content .share-btn.share-btn-copy,
.share-buttons-container .share-btn.share-btn-copy,
.share-buttons-preview .share-btn.share-btn-copy {
    background: #ffffff !important;
    background-image: none !important;
    color: #6b7280 !important;
    border: 1px solid #e1e5e9 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

#shareModal .share-btn.share-btn-copy:hover,
.share-modal-content .share-btn.share-btn-copy:hover,
.share-buttons-container .share-btn.share-btn-copy:hover,
.share-buttons-preview .share-btn.share-btn-copy:hover {
    background: rgba(107, 114, 128, 0.04) !important;
    background-image: none !important;
    border-color: rgba(107, 114, 128, 0.3) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.share-modal-header .close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 24px;
    font-weight: 300;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.share-modal-header .close:hover {
    color: #6b7280;
    background: rgba(107, 114, 128, 0.08);
}

/* Mobile responsive for share modal */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        max-width: none;
        margin: 10px;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        border-radius: 12px;
    }
    
    .share-modal-header {
        padding: 24px 24px 20px 24px;
    }
    
    .share-modal-header h2 {
        font-size: 20px;
    }
    
    .share-modal-body {
        padding: 8px 24px 24px 24px;
    }
    
    .share-buttons-container {
        gap: 10px;
    }
    
    .share-btn {
        width: 100%;
        max-width: none;
        font-size: 14px !important;
        padding: 14px 18px !important;
        gap: 10px;
    }
    
    .share-icon {
        width: 18px;
        height: 18px;
    }
    
    .share-modal-header .close {
        top: 20px;
        right: 20px;
        font-size: 20px;
        width: 28px;
        height: 28px;
    }
    
    .share-preview-container {
        margin-bottom: 20px;
    }
}

/* Extra small screens - single column */
@media (max-width: 480px) {
    .share-buttons-container {
        gap: 8px;
    }
    
    .share-btn {
        font-size: 12px !important;
        padding: 8px 10px !important;
    }
    
    .share-icon {
        width: 14px;
        height: 14px;
    }
    
    #shareCanvasContainer {
        transform: scale(0.8);
    }
}


.iconDirectionsModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 100;
}

.iconDirections-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 20px;
    max-width: 400px;
    max-height: 600px;
    overflow: auto;
    position: relative;
    /* Set position relative for absolute positioning of close button */
}

.close {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 40px;
    cursor: pointer;
}

.search-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 16px;
    background: #fff;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-input:focus {
    border-color: var(--nps_brown);
    box-shadow: 0 0 0 3px rgba(108, 160, 220, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
}

.search-input::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    pointer-events: none;
    z-index: 1;
}

.numbered-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    min-width: 36px;
    height: 36px;
    border-radius: 18px;
    background-color: #6F4930;
    color: white;
    border: 2px solid #6F4930;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-right: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.numbered-circle:hover {
    background-color: #5a3a26;
    border-color: #5a3a26;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shepherd-theme-custom .shepherd-arrow::before {
    background-color: var(--neutral_base);
    border: 1px solid rgba(111, 73, 48, 0.1);
}

.shepherd-theme-custom .shepherd-content {
    border: 1px solid rgba(111, 73, 48, 0.15);
    border-radius: 12px;
    background-color: var(--neutral_base);
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(111, 73, 48, 0.08);
    backdrop-filter: blur(10px);
    opacity: 0.98;
    transition: all 0.3s ease;
}

.shepherd-theme-custom .shepherd-content:hover {
    box-shadow: 0 6px 25px rgba(111, 73, 48, 0.12);
    opacity: 1;
}

.shepherd-theme-custom .shepherd-button {
    background-color: var(--nps_brown);
    border: 1px solid var(--nps_brown);
    border-radius: 8px;
    color: white;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(111, 73, 48, 0.2);
}

.shepherd-theme-custom .shepherd-button:hover {
    background-color: var(--dark_brown);
    border-color: var(--dark_brown);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 73, 48, 0.25);
}

.shepherd-theme-custom .shepherd-text {
    font-size: 16px;
    color: var(--darker_brown);
    line-height: 1.5;
    font-weight: 400;
}

.shepherd-theme-custom .shepherd-header {
    display: none;
}

.shepherd-theme-custom .shepherd-cancel-item {
    color: var(--darker_brown);
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.shepherd-theme-custom .shepherd-cancel-item:hover {
    opacity: 1;
}

/* Additional integration styling for better page feel */
.shepherd-theme-custom .shepherd-content {
    padding: 20px;
    margin: 8px;
    max-width: 400px;
}

.shepherd-theme-custom .shepherd-text {
    margin: 0 0 16px 0;
    padding: 0;
}

.shepherd-theme-custom .shepherd-footer {
    padding: 0;
    margin-top: 16px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.shepherd-theme-custom .shepherd-button {
    padding: 8px 16px;
    margin: 0;
    font-size: 14px;
}

/* Welcome step special styling */
.shepherd-theme-custom.shepherd-welcome .shepherd-content {
    background: linear-gradient(135deg, var(--neutral_base) 0%, var(--neutral_base_dark) 100%);
    border: 1px solid rgba(111, 73, 48, 0.2);
    box-shadow: 0 6px 25px rgba(111, 73, 48, 0.1);
}

.shepherd-theme-custom.shepherd-welcome .shepherd-text {
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
}

/* Hide Shepherd step numbers completely */
.shepherd-theme-custom .shepherd-number,
.shepherd-theme-custom .shepherd-step-number,
.shepherd-theme-custom [class*="number"],
.shepherd-theme-custom [class*="step"] {
    display: none !important;
}


#new_icon_img_container {
    cursor: pointer;
}

.iconContainer_all {
    cursor: pointer;
}





#checkoutModal {
    display: none; /* Hide the modal by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 95%;
    height: 95%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background overlay */
    overflow: auto; /* Enable overall scrolling */
}

.checkout-modal-content {
    background-color: #fefefe;
    max-height: 100%; /* Set a maximum height for the modal content */
    overflow-y: auto; /* Enable vertical scrolling within the modal content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/*pulsating buttons*/


.pulsating_button_bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pulsating_button_container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.pulsating_button_bg {
    animation: pulse 1.5s ease infinite;
    border-radius: 3%;
    background: white;
    pointer-events: none;
}

@keyframes pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    50% {
        opacity: 0.2;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}






.blinking-cursor {
    animation-name: blinking-cursor;
    animation-iteration-count: infinite;
    animation-timing-function: cubic-bezier(1,0,0,1);
    animation-duration: 1.5s;
    background-color: white;
    width: .5%;
    height: 6%;
    color: white;
    position: absolute;
    right: 18.3%; /* Default position - will be overridden by JavaScript */
    top: 6.8%;
    pointer-events: none;
    display: block; /* Show by default - JavaScript will control visibility */
}

@keyframes blinking-cursor {
    from {
        opacity: 1.0;
    }

    to {
        opacity: 0.0;
    }
}

#new_icon_img_container {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

#new_icon_img_container:hover {
    transform: scale(1.03);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.35), 0 6px 14px rgba(0,0,0,0.35);
}

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

.icon-label {
    position: static;
    width: 90px;
    text-align: center;
    color: var(--darker_brown);
    font-weight: 600;
    font-size: 12px;
    padding: 0;
    margin: 0;
    line-height: 1.2;
    word-wrap: break-word;
}

/* Pulse animation */
@keyframes modalpulse {
    0% { transform: scale(1); box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.25); }
    50% { transform: scale(1.03); box-shadow: inset 0 0 12px rgba(0,0,0,0.35), 0 6px 14px rgba(0,0,0,0.35); }
    100% { transform: scale(1); box-shadow: inset 0 0 10px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.25); }
}

.modalpulse  {
    animation: modalpulse 1.5s ease-in-out 0s 4;
}

/* NPS Icons Grid Styling */
.nps-icon {
    width: 60px;
    height: 60px;
    fill: white;
    background-color: var(--nps_brown);
    border-radius: 20%;
    margin: 5px;
    padding: 12px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nps-icon:hover {
    transform: scale(1.1);
}

.icons-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px auto;
    max-width: 800px;
}

/* Help button responsive styling */
#help-tour {
    transition: all 0.3s ease;
}

#help-tour:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #help-tour {
        width: 35px;
        height: 35px;
        font-size: 20px;
        top: 5px;
        left: 5px;
    }
}

@media (max-width: 480px) {
    #help-tour {
        width: 32px;
        height: 32px;
        font-size: 18px;
        top: 3px;
        left: 3px;
    }
}

/* ========================================
   INLINE STYLES CONVERTED TO CSS CLASSES
   ======================================== */

/* Index.html section styles */
.favorites-section {
    background-color: var(--neutral_base_dark);
    padding: 30px 0;
}

.favorites-container {
    max-width: 800px;
}

.favorites-title {
    margin-bottom: 30px;
}

.favorites-content {
    min-height: 300px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.how-it-works-section {
    background-color: var(--neutral_base);
    padding: 40px;
    border-radius: 16px;
    position: relative;
}

.how-it-works-container {
    max-width: 900px;
}

.how-it-works-title {
    margin-bottom: 10px;
    font-size: 2.4em;
    color: #4a3a2a;
}

.how-it-works-subtitle {
    margin-bottom: 50px;
    color: #5c3a21;
    font-weight: 500;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-box {
    flex: 1 1 250px;
    max-width: 300px;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative;
}

.stepNumber {
    width: 40px;
    height: 40px;
    background: var(--nps_brown);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin: 0 auto 15px auto;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.step-box:hover {
    transform: translateY(-2px);
}

.step-title {
    margin-bottom: 10px;
    color: var(--darker_brown);
}

.cta-button-container {
    margin-top: 50px;
}

.all-icons-section {
    background-color: var(--neutral_base_dark);
    padding: 50px 20px;
    border-radius: 12px;
}

.all-icons-container {
    max-width: 800px;
}

.icons-buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.show-less-btn {
    display: none;
}

.final-cta-section {
    background-color: var(--neutral_base);
    text-align: center;
    padding: 50px 0;
}

/* FAQ.html styles */
.popular-questions {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid var(--nps_brown);
}

.popular-questions-title {
    color: var(--darker_brown);
    margin: 0 0 15px 0;
    font-size: 1.3em;
}

.popular-questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.popular-question-link {
    color: var(--nps_brown);
    text-decoration: none;
    font-weight: 500;
}

.related-questions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
}

.related-questions-text {
    margin: 0;
    font-size: 0.9em;
    color: #666;
}

.related-question-link {
    color: var(--nps_brown);
}

/* Design.html canvas overlay styles */
.header-tooltip-target {
    position: absolute;
    left: 15%;
    top: 4%;
    height: 18%;
    width: 70%;
    pointer-events: none;
}

.icon-tooltip-target {
    position: absolute;
    left: 3%;
    right: 3%;
    top: 20%;
    height: 76%;
    pointer-events: none;
}

.initial-icon-pulse {
    position: absolute;
    left: 9.7%;
    top: 29%;
    height: 18%;
    width: 18%;
}

.canvas-icon-hover {
    position: absolute;
    display: none;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    border-radius: 3%;
}

.canvas-header-hover {
    position: absolute;
    display: none;
    background-color: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    border-radius: 5% / 25%;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 15%;
}

/* Payment success error message styles */
.error-container {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.error-title {
    color: var(--darker_brown);
    margin-bottom: 15px;
}

.error-message {
    color: var(--nps_brown);
    margin-bottom: 20px;
}

.error-info-box {
    background: #f8f5f2;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #6F4930;
    margin-bottom: 20px;
}

.error-info-title {
    color: var(--darker_brown);
    margin: 0 0 10px 0;
}

.error-info-text {
    color: var(--nps_brown);
    margin: 0;
}

.error-contact-link {
    color: var(--accent);
}

/* Modal content styles */
.modal-content-center {
    text-align: center;
    z-index: 9000;
}

/* Utility classes for common inline styles */
.max-width-800 {
    max-width: 800px;
}

.max-width-900 {
    max-width: 900px;
}

.max-width-2000 {
    max-width: 2000px;
}

.display-none {
    display: none;
}

.display-flex {
    display: flex;
}

.text-center {
    text-align: center;
}

.visibility-hidden {
    visibility: hidden;
}