.rtpulse-link-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.rtpulse-link {
    max-width: 100px;
    display: inline-block;
    outline: none;
}

.rtpulse-logo{
    width: 100%;
}

#rtpulse-schedule-app {
    font-size: 16px !important;
    font-family: inherit;
    max-width: 100vw;
    margin: 0 auto;
}

.rtpulse-week-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.98em;
}

.rtpulse-week-btn {
    background: #eee;
    border: none;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 0.96em;
    cursor: pointer;
    transition: background 0.2s;
}
.rtpulse-week-btn:hover {
    background: #e2e2e2;
}

.rtpulse-week-range {
    font-weight: bold;
    font-size: 1em;
}

.rtpulse-sticky-header {
    position: sticky;
    top: 0;
    z-index: 99;
    width: 100%;
    background: white;
    padding: 8px;
    font-weight: bold;
    font-size: 1.05em;
    text-align: center;
    border-bottom: 1px solid #ddd;
    display: none;
}

.rtpulse-schedule-days {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.rtpulse-day {
    height: 100%;
    flex: 0 0 180px;
    min-width: 160px;
    background: #fcfcfc;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    padding: 9px 8px 8px 9px;
    margin-bottom: 6px;
    scroll-snap-align: start;
    margin-right: 2px;
    font-size: 0.95em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rtpulse-day-title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95em;
    border-bottom: 1px solid #eee;
    padding-bottom: 2px;
    width: 100%;
    text-align: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.rtpulse-class {
    margin-bottom: 9px;
    border-bottom: 1px dashed #e1e1e1;
    padding-bottom: 4.5%;
    width: 100%;
    background: #fcfcfc;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.07);
    font-size: 0.97em;
}

.rtpulse-class:last-child {
    border-bottom: none;
}

.rtpulse-class-time {
    flex: 1 1 auto;
    font-size: 1.03em;
    text-align: right;
    font-weight: 500;
    color: #444;
}
.rtpulse-class-trainer {
    font-size: 0.96em;
    color: #286e2f;
    margin-bottom: 2px;
    padding: 0 2.5%;
}
.rtpulse-class-seats {
    font-size: 0.94em;
    color: #1eb676;
    margin-bottom: 0;
    margin-top: 2px;
    padding: 0 2.5%;
}

.rtpulse-class-title {
    font-size: clamp(0.85em, 2vw, 1.04em);
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rtpulse-user-booked {
    margin-bottom: 2%;
}

.rtpulse-badge-booked {
    display: inline-block;
    background: #49a46d;
    color: #fff;
    font-size: 0.94em;
    border-radius: 6px;
    padding: 1px 8px 1px 8px;
    margin-left: 5px;
    vertical-align: middle;
}

.rtpulse-class-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
    padding: 1.5% 2.5%;
}
.rtpulse-class-img {
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #eee;
}

.rtpulse-class-inactive {
    background: #ececec !important;
    opacity: 0.7;
    filter: grayscale(0.2);
}

.rtpulse-no-classes {
    color: #c00;
    font-size: 0.96em;
    margin-top: 10px;
    opacity: 0.7;
}

.rtpulse-available-seats {
    color: #4CAF50;
}

.rtpulse-unavailable-seats {
    color: #c00;
}

.rtpulse-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.rtpulse-spinner {
    animation: rtpulse-spin 1s linear infinite;
}

.rtpulse-loading-text {
    margin-top: 0.75em;
}

.rtpulse-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 7px 13px 8px 13px;
    margin: 0 auto 0.75em auto;
    background: #eef9f6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(34,114,99,0.06);
    font-size: 1em;
    min-height: 44px;
    max-width: 900px;
}
.rtpulse-user-info {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.rtpulse-user-name {
    font-weight: 600;
    color: #2d4c4d;
    letter-spacing: 0.02em;
    font-size: 1.04em;
}
.rtpulse-user-credits {
    color: #059688;
    font-size: 1em;
    font-weight: 500;
    background: #fff;
    border-radius: 4px;
    padding: 2.5px 9px 2.5px 9px;
    margin-left: 2px;
    margin-right: 2px;
    border: 1px solid #d2e9e6;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: inline-block;
    text-align: center;
}
.rtpulse-credits-expire {
    color: #4d5457;
    font-size: 0.96em;
    font-weight: 400;
    opacity: 0.68;
    margin-left: 4px;
}

.rtpulse-header-btn {
    background: #059688;
    color: #fff;
    border: none;
    padding: 7px 18px 6px 18px;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background 0.18s;
    text-decoration: none;
    font-family: inherit;
}
.rtpulse-header-btn:hover {
    background: #037a6b;
}
@media (max-width: 700px) {
    .rtpulse-header {
        padding: 7px 5vw;
        max-width: 98vw;
        font-size: 0.98em;
    }
    .rtpulse-user-credits {
        font-size: 0.97em;
        padding: 2.5px 7px 2.5px 7px;
    }
    .rtpulse-header-btn {
        font-size: 0.98em;
        padding: 6px 13px 5px 13px;
    }
    
    .rtpulse-sticky-header {
        display: block;
    }
  
    .rtpulse-day-title {
        display: none;
    }
    
    .rtpulse-user-info {
        flex-direction: column;
    }
    
    .filter-hour-wrapper {
        flex-direction: column;
    }
}

@keyframes rtpulse-spin {
    100% { transform: rotate(360deg);}
}
.rtpulse-loading-text {
    color: #444;
    font-size: 1.04em;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.rtpulse-class-clickable {
    cursor: pointer;
    transition: background 0.4s;
}
.rtpulse-class-clickable:hover {
    background: #eef9f6;
}

.rtpulse-modal-bg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    background: rgba(0,0,0,0.23);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rtpulse-modal {
    background: #fff;
    padding: 22px 24px 18px;
    border-radius: 7px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.13);
    min-width: 300px;
    max-width: 92vw;
    position: relative;
}
.rtpulse-modal-close {
    position: absolute;
    right: 10px;
    top: 7px;
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
}
.rtpulse-modal input[type="email"], .rtpulse-modal input[type="password"] {
    width: 99%;
    padding: 6px 7px;
    border: 1px solid #cfd7e0;
    border-radius: 3px;
    margin-top: 2px;
    margin-bottom: 11px;
    font-size: 1em;
}
.rtpulse-btn {
    width: 100%;
    padding: 8px;
    background: #059688;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1em;
    margin-top: 6px;
    cursor: pointer;
    font-weight: 500;
}

a.rtpulse-btn {
    display: inline-block;
    width: auto;
    text-decoration: none;
}

.rtpulse-btn:hover {
    background: #037a6b;
}

@media (max-width: 700px) {
    .rtpulse-schedule-days {
        gap: 4px;
        padding-bottom: 8px;
    }
    .rtpulse-day {
        min-width: 75vw;
        max-width: 85vw;
        font-size: 0.97em;
        padding: 9px 4px 7px 7px;
    }
    .rtpulse-week-nav { font-size: 0.96em; }
}

@media (min-width: 900px) {
    .rtpulse-schedule-days {
        overflow-x: visible;
        gap: 12px;
    }
    .rtpulse-day {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
    }
}

.rtpulse-modal {
    background: #fff;
    padding: 35px 25px 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(34,114,99,0.11);
    min-width: 320px;
    max-width: 98vw;
    position: relative;
    font-size: 1em;
    color: #26353a;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.rtpulse-modal h2 {
    margin-top: 0;
    margin-bottom: 17px;
    color: #059688;
    font-size: 1.17em;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.rtpulse-modal-message {
    margin: 13px 0 15px 0;
    font-size: 1.07em;
    color: #2d4c4d;
    text-align: center;
}
.rtpulse-modal-error {
    color: #c00 !important;
    background: #fff5f5;
    border: 1px solid #ffd8d8;
    border-radius: 5px;
    padding: 10px 9px;
    font-size: 1em;
    margin-bottom: 10px;
    text-align: center;
    animation: rtpulse-pop 0.16s;
}
.rtpulse-modal-success {
    color: #059688 !important;
    background: #f5fffd;
    border: 1px solid #b6ede3;
    border-radius: 5px;
    padding: 10px 9px;
    font-size: 1em;
    margin-bottom: 10px;
    text-align: center;
    animation: rtpulse-pop 0.16s;
}

#rtpulse-login-error {
    color: #c00;
    background: #fff5f5;
    border: 1px solid #ffd8d8;
    border-radius: 4px;
    padding: 8px 8px 7px 8px;
    margin: 9px 0 7px 0;
    text-align: center;
    font-size: 1em;
    display: none;
}

.rtpulse-error, .rtpulse-invalid {
    color: #c00;
}

.text-center {
    text-align: center;
}

@keyframes rtpulse-pop {
    0%   { transform: scale(0.97); opacity: 0.1;}
    100% { transform: scale(1); opacity: 1;}
}
.rtpulse-modal-btn {
    width: 100%;
    padding: 9px 0;
    background: #059688;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1.05em;
    font-weight: 500;
    cursor: pointer;
    margin-top: 11px;
    box-shadow: 0 1px 6px rgba(34,114,99,0.05);
    transition: background 0.17s;
}
.rtpulse-modal-btn:hover {
    background: #037a6b;
}

.rtpulse-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 1.5em .8em 1.5em .8em;
    background: #f5fcfa;
    border-radius: 9px;
    box-shadow: 0 1px 9px rgba(34,114,99,0.04);
    margin: 0 auto 18px auto;
    max-width: 900px;
    flex-wrap: wrap;
}

.rtpulse-filters .filter-hour-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.rtpulse-filters select {
    width: auto;
    padding: 8px 13px 7px 11px;
    font-size: 1em;
    border: 1px solid #cfd7e0;
    border-radius: 5px;
    background: #fff;
    color: #223b39;
    min-width: 120px;
    transition: border 0.16s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    cursor: pointer;
}

.rtpulse-filters select:focus {
    border: 1.5px solid #059688;
    outline: none;
    background: #f5fcfa;
}

.rtpulse-filters label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 1em;
    font-weight: 500;
    color: #1b3f40;
    background: transparent;
    border-radius: 5px;
    padding: 0 7px;
    white-space: nowrap;
}

#filter-hour-label {
    font-weight: 500;
    color: #059688;
    margin-right: 1em;
}

#filter-hour-slider {
    width: 100%;
    min-width: 200px;
    max-width: 380px;
    flex: 1 1 120px;
    max-height: 20px;
}

#filter-hour-value {
    font-size: 0.98em;
    color: #18695f;
    background: #e8faf7;
    border-radius: 5px;
    padding: 2.5px 8px 2.5px 8px;
    margin-left: 7px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .rtpulse-filters {
        flex-wrap: wrap;
        gap: 8px 13px;
        padding: 12px 4vw 15px 4vw;
        max-width: 100vw;
    }
    .rtpulse-filters select,
    .rtpulse-filters label {
        font-size: 0.97em;
        min-width: 100px;
        padding: 6px 8px;
    }
    #filter-hour-slider {
        max-width: 250px;
        min-width: 65px;
    }
    #filter-hour-value {
        min-width: 38px;
        font-size: 0.97em;
        padding: 1.5px 4px;
        margin-top: 0.5em;
    }
}

@media (max-width: 600px) {
    .rtpulse-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 8px 2vw 11px 2vw;
        margin-bottom: 10px;
    }
    .rtpulse-filters select,
    .rtpulse-filters label {
        min-width: 80px;
        width: 100%;
    }
}

#rtpulse-register-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#rtpulse-register-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.rtpulse-field-wrapper {
  margin-bottom: 1.25rem;
}

.rtpulse-field-wrapper label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.rtpulse-field-wrapper input,
.rtpulse-field-wrapper select,
.rtpulse-field-wrapper textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.rtpulse-field-wrapper input:focus,
.rtpulse-field-wrapper select:focus,
.rtpulse-field-wrapper textarea:focus {
  border-color: #0073aa;
  outline: none;
}

.rtpulse-policy-wrapper {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #333;
}

.rtpulse-policy-check {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
}

.rtpulse-policy-check input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-top: 3px;
}

.rtpulse-policy-check a {
  color: #0073aa;
  text-decoration: underline;
}

.rtpulse-policy-check .rtpulse-error {
  margin-left: 1em;
}

#rtpulse-register-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

.rtpulse-datepicker-group {
  display: flex;
  align-items: stretch;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.rtpulse-datepicker-group input {
  border: none;
  padding: 8px;
  flex: 1;
  font-size: 14px;
  outline: none;
}

.rtpulse-datepicker-group .calendar-button {
  background: #f8f8f8;
  border: none;
  border-left: 1px solid #ccc;
  padding: 0 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.rtpulse-datepicker-group .calendar-button:hover {
  background: #eaeaea;
}

.rtpulse-container a {
  color: #059688;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
  text-decoration: none;
}

.rtpulse-container a:hover {
  color: #037a6b;
}

.rtpulse-container a:focus {
  outline:none;
}

.rtpulse-register-success {
    color: #059688;
    background: #f5fffd;
    border: 1px solid #b6ede3;
    border-radius: 5px;
    padding: 15px 14px;
    font-size: 1em;
    margin-top: 20px;
    text-align: center;
    animation: rtpulse-pop 0.18s ease-in;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.rtpulse-register-success h3 {
    font-size: 1.15em;
    margin-bottom: 8px;
    color: #047857;
    font-weight: 600;
}
.rtpulse-register-success p {
    margin: 6px 0;
}

/* noUiSlider base styles */
.noUi-target, .noUi-target * {
    box-sizing: border-box;
}
.noUi-target {
    background: #f0f0f0;
    border-radius: 7px;
    border: 1px solid #e4e4e4;
    height: 7px;
    margin: 14px 0;
}
.noUi-connect {
    background: #63b1b2;
}
.noUi-handle {
    background: #fff;
    border: 2px solid #63b1b2;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.09);
    width: 18px;
    height: 18px;
    top: -6px;
}
.noUi-handle:after, .noUi-handle:before {display:none;}
/* Optional: hover/focus, value style */
#filter-hour-value { font-weight: 500; margin-left: 10px; }

