/* ==========================================================================
   Save the Date for Elementor — Frontend Styles
   ========================================================================== */

/* Wrapper */
.std-wrapper {
    display: block;
    position: relative;
    line-height: 1;
}

/* ---- Button ---- */
.std-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: none;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.2;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    white-space: nowrap;
}

.std-btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Icon */
.std-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.std-btn-icon i {
    font-size: inherit;
    line-height: 1;
}

.std-btn-icon svg {
    fill: currentColor;
    width: 1em;
    height: 1em;
}

.std-btn-icon svg,
.std-btn-icon svg path,
.std-btn-icon .e-font-icon-svg,
.std-btn-icon .e-font-icon-svg path {
    fill: currentColor !important;
}

/* Text */
.std-btn-text {
    display: inline-block;
    line-height: 1.2;
}

/* ---- Dropdown ---- */
.std-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 200px;
    z-index: 1000;
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.std-dropdown.std-dropdown--open {
    display: block !important;
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.std-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.std-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.std-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.std-dropdown-item-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.std-dropdown-item-icon svg {
    stroke: currentColor;
}

/* ---- Alignment helpers ---- */
.std-wrapper[style*="text-align: left"] .std-dropdown,
.std-wrapper .std-dropdown--align-left {
    left: 0;
    transform: translateX(0) translateY(-8px);
}
.std-wrapper[style*="text-align: left"] .std-dropdown.std-dropdown--open,
.std-wrapper .std-dropdown--align-left.std-dropdown--open {
    transform: translateX(0) translateY(0);
}

.std-wrapper[style*="text-align: right"] .std-dropdown,
.std-wrapper .std-dropdown--align-right {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(-8px);
}
.std-wrapper[style*="text-align: right"] .std-dropdown.std-dropdown--open,
.std-wrapper .std-dropdown--align-right.std-dropdown--open {
    transform: translateX(0) translateY(0);
}

/* ---- Pulse animation (optional via class) ---- */
@keyframes std-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.5); }
    70%  { box-shadow: 0 0 0 14px rgba(212, 165, 116, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, 0); }
}

.std-btn--pulse {
    animation: std-pulse 2s infinite;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .std-dropdown {
        min-width: 180px;
    }
}
