/* =====================
   Hourly Promotion Component CSS - MobRadio
   ===================== */

/* Container styles */
.hourly-promotion-single {
  max-width: 400px;
  margin: 20px auto;
}

/* Empty state */
.hourly-promotion-empty {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  color: #666;
}

/* Item styles */
.hourly-promotion-item {
  padding: 15px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 10px;
}

.hourly-promotion-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.hourly-promotion-title {
  margin: 10px 0;
  font-size: 18px;
  color: #333;
}

.hourly-promotion-gifts {
  margin-top: 20px;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.hourly-promotion-gift {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.hourly-promotion-gift input[type="radio"] {
  margin-right: 10px;
}

.hourly-promotion-gift label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex: 1;
}

.hourly-promotion-gift-image {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
  flex-shrink: 0;
}

.hourly-promotion-gift-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.hourly-promotion-gift-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.2;
}

.hourly-promotion-description {
  font-size: 0.9em;
  color: #666;
  line-height: 1.3;
  margin-top: 2px;
}

.hourly-promotion-subscribe-btn {
  background-color: #28a745 !important;
  color: white !important;
  border: none !important;
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.hourly-promotion-subscribe-btn:hover {
  background-color: #218838 !important;
}

.hourly-promotion-subscribe-btn:active {
  background-color: #1e7e34 !important;
}

.hourly-promotion-subscribe-btn-disabled {
  background-color: #6c757d !important;
  color: white !important;
  border: none !important;
  cursor: not-allowed;
}

.hourly-promotion-terms-link-wrapper {
  margin-top: 15px;
}

.hourly-promotion-terms-link {
  color: #007bff;
  text-decoration: none;
  font-size: 13px;
}

.hourly-promotion-terms-link:hover {
  text-decoration: underline;
}

.hourly-promotion-terms-modal-content,
.hourly-promotion-terms-modal-content p {
  font-size: 13px !important;
}

.hourly-promotion-terms-modal-close {
  width: auto !important;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  position: relative;
  top: 0;
  right: 0;
  transition: color 0.2s;
}

.hourly-promotion-terms-modal-close:hover,
.hourly-promotion-terms-modal-close:focus,
.hourly-promotion-terms-modal-close:active {
  color: #222;
  background: #f2f2f2;
}

.hourly-promotion-enroll-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.hourly-promotion-loading-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Last update text */
.hourly-promotion-last-update {
  font-size: 0.7em;
  text-align: right;
  margin: 0;
  margin-top: 10px;
  color: #666;
}

/* ===== Terms Modal: Copied from promotion-terms-modal, now independent for hourly prize ===== */
.hourly-promotion-terms-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hourly-promotion-terms-modal {
  background: #fff;
  padding: 32px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 16px #0002;
  min-width: 320px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  text-align: left;
}

.hourly-promotion-terms-modal-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  position: relative;
  min-height: 32px;
}

.hourly-promotion-terms-modal-close-top {
  width: auto !important;
  background: none;
  border: none;
  color: #888;
  font-size: 1.7em;
  cursor: pointer;
  z-index: 2;
  padding: 1px 5px 3px 5px !important;
  line-height: 1;
  transition: color 0.2s;
  margin-top: 4px;
  margin-right: 2px;
}

.hourly-promotion-terms-modal-close-top:hover,
.hourly-promotion-terms-modal-close-top:focus {
  color: white !important;
  background: #888 !important;
}

.hourly-promotion-terms-modal-title {
  font-size: 1.15em;
  font-weight: bold;
  margin-bottom: 12px;
  color: #222;
  margin-top: 8px;
}

.hourly-promotion-terms-modal-content {
  font-size: 1em;
  color: #333;
  margin-bottom: 18px;
}

.hourly-promotion-terms-modal-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.hourly-promotion-terms-modal-close {
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 7px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}

.hourly-promotion-terms-modal-close:hover,
.hourly-promotion-terms-modal-close:focus {
  background: #0056b3;
}

/* If needed, you can add any specific overrides for hourly prize here, but by default, use the promotion modal styles. */
