#s2m-wrapper {
max-width: 650px;
margin: 0 auto;
font-family: inherit;
}

#s2m-wrapper h3 {
border-bottom: 2px solid #0073aa;
padding-bottom: 8px;
color: #23282d;
}

.s2m-form-section {
    margin-bottom: 18px;
}

.s2m-form-section label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #23282d;
}

.s2m-form-section select,
.s2m-form-section input[type="text"],
.s2m-form-section input[type="email"],
.s2m-form-section input[type="number"],
.s2m-form-section textarea {
    width: 100%;
    max-width: 400px;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.s2m-form-section textarea {
    max-width: 500px;
    resize: vertical;
}

#s2m-add-btn {
background: #0073aa;
color: white;
border: none;
padding: 9px 18px;
cursor: pointer;
border-radius: 4px;
font-size: 15px;
margin-top: 5px;
}

#s2m-add-btn:hover {
background: #005a87;
}

#s2m-item-list {
width: 100%;
max-width: 600px;
border-collapse: collapse;
margin: 15px 0;
}

#s2m-item-list th,
#s2m-item-list td {
border: 1px solid #ddd;
padding: 9px 12px;
text-align: left;
}

#s2m-item-list th {
background: #f5f5f5;
font-weight: bold;
}

#s2m-item-list tr:hover {
background: #f9f9f9;
}

.s2m-remove-btn {
    background: #cc0000;
    color: white;
    border: none;
    padding: 4px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
}

.s2m-remove-btn:hover {
    background: #aa0000;
}

#s2m-empty-msg {
color: #888;
font-style: italic;
margin: 10px 0;
}

#s2m-submit-btn {
background: #23a455;
color: white;
border: none;
padding: 11px 28px;
cursor: pointer;
border-radius: 4px;
font-size: 16px;
margin-top: 10px;
}

#s2m-submit-btn:hover {
background: #1a7a3f;
}

.s2m-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: bold;
}

.s2m-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.s2m-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

#s2m-suggestions {
max-width: 400px;
border: 1px solid #ddd;
border-radius: 4px;
margin-top: 4px;
background: white;
}

.s2m-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.s2m-suggestion:last-child {
    border-bottom: none;
}

.s2m-suggestion:hover {
    background: #f0f6fb;
}

.s2m-suggestion-score {
    color: #888;
    font-size: 12px;
}

.s2m-suggestion-empty {
    padding: 8px 12px;
    color: #888;
    font-style: italic;
}

#s2m-total-price {
font-size: 18px;
font-weight: bold;
color: #23282d;
margin: 10px 0;
}

.s2m-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

#s2m-bulk-paste {
    width: 100%;
    max-width: 100%;
    min-height: 260px;
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: "Source Code Pro", "SFMono-Regular", Consolas, Menlo, monospace;
    font-size: 15px;
    line-height: 1.7;
    color: #23282d;
    resize: vertical;
    box-sizing: border-box;
}

#s2m-bulk-paste:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.s2m-attention-suggestions {
    margin-top: 6px;
}

.s2m-search-toggle {
    display: inline-block;
    margin-top: 6px;
    font-size: 13px;
    color: #0073aa;
}

.s2m-attention-search {
    margin-top: 8px;
}

.s2m-attention-search-input {
    width: 100%;
    max-width: 400px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.s2m-attention-search-results {
    max-width: 400px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 4px;
    background: white;
}

#s2m-attention-reminder a {
    color: #9a6700;
    font-weight: bold;
    text-decoration: none;
}

#s2m-attention-reminder a:hover {
    text-decoration: underline;
}

#s2m-attention-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#s2m-attention-modal {
    background: #fff;
    border-radius: 8px;
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

#s2m-attention-modal h4 {
    margin-top: 0;
}

#s2m-attention-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

#s2m-attention-modal-close:hover {
    color: #333;
}

.s2m-add-to-notes-btn {
    background: #666;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 14px;
}

.s2m-add-to-notes-btn:hover {
    background: #555;
}

.s2m-qty-input {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.s2m-condition-select {
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.s2m-how-it-works {
    margin: 0;
    padding-left: 20px;
}

.s2m-how-it-works li {
    margin-bottom: 6px;
}

.s2m-card details summary {
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    color: #23282d;
}

.s2m-card details[open] summary {
    margin-bottom: 10px;
}

.s2m-card details ol {
    margin: 0;
    padding-left: 22px;
}

.s2m-card details li {
    margin-bottom: 10px;
    line-height: 1.5;
}
