.sftwd-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.sftwd-modal.sftwd-show {
  display: flex;
}

.sftwd-modal-content {
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.2s ease;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.sftwd-modal.sftwd-show .sftwd-modal-content {
  transform: scale(1);
  opacity: 1;
}

.sftwd-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.sftwd-tresc {
    flex: 1 1 auto;
    overflow-y: auto;
}

.sftwd-wydarzenie-widget {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;

    border: 2px solid #e5e5e5;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);

    max-width: 700px;
    margin: 20px auto;
    font-family: "Inter", sans-serif;
}

.sftwd-wydarzenie-rows {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sftwd-wydarzenie-row {
    display: grid;
    grid-template-columns: 1fr auto 120px;
    align-items: center;
    column-gap: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #efefef;
}

.sftwd-wydarzenie-col {
    font-size: 16px;
    font-weight: 600;
}

.sftwd-wydarzenie-row .sftwd-wydarzenie-col:nth-child(2) {
    font-weight: 700;
}

.sftwd-wydarzenie-row input[type="number"] {
    width: 55px;
    padding: 6px;
    font-size: 16px;
    text-align: center;

    border: 1px solid #ddd;
    border-radius: 10px;

    -moz-appearance: textfield;
}

.sftwd-wydarzenie-row input::-webkit-inner-spin-button,
.sftwd-wydarzenie-row input::-webkit-outer-spin-button,
.sftwd-bilet-form input::-webkit-inner-spin-button,
.sftwd-bilet-form input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.sftwd-bilet-form input {
  width: 100%;
  font-size: 16px;
  text-align: center;

  border: 1px solid #ddd;
  border-radius: 10px;
  box-sizing: border-box;

  -moz-appearance: textfield;
}

.sftwd-bilet-form input[type="checkbox"] {
  width: auto;
}

.sftwd-bilet-form input[type="checkbox"] + label {
  display: inline-block; /* albo flex, żeby były w linii */
}

.sftwd-bilet-form label {
  font-size: 16px;
  font-weight: 600;
}

.sftwd-wydarzenie-widget button, .sftwd-modal button {
    margin-top: 35px;
    background: linear-gradient(90deg, #8d2ce2, #c026d3);
    border: none;
    color: #fff;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
    display: inline-block;
    float: right;
    transition: 0.2s;
}

.sftwd-wydarzenie-widget button:hover, .sftwd-modal button:hover {
    opacity: 0.9;
}

.sftwd-wydarzenie-row.sold-out {
    opacity: 0.4;
}

.sftwd-wydarzenie-row.sold-out input[type="number"] {
    display: none;
}

.sftwd-hide {
  display: none;
}

.sftwd-bilet-form {
  border-radius: 20px;
  border: 2px solid #e5e5e5;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 5px;
  margin-bottom: 5px;
}

.sftwd-bilet-form label {
  display: block;
}

.sftwd-bilet-form.sftwd-blad {
  border: 2px solid #ff0000;
}
