.redline-error {
    background: #f8f8f8;
    border-left: 4px solid #dc3232;
    padding: 10px 15px;
    margin: 15px 0;
    font-size: 13px;
    max-width: 100%;
    overflow: auto;
}

/* Shortcode-specific styling - minimal wrapper styling to let theme buttons shine */
.redline-quote-wrapper.redline-shortcode {
    margin: 20px 0;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 4px;
}

/* Let the theme handle button styling - only add minimal positioning */
.redline-quote-wrapper.redline-shortcode .redline-quote-button-trigger {
    /* No custom styling - inherit from theme */
    width: auto;
    display: inline-block;
}

/* Optional: Add subtle focus enhancement */
.redline-quote-wrapper.redline-shortcode .redline-quote-button-trigger:focus {
    outline: 2px solid rgba(102, 126, 234, 0.3);
    outline-offset: 2px;
}

.redline-error strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.redline-error pre {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 10px;
    overflow: auto;
    max-height: 200px;
    margin: 5px 0;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Modal Styles */
.redline-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
}

.redline-modal-content {
    position: relative;
    background-color: #fff;
    margin: 8% auto;
    padding: 0;
    border-radius: 8px;
    max-width: 450px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.redline-modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
    line-height: 1;
    z-index: 10;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.redline-modal-close:hover {
    color: #f8f8f8;
    transform: scale(1.1);
}

.redline-modal-header {
    background-color: #cc0000;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.redline-logo {
    font-size: 1.5em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.redline-modal-header h3 {
    margin: 5px 0;
    padding: 0;
    color: #fff;
    font-size: 1.4em;
    font-weight: 600;
}

.redline-product-name {
    font-size: 0.9em;
    margin: 5px 0 0;
    opacity: 0.9;
    font-style: italic;
}

.redline-modal-body {
    padding: 25px;
}

.redline-intro {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 15px;
}

.redline-form-row {
    display: flex;
    margin-bottom: 15px;
    gap: 10px;
}

.redline-form-row input.redline-quote-zip {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.redline-form-row .redline-quote-button {
    background-color: #cc0000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.redline-form-row .redline-quote-button:hover {
    background-color: #a30000;
}

.redline-quote-result {
    display: block;
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    font-size: 16px;
}

.redline-quote-price {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
    color: #cc0000;
}

.redline-quote-details {
    margin-top: 15px;
    font-size: 14px;
    color: #444;
}

.redline-modal-footer {
    background-color: #f1f1f1;
    padding: 12px 25px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.redline-modal-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Debug Information Styles */
.redline-debug-container {
    margin-top: 20px;
    padding: 12px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: monospace;
    overflow: hidden;
}

.redline-debug-container h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.redline-debug-container pre {
    background-color: #f1f1f1;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 10px;
    margin: 0 0 12px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    max-height: 200px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

/* API Details Styles */
.redline-api-details {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    padding: 10px;
    margin-bottom: 10px;
}

.redline-api-details p {
    margin: 5px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
}

.redline-api-details strong {
    color: #555;
    font-weight: 600;
}

.redline-quote-zip {
    padding: 8px;
    width: 150px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.redline-quote-button {
    background-color: #0073aa !important;
    color: #fff !important;
    border-color: #0073aa !important;
}

.redline-quote-button:hover {
    background-color: #0082c4 !important;
}

.redline-debug {
    margin-top: 10px;
    font-style: italic;
    color: #777;
}
