/* Lookup Tool Popup Styles */
.lookup-tool-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    z-index: 1000; /* Ensure it's above other content */
    display: none; /* Hidden by default */
}

.lookup-tool-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px; /* Slightly smaller max-width for a more compact popup */
    background-color: #fff; /* Modal background if content doesn't fill it */
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    display: none; /* Hidden by default */
    overflow: hidden;
    font-family: 'Open Sans', sans-serif; /* Consistent font */
}

.lookup-tool-content {
    background-color: #FF8C00; /* DarkOrange - closer to image */
    padding: 25px;
    color: #333333;
}

/* Placeholders for internal sections, can be styled later */
.lookup-tool-header p {
    font-size: 0.9em;
    color: #FFFFFF; /* White text for header on orange background */
    margin: 5px 0 10px;
    line-height: 1.4;
}

.lookup-tool-header p:first-child {
    font-weight: bold; /* As per image, first line looks bolder */
}

.lookup-tool-input-section label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #FFFFFF; /* White text for label on orange background */
}

.lookup-tool-input-section {
    margin-bottom: 20px; /* Increased spacing */
}

.lookup-tool-input-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

.lookup-tool-input {
    width: 100%;
    padding: 8px 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.lookup-tool-search-btn {
    position: absolute;
    right: 0;
    top: 5px;
    height: calc(100% - 5px);
    background-color: transparent;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: #666;
    font-size: 16px;
    transition: background-color 0.2s, color 0.2s;
}

.lookup-tool-search-btn:hover {
    background-color: #f0f0f0;
    color: #333;
}

.lookup-tool-results-section {
    /* Placeholder for results display */
    margin-top: 20px;
}

.lookup-result {
    padding: 15px;
    border-radius: 4px;
    color: #fff; /* White text for result boxes */
    /* display: none; /* Base class hidden, specific result shown by JS by toggling another class or inline style */
}

.lookup-result--filter-recommended {
    background-color: #CC0000; /* Stronger Red - closer to image */
}

.lookup-result--no-filter-necessary {
    background-color: #4B0082; /* Indigo - closer to image */
}

.lookup-result__title {
    font-weight: bold;
    font-size: 1.2em; /* Slightly larger title */
    margin-top: 0;
    margin-bottom: 8px;
    text-align: center;
}

.lookup-result__expiry {
    margin-bottom: 10px;
    text-align: center;
    font-size: 1em;
}

.lookup-result__footnote {
    font-size: 1em;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Helper class to show the modal */
.lookup-tool-modal--visible,
.lookup-tool-backdrop--visible {
    display: block;
}

.lookup-tool-trigger-btn {
    background-color: #007bff; /* Example blue, align with site buttons */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 15px; /* Space from paragraph above */
}

.lookup-tool-trigger-btn:hover {
    background-color: #0056b3;
}

.lookup-tool-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.8em;
    font-weight: bold;
    color: #FFFFFF; /* White to show on orange background, or #333 for modal header */
    cursor: pointer;
    padding: 0;
    line-height: 1;
    text-shadow: 0 1px 0 #FFF; /* If on dark bg, otherwise remove/adjust */
}

.lookup-tool-close-btn:hover {
    color: #333;
} 