/* RSVP enhancements (keeps template look & feel) */

/* =========================
   SEARCH: input + button inline (no wrap)
   ========================= */
.rsvp-search-group{
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100%;
}

/* input takes remaining space */
.rsvp-search-group .rsvp-search-input{
  flex: 1 1 auto !important;
  width: 1% !important;     /* hack importante para input-group */
  min-width: 0 !important;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
  border-right: 0;
}

/* button stays at right, never goes below */
.rsvp-search-group .rsvp-search-btn{
  flex: 0 0 auto !important;
  min-width: 64px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  border-left: 0;
}

/* icons visible + aligned */
.rsvp-search-btn i,
.rsvp-confirm-btn i{
  font-size: 18px !important;
  line-height: 1 !important;
  display: inline-block;
  vertical-align: middle;
}

/* asegura contraste del icono dentro del botón */
.rsvp-search-btn i{ color: #fff !important; }

/* Focus bonito sin romper el layout */
.rsvp-search-group:focus-within .rsvp-search-input,
.rsvp-search-group:focus-within .rsvp-search-btn{
  border-color: rgba(13,110,253,.45) !important;
}
.rsvp-search-group:focus-within{
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15) !important;
  border-radius: 10px; /* para que se vea un solo bloque */
}

/* =========================
   RESULTS CARD
   ========================= */
.rsvp-results-card{
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 10px 25px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}

.rsvp-table thead th{
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.rsvp-table td{
  vertical-align: middle;
}

/* IMPORTANTE: evita que el template fuerce layout fijo y “corte” el select */
#guests-table{
  table-layout: auto !important;
  width: 100%;
}

/* =========================
   DRINK SELECT: readable
   ========================= */
#guests-table .rsvp-col-drink{
  min-width: 240px;  /* más ancho en desktop */
}

#guests-table select,
#guests-table .form-select{
  width: 100% !important;
  min-width: 240px;
  font-size: 1rem;
  padding-right: 2.25rem; /* espacio para la flecha */
}

/* En móviles */
@media (max-width: 576px){
  #guests-table .rsvp-col-drink{
    min-width: 200px;
  }
  #guests-table select,
  #guests-table .form-select{
    min-width: 200px;
  }
}

/* =========================
   CONFIRM BUTTON
   ========================= */
.rsvp-confirm-btn{
  border-radius: 10px;
  font-weight: 700;
}

/* Spinner */
.rsvp-inline-spinner{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,.2);
  border-top-color: rgba(0,0,0,.6);
  animation: rsvp-spin .8s linear infinite;
  display: inline-block;
}
@keyframes rsvp-spin { to { transform: rotate(360deg); } }

.rsvp-muted{ opacity: .6; }

/* =========================
   RSVP Button color: #86895d
   ========================= */
.rsvp-btn-olive{
  background-color: #86895d !important;
  border-color: #86895d !important;
  color: #fff !important;
}

.rsvp-btn-olive:hover,
.rsvp-btn-olive:focus{
  background-color: #747755 !important;  /* un poco más oscuro */
  border-color: #747755 !important;
  color: #fff !important;
}

.rsvp-btn-olive:active{
  background-color: #686b4c !important;  /* más oscuro aún */
  border-color: #686b4c !important;
}

.rsvp-btn-olive:focus{
  box-shadow: 0 0 0 .2rem rgba(134,137,93,.25) !important;
}

.rsvp-btn-olive:disabled,
.rsvp-btn-olive.disabled{
  background-color: rgba(134,137,93,.55) !important;
  border-color: rgba(134,137,93,.55) !important;
  color: rgba(255,255,255,.9) !important;
}

/* Variante outline (por si la querés) */
.rsvp-btn-olive-outline{
  background: transparent !important;
  border: 1px solid #86895d !important;
  color: #86895d !important;
}
.rsvp-btn-olive-outline:hover,
.rsvp-btn-olive-outline:focus{
  background-color: #86895d !important;
  color: #fff !important;
}

/* =========================
   Gift modal (accounts)
   ========================= */
.gift-modal__content{
  border-radius: 18px;
}

.gift-modal__header{
  background: #86895d;
  color: #fff;
  border-bottom: 0;
  padding: 1.1rem 1.25rem;
}

.gift-modal__header .modal-title{
  font-weight: 800;
}

.gift-modal__header .btn-close{
  filter: invert(1);
  opacity: 1;
}

.gift-modal__subtitle{
  color: rgba(0,0,0,.75);
}

.gift-modal__table thead th{
  font-weight: 700;
}

.gift-modal__iban{
  background: rgba(134,137,93,.10);
  color: #4b4e38;
  border-radius: 8px;
  padding: .25rem .5rem;
  display: inline-block;
}

.gift-modal__sinpe{
  background: rgba(134,137,93,.08);
  border: 1px solid rgba(134,137,93,.18);
}

.gift-modal__sinpe-card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  padding: .75rem .85rem;
}

.gift-modal__phone{
  font-size: 1.05rem;
  font-weight: 800;
  color: #1f1f1f;
}

.gift-modal__footer{
  border-top: 0;
  padding: 1rem 1.25rem 1.25rem;
}