.edelweiss-wish-button-wrapper {
    margin: 10px 0;
    display: inline-block;
}

.edelweiss-wish-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background-color: #f8fafc;
    color: #334155;
    border: 1px solid #cbd5e1;
    border-radius: 9999px; /* Pill-Shape / Badge-Style */
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    cursor: pointer;
    width: auto;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.edelweiss-wish-trigger:hover:not(.is-disabled) {
    background-color: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.edelweiss-wish-trigger:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.edelweiss-wish-trigger.is-disabled {
    background-color: #e2e8f0;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
    transform: none;
}

.edelweiss-form-group {
    margin-bottom: 15px;
}

.edelweiss-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.edelweiss-wish-info {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #334155;
    overflow: hidden;
}

.edelweiss-wish-info-summary {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
    transition: background 0.2s ease;
    user-select: none;
}

.edelweiss-wish-info-summary:hover {
    background: #f1f5f9;
}

.edelweiss-wish-info-summary::-webkit-details-marker {
    display: none;
}

.edelweiss-wish-info-icon {
    display: flex;
    align-items: center;
    margin-right: 12px;
    color: #3b82f6;
}

.edelweiss-wish-info-title {
    flex: 1;
}

.edelweiss-wish-info-arrow {
    display: flex;
    align-items: center;
    margin-left: 12px;
    color: #64748b;
    transition: transform 0.3s ease;
}

details.edelweiss-wish-info[open] .edelweiss-wish-info-arrow {
    transform: rotate(180deg);
}

.edelweiss-wish-info-content {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.edelweiss-wish-info-content p {
    margin: 0 0 10px 0;
}

.edelweiss-wish-info-content p:last-child {
    margin-bottom: 0;
}

.edelweiss-wish-info-content ol {
    margin: 0 0 15px 20px;
    padding: 0;
}

.edelweiss-time-blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.edelweiss-time-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #2f2f2f;
    border: 1px solid #2f2f2f;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.2s ease;
    user-select: none;
    margin: 0;
}

.edelweiss-time-badge:hover {
    background: #444444;
}

.edelweiss-time-badge input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Fallback if :has is not supported would be difficult, but it's 2026 here (simulated) */
.edelweiss-time-badge:has(input:checked) {
    background: #166534;
    color: #ffffff;
    border-color: #166534;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ═══════════════════════════════════════════════
   Modal (Style from Product Reviews)
   ═══════════════════════════════════════════════ */
.edelweiss-wish-modal[aria-hidden="true"] {
    display: none;
}

.edelweiss-wish-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 2147483646;
    backdrop-filter: blur(2px);
}

.edelweiss-wish-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2147483647;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.edelweiss-wish-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s;
}

.edelweiss-wish-modal-close:hover {
    color: #333;
}

.edelweiss-wish-modal-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d2327;
}

.edelweiss-wish-modal-status {
    margin-top: 1rem;
    font-weight: 500;
    text-align: center;
    min-height: 1.5em;
}

.edelweiss-wish-modal-actions {
    margin-top: 1.5rem;
    text-align: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .edelweiss-wish-modal-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
        padding: 1.5rem;
    }
    
    .edelweiss-wish-modal-close {
        top: 1.5rem;
        right: 1.5rem;
    }
}
