/* ── Save the Date Button — Styles (by Miraja Design) ──────────── */

.stdb-wrap {
    display: inline-block;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Main button
   Default background-color is a fallback for shortcode use outside Elementor.
   In Elementor the widget's `selectors` argument controls background-color,
   which takes priority over this default automatically. */
button.stdb-btn {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    background-color: #2563eb;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, box-shadow 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.2) !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    width: auto !important;
}

button.stdb-btn:hover,
button.stdb-btn:focus {
    background-color: var(--stdb-btn-hover-color) !important;
    box-shadow: 0 3px 8px rgba(0,0,0,.25) !important;
    outline: none !important;
    color: #fff !important;
    filter: none !important;
}

button.stdb-btn:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4) !important;
    outline-offset: 2px !important;
}

/* Calendar icon — must be inline-flex so it sits on the same line as text.
   Elementor globally sets svg { display: block } which breaks layout.
   These rules apply both on the front end AND in the editor content_template
   preview, since style.css is loaded in both contexts. */
.stdb-icon,
button.stdb-btn span.stdb-icon {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.stdb-icon svg,
button.stdb-btn span.stdb-icon svg {
    display: inline-block !important;
    width: 17px !important;
    height: 17px !important;
    stroke: currentColor !important;
    vertical-align: middle !important;
}

/* Arrow */
span.stdb-arrow {
    font-size: 10px !important;
    margin-left: 2px !important;
    transition: transform 0.2s !important;
    display: inline-block !important;
    text-transform: none !important;
}

.stdb-wrap.stdb-open span.stdb-arrow {
    transform: rotate(180deg);
}

/* Dropdown */
.stdb-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    z-index: 9999;
    overflow: hidden;
}

.stdb-dropdown[aria-hidden="false"],
.stdb-wrap.stdb-open .stdb-dropdown {
    display: block;
    animation: stdb-fade-in 0.15s ease;
}

@keyframes stdb-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Options */
.stdb-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    color: #1e293b;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s;
    white-space: nowrap;
}

.stdb-option:hover,
.stdb-option:focus {
    background: #f1f5f9;
    color: #1e293b;
    text-decoration: none !important;
    outline: none;
}

.stdb-option svg {
    display: inline-block !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Overlay (closes dropdown on outside click) */
.stdb-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
}

/* Full width mode */
.stdb-wrap.stdb-full {
    display: block;
}
.stdb-wrap.stdb-full button.stdb-btn {
    width: 100% !important;
    justify-content: center !important;
}

/* Alignment helpers */
.stdb-wrap.stdb-align-center { display: flex; justify-content: center; }
.stdb-wrap.stdb-align-right  { display: flex; justify-content: flex-end; }
