/* === LL_FILE_START ===
 * File name: newsletter-sponsorship-calendar.css
 * Description: Newsletter sponsorship calendar modal styles.
 */

.ll-ns-wrap {
  overflow: visible;
}

.ll-ns-wrap .ll-promo-top {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow: visible;
}

.ll-ns-wrap .ll-promo-intro {
  flex: 1 1 auto;
  max-width: none;
  min-width: 300px;
  padding: 6px 0 14px;
}

.ll-ns-wrap .ll-promo-intro-text {
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.9;
}

.ll-ns-wrap .ll-promo-total {
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-align: right;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  pointer-events: auto;
}

.ll-ns-wrap .ll-promo-total-label {
  margin-bottom: 4px;
  font-size: 12px;
  text-align: left;
  opacity: 0.7;
}

.ll-ns-wrap .ll-promo-total-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.ll-ns-wrap .ll-promo-total-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.ll-ns-wrap .ll-promo-total .ll-promo-pay {
  margin-top: 0;
  white-space: nowrap;
}

#dashboard-modal .ll-ns-wrap .ll-promo-pay,
.dashboard-modal .ll-ns-wrap .ll-promo-pay {
  background: #dc2626 !important;
  color: #fff !important;
  border: 1px solid #dc2626 !important;
}

#dashboard-modal .ll-ns-wrap .ll-promo-pay:hover,
#dashboard-modal .ll-ns-wrap .ll-promo-pay:focus,
.dashboard-modal .ll-ns-wrap .ll-promo-pay:hover,
.dashboard-modal .ll-ns-wrap .ll-promo-pay:focus {
  background: #fff !important;
  color: #dc2626 !important;
  border: 1px solid #dc2626 !important;
}

.ll-ns-wrap .ll-promo-sub {
  margin: 10px 0 12px;
}

.ll-ns-wrap .ll-promo-hint {
  font-size: 13px;
  opacity: 0.85;
}

.ll-ns-wrap .ll-promo-hint-green {
  margin-bottom: 4px;
  font-weight: 700;
  opacity: 1;
}

.ll-ns-wrap .ll-promo-back-row {
  margin: 6px 0 10px;
}

.ll-ns-wrap .ll-promo-calendars {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 14px;
}

.ll-ns-wrap .ll-promo-month {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.ll-ns-wrap .ll-promo-month.is-hidden {
  display: none;
}

.ll-ns-wrap .ll-promo-month-title {
  margin-bottom: 8px;
  font-weight: 700;
}

.ll-ns-wrap .ll-promo-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ll-ns-wrap .ll-promo-dow {
  font-size: 12px;
  text-align: center;
  opacity: 0.6;
}

.ll-ns-wrap .ll-promo-cell {
  position: relative;
  padding: 8px 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.ll-ns-wrap .ll-promo-cell input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ll-ns-wrap .ll-promo-daynum {
  font-size: 14px;
  font-weight: 600;
}

.ll-ns-wrap .ll-promo-cell:hover {
  border-color: #94a3b8;
}

.ll-ns-wrap .ll-promo-empty {
  border: none;
  background: transparent;
}

.ll-ns-wrap .ll-promo-cell.is-disabled {
  cursor: not-allowed;
}

.ll-ns-wrap .ll-promo-cell.is-booked {
  cursor: not-allowed;
  opacity: 1;
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.ll-ns-wrap .ll-promo-cell.is-booked .ll-promo-daynum {
  color: #fff;
}

.ll-ns-wrap .ll-promo-cell.is-disabled:not(.is-booked) {
  opacity: 0.35;
  background: #f8fafc;
}

.ll-ns-wrap .ll-promo-cell.is-checked {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.15);
}

.ll-ns-wrap .ll-promo-hide {
  display: none !important;
}

.ll-ns-wrap .ll-promo-paybox {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.ll-ns-wrap .ll-promo-paybox-title {
  margin-bottom: 10px;
  font-weight: 700;
}

.ll-ns-wrap .ll-promo-selected-wrap {
  margin: 0 0 12px;
}

.ll-ns-wrap .ll-promo-selected-title {
  margin-bottom: 6px;
  font-weight: 700;
}

.ll-ns-wrap .ll-promo-selected-list {
  margin: 0;
  padding-left: 18px;
}

.ll-ns-wrap .ll-ns-target-row {
  margin: 12px 0;
}

.ll-ns-wrap .ll-ns-target-row label {
  display: block;
  margin: 8px 0;
}

.ll-ns-wrap .ll-ns-target-select,
.ll-ns-wrap #ll-ns-custom-url {
  width: 100%;
  max-width: 520px;
  margin: 4px 0 10px 24px;
}

@media (max-width: 640px) {
  .ll-ns-wrap .ll-promo-top {
    display: block;
  }

  .ll-ns-wrap .ll-promo-calendars {
    grid-template-columns: 1fr;
  }

  .ll-ns-wrap .ll-promo-right {
    position: sticky;
    top: 0;
    justify-content: stretch;
    width: 100%;
    margin: 8px 0 12px;
  }

  .ll-ns-wrap .ll-promo-total {
    width: 100%;
  }
}