.twp-location-wrapper {
    position: relative;
    display: inline-block;
}

.twp-location-display {
    display: flex;
    align-items: center;
    gap: 10px;
}

.twp-location-icon {
    font-size: 18px;
    color: #333;
}

.twp-location-text {
    font-size: 16px;
    color: #333;
}

.twp-change-location {
    color: #0073aa;
    text-decoration: none;
    font-size: 14px;
}

.twp-change-location:hover {
    text-decoration: underline;
}

.twp-location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: auto;
}

.twp-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.twp-modal-content {
    position: relative;
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    z-index: 1002;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.twp-modal-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.twp-autocomplete-wrapper {
    margin: 15px 0;
}

.twp-location-input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.twp-modal-button, .twp-reset-button {
    background: #0073aa !important;
    color: #fff !important;
    border-color: black !important;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.twp-modal-button:hover, .twp-reset-button:hover {
    background: #005177 !important;
}

.twp-modal-open {
    display: block !important;
}

/* Visual indicator styling for Feature Events */
.countdown-message {
    line-height: 1.4;
    text-align: right;
    width: 100%;
    display: block;
    margin-bottom: 5px;
}

/* Feature Event styling - right aligned */
.countdown-message:contains("Feature Event") {
    background: linear-gradient(135deg, #FFD700, #FFA500) !important;
    color: #000 !important;
    padding: 6px 10px !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    text-transform: uppercase !important;
    font-size: 0.85em !important;
    letter-spacing: 0.5px !important;
    text-align: right !important;
    width: auto !important;
    display: inline-block !important;
    margin-left: auto !important;
    float: right !important;
    clear: both !important;
}

/* When Feature Event is standalone (no countdown) */
.countdown-message:contains("Feature Event"):not(:contains("Last chance")):not(:contains("Only")) {
    margin-bottom: 8px !important;
}

/* Enhanced styling for mixed messages */
.countdown-message br {
    margin: 4px 0;
}

/* Event action container styling for proper alignment */
.event-action {
    text-align: right;
    overflow: hidden;
    min-height: 40px;
}

.event-action::after {
    content: "";
    display: table;
    clear: both;
}

/* Button styling to work with right-aligned Feature Event */
.event-action .button {
    clear: both;
    display: inline-block;
}