
/* Overlay */
.rsw-modal {
  display: none;
  position: fixed;
  z-index: 100000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  backdrop-filter: blur(3px);
  background: rgba(0,0,0,0.45);
  animation: fadeIn 0.25s ease-out;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important; /* FIX para iOS */
}

/* Container */
.rsw-modal-content {
  background-color: #fff;
  width: 92%;
  max-width: 480px;
  margin: 5% auto;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: slideUp 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(25px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Header */
.rsw-header {
  background-color: #f7f7f7;
  padding: 18px 24px;
  border-bottom: 1px solid #eaeaea;
  position: relative;
}
.rsw-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #222;
}

/* Close button */
.rsw-close {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 22px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}
.rsw-close:hover {
  opacity: 1;
}

/* Body */
.rsw-body {
  padding: 20px 24px;
}
.rsw-section {
  margin-bottom: 20px;
}
.rsw-section h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #666;
}
.rsw-section p {
  margin: 0 0 6px 0;
  font-size: 15px;
  color: #333;
}
.rsw-line {
  height: 1px;
  background-color: #ececec;
  margin: 12px 0 18px 0;
}

/* Quantity input */
.rsw-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rsw-qty-row input {
  width: 75px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

/* Footer */
.rsw-footer {
  padding: 16px 24px 20px 24px;
  border-top: 1px solid #eaeaea;
}

/* Pay button */
.rsw-pay-btn {
  width: 100%;
  border-radius: 10px;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: .2s;
  background-color: #000;
  color: #fff;
  opacity: .4;
}
.rsw-pay-btn.enabled {
  opacity: 1;
}

/* Botón principal de compra rápida */
.rsw-quick-btn {
  margin-top: -7px;
  background-repeat: no-repeat;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  /*display: flex !important;*/
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important; /* separa logo y texto */
}

/* Estilo Apple Pay */
.rsw-quick-btn.rsw-apple-btn {
  background-color: #000;
  color: #fff;
}

/* Estilo Google Pay */
.rsw-quick-btn.rsw-google-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid #222;
}


.pay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 45px;
}

/* Logo base: tamaño */
.pay-logo {
    width: 26px;
    height: 26px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.rsw-quick-btn.apple {
    background-image: url("https://setasa.syncmaster.es/img/Apple_Pay_Logo.png") !important;
    background-repeat: no-repeat !important;
	background-position: 46% 50%;
    background-size: 15px !important;
    padding-left: 40px !important;
	display: block !important;
	background-color: black;
}

.rsw-quick-btn.google {
    background-image: url("https://setasa.syncmaster.es/img/Google_Pay_Logo.png") !important;
    background-repeat: no-repeat !important;
    background-size: 20px auto !important;
    padding-left: 55px !important;
	background-position: 46% 50%;
	display: block !important;
	background-color: #ffffff !important;
    color: #555 !important;
    border: 1px solid #ccc !important;
}

button.rsw-quick-btn.rsw-generic-btn:active {
    background: #eeeeee !important;
    color: #333 !important;
    border-color: #999 !important;
    transform: scale(0.98);
}

.google{
	display:block!important;
}
.apple{
	display:block!important;
}
.rsw-guest-modal .rsw-modal-content {
  max-width: 520px;
}

.rsw-section-intro {
  font-size: 13px;
  color: #666;
  margin-bottom: 12px;
}

.rsw-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px 16px;
}

.rsw-form-grid .form-group {
  margin-bottom: 0;
}

.rsw-form-grid .form-group:nth-child(1),
.rsw-form-grid .form-group:nth-child(4),
.rsw-form-grid .form-group:nth-child(10) {
  grid-column: 1 / 3; /* campos anchos */
}

.rsw-error {
  margin-top: 10px;
  color: #c00!important;
  font-size: 13px;
}
.rsw-pay-btn:disabled {
  cursor: not-allowed;
  opacity: 0.4;
  pointer-events: none;
}
.rsw-pay-btn.enabled {
  opacity: 1;
}

