@font-face {
    font-family: 'Goldplay';
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    src: url('fonts/goldplay_light.woff2') format('woff2');
}

@font-face {
    font-family: 'Goldplay';
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    src: url('fonts/goldplay_medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Goldplay';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('fonts/goldplay_semi-bold.woff2') format('woff2');
}

@font-face {
    font-family: 'Goldplay';
    font-weight: bold;
    font-style: normal;
    font-display: swap;
    src: url('fonts/goldplay_bold.woff2') format('woff2');
}

body {
    font-family: 'Goldplay', sans-serif;
    background-color: #f0f2f5;
    overflow-x: hidden;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 10;
    top: 150%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    font-family: 'Goldplay', sans-serif;
    font-weight: normal;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    text-align: left;
    max-width: 260px;
}

/* Prevent tooltips from going off-screen on mobile */
@media (max-width: 640px) {
    .tooltip .tooltiptext {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        max-width: 90vw !important;
    }
    
    /* For tooltips that would go off the right edge */
    .tooltip:last-child .tooltiptext,
    .tooltip:nth-last-child(2) .tooltiptext {
        left: auto;
        right: 0;
        margin-left: 0;
        transform: none;
    }
    
    /* Better mobile tooltip alignment */
    .tooltip {
        margin-left: 2px;
        margin-top: 1px;
    }
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #333 transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

input[type=range] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=number]:focus {
    outline: none;
    border-color: #ff611c;
    border-width: 1px;
    box-shadow: 0 0 0 1px #ff611c;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dee1e3;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.17);
    cursor: pointer;
    margin-top: -7px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dee1e3;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.17);
    cursor: pointer;
}

.brand-orange { 
    color: #ff611c; 
}

.bg-brand-orange { 
    background-color: #ff611c; 
}

.discount-green {
    color: #b8cb6d;
}

.faint-line { 
    border-color: #e5e7eb; 
}

.discount-badge {
    background-color: #b8cb6d;
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
}

/* Better tooltip alignment */
.tooltip {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.tooltip svg {
    flex-shrink: 0;
}

/* Ensure no horizontal overflow */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}

.rate-selector .unselected {
  opacity: 1;
  transition: all 0.2s;
}

.rate-selector .selected {
  background-color: #ff611c !important;
  color: white !important;
}

.rate-selector .unselected {
  background-color: #212121 !important;
  color: white !important;
} 