/* =========================================================
   SUCCESS ACTOR — WOOCOMMERCE MY ACCOUNT
   ========================================================= */


/* =========================================================
 * 
 * /* Hide duplicate WooCommerce My Account navigation */
.woocommerce-account
.e-wc-account-tabs-nav + .woocommerce-MyAccount-navigation {
    display: none !important;
}
   1. ACCOUNT NAVIGATION
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  margin: 1.5rem 0 2.5rem !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex !important;
  align-items: center;
  gap: 2rem;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  border-bottom: 1px solid #eee;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
  display: block !important;
  padding: 0 0 .9rem !important;
  color: #777 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
  color: #111 !important;
  font-weight: 800 !important;
  border-bottom: 2px solid #111 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
  color: #111 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  padding-top: 0 !important;
}

@media (max-width: 760px) {

  .woocommerce-account .woocommerce-MyAccount-navigation {
    margin: 1rem 0 2rem !important;
    overflow: hidden;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    gap: 1.4rem !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px !important;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation li a {
    font-size: 14px !important;
    padding-bottom: .75rem !important;
  }
}


/* =========================================================
   2. GLOBAL ACCOUNT ELEMENTS
   ========================================================= */

.woocommerce-account .woocommerce-MyAccount-content .button {
  background: #111 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 9px !important;
  padding: .75rem 1rem !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-MyAccount-content .button:hover {
  transform: translateY(-1px);
}

.woocommerce-account .woocommerce-notice,
.woocommerce-account .woocommerce-message,
.woocommerce-account .woocommerce-info {
  border: 1px solid #eee !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 16px 35px rgba(0,0,0,.05) !important;
  padding: 18px 20px !important;
  margin: 0 0 26px !important;
  color: #111 !important;
}

.woocommerce-account .woocommerce-info::before {
  display: none !important;
  content: none !important;
}

.woocommerce-account h2,
.woocommerce-account h3 {
  color: #111;
  letter-spacing: -.02em;
}


/* =========================================================
   3. MY DOWNLOADS
   ========================================================= */

.sa-downloads-grid {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  display: grid;
  gap: 1.75rem;
}

.sa-download-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 22px 40px rgba(0,0,0,.06);
  overflow: hidden;
}

.woocommerce-account button.sa-download-card__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1.4rem 1.8rem;
  border: 0 !important;
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
  outline: none !important;
  cursor: pointer;
  transition: transform .12s ease;
}

.woocommerce-account button.sa-download-card__toggle:hover,
.woocommerce-account button.sa-download-card__toggle:focus,
.woocommerce-account button.sa-download-card__toggle:active {
  background: #fff !important;
  color: #111 !important;
  box-shadow: none !important;
}

.woocommerce-account button.sa-download-card__toggle:hover {
  transform: translateY(-1px);
}

.sa-download-card__thumb {
  flex: 0 0 65px;
  height: 64px;
  margin-right: 1.25rem;
  border-radius: 5px;
  overflow: hidden;
  background: #f4f3ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sa-download-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sa-download-card__meta {
  flex: 1 1 auto;
  text-align: left;
}

.sa-download-card__title {
  margin: 0 0 .25rem;
  color: #111 !important;
  font-size: 1.05rem;
  font-weight: 700;
}

.sa-download-card__desc {
  display: block !important;
  margin: 0;
  color: #6b6b6b !important;
  font-size: .9rem;
  line-height: 1.45;
}

.sa-download-card__chevron {
  margin-left: .75rem;
  color: #a3a3a3 !important;
  font-size: .9rem;
  transition: transform .2s ease;
}

.sa-download-card.is-open .sa-download-card__chevron {
  transform: rotate(180deg);
}

.sa-download-card__panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 .1rem;
  opacity: 0;
  background: #fff;
  transition:
    max-height .35s ease,
    padding .35s ease,
    opacity .3s ease;
}

.sa-download-card.is-open .sa-download-card__panel {
  padding: 1rem .1rem 0;
  opacity: 1;
}

.sa-download-link {
  color: #5a0fd4;
  font-weight: 600;
  text-decoration: none;
}

.sa-download-link:hover {
  color: #5a0fd4;
  text-decoration: underline;
}

@media (max-width: 700px) {

  .woocommerce-account button.sa-download-card__toggle {
    padding: 1.1rem 1.2rem;
  }

  .sa-download-card__thumb {
    flex-basis: 52px;
    height: 52px;
    margin-right: .9rem;
  }

  .sa-download-card__title {
    font-size: .98rem;
  }

  .sa-download-card__desc {
    font-size: .82rem;
    margin-top: .1rem;
  }
}


/* =========================================================
   4. PAYMENT HISTORY / ORDERS LIST
   ========================================================= */

.woocommerce-account .woocommerce-orders-table {
  border: 0 !important;
  background: transparent !important;
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
}

.woocommerce-account .woocommerce-orders-table thead {
  display: none !important;
}

.woocommerce-account .woocommerce-orders-table tbody tr {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 20px 22px !important;
  margin-bottom: 14px !important;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 12px !important;
}

.woocommerce-account .woocommerce-orders-table tbody td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-number a {
  color: #111 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-date {
  color: #777 !important;
  font-size: 14px !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-total {
  color: #111 !important;
  font-weight: 600 !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-status {
  justify-self: start;
  width: fit-content;
  padding: 5px 10px !important;
  border-radius: 999px !important;
  background: #f2f2f2 !important;
  color: #555 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

.woocommerce-account
.woocommerce-orders-table__row--status-completed
.woocommerce-orders-table__cell-order-status {
  background: #eef8f3 !important;
  color: #167250 !important;
}

.woocommerce-account
.woocommerce-orders-table__row--status-failed
.woocommerce-orders-table__cell-order-status {
  background: #fff0f0 !important;
  color: #a32626 !important;
}

.woocommerce-account
.woocommerce-orders-table__row--status-cancelled
.woocommerce-orders-table__cell-order-status {
  background: #f3f3f3 !important;
  color: #666 !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions {
  justify-self: end !important;
}

.woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
  padding: 9px 14px !important;
  font-size: 13px !important;
}

@media (max-width: 760px) {

  .woocommerce-account .woocommerce-orders-table tbody tr {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 18px !important;
  }

  .woocommerce-account .woocommerce-orders-table tbody td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 20px !important;
    min-height: 44px;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f1f1f1 !important;
  }

  .woocommerce-account .woocommerce-orders-table tbody td::before {
    float: none !important;
    color: #888 !important;
    font-weight: 600 !important;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions {
    display: block !important;
    justify-self: stretch !important;
    padding-top: 14px !important;
    border-bottom: 0 !important;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions::before {
    display: none !important;
  }

  .woocommerce-account .woocommerce-orders-table__cell-order-actions .button {
    width: 100% !important;
    min-height: 48px;
    text-align: center !important;
  }
}


/* =========================================================
   5. ORDER DETAIL PAGE
   ========================================================= */

.woocommerce-account .woocommerce-order-details,
.woocommerce-account .woocommerce-customer-details {
  padding: 1.2rem 1.25rem;
  margin-bottom: 1.25rem;
  background: #fff;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: 0 22px 40px rgba(0,0,0,.06);
}

.woocommerce-account .woocommerce-order-details table,
.woocommerce-account .woocommerce-customer-details table {
  width: 100%;
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}

.woocommerce-account .woocommerce-order-details th,
.woocommerce-account .woocommerce-order-details td {
  padding: .8rem !important;
  border: 0 !important;
}

.woocommerce-account .woocommerce-order-details tbody tr + tr td {
  border-top: 1px solid #f1f1f1 !important;
}

.woocommerce-account .woocommerce-order-details .product-name {
  color: #111;
  font-weight: 700;
}

.woocommerce-account .woocommerce-order-details .product-name a {
  color: #111;
  text-decoration: none;
}

.woocommerce-account address {
  padding: 1rem 1.1rem !important;
  background: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  line-height: 1.7;
}


/* =========================================================
   6. SUBSCRIPTIONS LIST
   ========================================================= */

.woocommerce-account table.my_account_subscriptions {
  border: 0 !important;
  background: transparent !important;
}

.woocommerce-account table.my_account_subscriptions thead {
  display: none !important;
}

.woocommerce-account table.my_account_subscriptions tbody tr {
  display: grid;
  grid-template-columns: 1.2fr .9fr 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.3rem 1.4rem;
  margin-bottom: 1.4rem;
  background: #fff;
  border: 0 !important;
  border-radius: 10px;
  box-shadow: 0 22px 40px rgba(0,0,0,.06);
}

.woocommerce-account table.my_account_subscriptions tbody td {
  padding: 0 !important;
  border: 0 !important;
}

.woocommerce-account td.subscription-id,
.woocommerce-account td.subscription-id a {
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.woocommerce-account td.subscription-next-payment,
.woocommerce-account td.subscription-total {
  color: #111;
  font-weight: 700;
}

.woocommerce-account td.subscription-status {
  font-weight: 700 !important;
}

.woocommerce-account td.subscription-actions {
  justify-self: end;
}

.woocommerce-account td.subscription-actions a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
  background: #111 !important;
  color: #fff !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

@media (max-width: 760px) {

  .woocommerce-account table.my_account_subscriptions tbody tr {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 18px 20px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
  }

  .woocommerce-account table.my_account_subscriptions tbody td {
    display: grid !important;
    grid-template-columns: 110px 1fr !important;
    align-items: center !important;
    min-height: 0 !important;
    padding: 8px 0 !important;
  }

  .woocommerce-account table.my_account_subscriptions tbody td::before {
    display: block !important;
    float: none !important;
    content: attr(data-title) ":" !important;
    margin: 0 !important;
    color: #777 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
  }

  .woocommerce-account table.my_account_subscriptions tbody td > * {
    justify-self: end !important;
    text-align: right !important;
  }

  .woocommerce-account table.my_account_subscriptions td.subscription-actions {
    display: flex !important;
    justify-content: flex-end !important;
    padding-top: 12px !important;
    margin-top: 4px !important;
  }

  .woocommerce-account table.my_account_subscriptions td.subscription-actions::before {
    display: none !important;
    content: none !important;
  }

  .woocommerce-account table.my_account_subscriptions td.subscription-actions a {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
}


/* =========================================================
   7. SINGLE SUBSCRIPTION DETAILS
   ========================================================= */

.woocommerce-account table.subscription_details {
  width: 100% !important;
  margin-bottom: 28px !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 12px !important;
}

.woocommerce-account table.subscription_details tr {
  display: grid !important;
  grid-template-columns: 220px 1fr !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #eee !important;
}

.woocommerce-account table.subscription_details tr:last-child {
  border-bottom: 0 !important;
}

.woocommerce-account table.subscription_details td {
  display: block !important;
  min-height: 0 !important;
  padding: 17px 20px !important;
  border: 0 !important;
}

.woocommerce-account table.subscription_details td:first-child {
  color: #777 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.woocommerce-account table.subscription_details td:last-child {
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.woocommerce-account table.subscription_details td::before {
  display: none !important;
  content: none !important;
}

.woocommerce-account table.subscription_details .button {
  width: auto !important;
  margin: 4px 0 !important;
}

@media (max-width: 760px) {

  .woocommerce-account table.subscription_details {
    margin-top: 10px !important;
  }

  .woocommerce-account table.subscription_details tr {
    grid-template-columns: 42% 58% !important;
  }

  .woocommerce-account table.subscription_details td {
    padding: 14px 12px !important;
  }

  .woocommerce-account table.subscription_details td:first-child {
    font-size: 13px !important;
  }

  .woocommerce-account table.subscription_details td:last-child {
    font-size: 14px !important;
    text-align: right !important;
  }

  .woocommerce-account table.subscription_details tr:last-child {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-account table.subscription_details tr:last-child td {
    text-align: left !important;
  }

  .woocommerce-account table.subscription_details tr:last-child .button {
    width: 100% !important;
    text-align: center !important;
  }
}


/* =========================================================
   8. SUBSCRIPTION PAGE CLEANUP
   ========================================================= */

/* Downloads already live under "내 강의". */
.sa-view-subscription .woocommerce-order-downloads {
  display: none !important;
}

/* Download card title refinement */
.sa-download-card__title {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

@media (max-width: 700px) {
  .sa-download-card__title {
    font-size: 1rem !important;
  }
}

/* DOWNLOAD CARDS — vertically center content properly */

.woocommerce-account button.sa-download-card__toggle {
  min-height: 0 !important;
  height: auto !important;
  align-items: center !important;
}

.sa-download-card__meta {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-self: center !important;
  gap: 6px !important;
  height: auto !important;
}

.sa-download-card__title {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

.sa-download-card__desc {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.45 !important;
}

/* ===== Status colors (covers multiple mark/span class patterns) ===== */ /* Active */ .woocommerce-account td.subscription-status .active, .woocommerce-account td.subscription-status .status-active, .woocommerce-account td.subscription-status mark.active, .woocommerce-account td.subscription-status mark.status-active { background: rgba(16, 185, 129, .14) !important; color: #065f46 !important; } /* On hold */ .woocommerce-account td.subscription-status .on-hold, .woocommerce-account td.subscription-status .status-on-hold, .woocommerce-account td.subscription-status mark.on-hold, .woocommerce-account td.subscription-status mark.status-on-hold { background: rgba(245, 158, 11, .16) !important; color: #92400e !important; } /* Pending / Pending cancellation */ .woocommerce-account td.subscription-status .pending, .woocommerce-account td.subscription-status .status-pending, .woocommerce-account td.subscription-status .pending-cancel, .woocommerce-account td.subscription-status .status-pending-cancel, .woocommerce-account td.subscription-status mark.pending, .woocommerce-account td.subscription-status mark.status-pending, .woocommerce-account td.subscription-status mark.pending-cancel, .woocommerce-account td.subscription-status mark.status-pending-cancel { background: rgba(168, 85, 247, .14) !important; color: #6b21a8 !important; } /* Cancelled */ .woocommerce-account td.subscription-status .cancelled, .woocommerce-account td.subscription-status .status-cancelled, .woocommerce-account td.subscription-status mark.cancelled, .woocommerce-account td.subscription-status mark.status-cancelled { background: rgba(107, 114, 128, .14) !important; color: #374151 !important; } /* Expired */ .woocommerce-account td.subscription-status .expired, .woocommerce-account td.subscription-status .status-expired, .woocommerce-account td.subscription-status mark.expired, .woocommerce-account td.subscription-status mark.status-expired { background: rgba(239, 68, 68, .14) !important; color: #991b1b !important; }

/* =========================================================
   CANCELLATION / RETENTION POPUP
   ========================================================= */

#cancellation-offer-popup {
  --cos-accent-color: #111 !important;

  width: calc(100% - 32px) !important;
  max-width: 680px !important;
  margin: 40px auto !important;
  padding: 42px 42px 36px !important;

  background: #fff !important;
  border-radius: 5px !important;
  box-shadow: 0 24px 70px rgba(0,0,0,.16) !important;

  color: #111 !important;
}


/* Titles */

#cancellation-offer-popup h2 {
  margin: 0 0 18px !important;

  color: #111 !important;
  font-size: 28px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
  letter-spacing: -.02em !important;
}


/* Descriptions */

#cancellation-offer-popup
.cancellation-offer-popup-survey__description,

#cancellation-offer-popup
.cancellation-offer-popup-discount-offer__description {
  margin-bottom: 28px !important;

  color: #666 !important;
  font-size: 16px !important;
  line-height: 1.7 !important;
}


/* Survey answer grid */

#cancellation-offer-popup
.cancellation-offer-popup-survey-items {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
}


/* Individual answer */

#cancellation-offer-popup
.cancellation-offer-popup-survey-item {
  display: flex !important;
  align-items: center !important;
  min-height: 72px !important;

  padding: 16px 18px !important;

  background: #fafafa !important;
  border: 1px solid #eee !important;
  border-radius: 10px !important;

  transition: border-color .15s ease,
              background .15s ease !important;
}


#cancellation-offer-popup
.cancellation-offer-popup-survey-item:hover {
  background: #f7f7f7 !important;
  border-color: #ccc !important;
}


/* Answer text */

#cancellation-offer-popup
.cancellation-offer-popup-survey-item__text {
  color: #222 !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
}


/* Continue / accept offer buttons */

#cancellation-offer-popup
.cancellation-offer-popup-survey__continue-button,

#cancellation-offer-popup
.cancellation-offer-popup-discount-offer__continue-button {

  width: auto !important;

  background: #6501FF !important;
  color: #fff !important;

  border: 0 !important;
  border-radius: 9px !important;

  padding: 13px 22px !important;

  font-size: 15px !important;
  font-weight: 700 !important;

  box-shadow: none !important;
}


/* Disabled Continue */

#cancellation-offer-popup
.cancellation-offer-popup-survey__continue-button:disabled {
  background: #ddd !important;
  color: #888 !important;
  cursor: not-allowed !important;
}


/* "Still cancel" / "Changed my mind" links */

#cancellation-offer-popup
.cancellation-offer-popup-survey__dismiss-button,

#cancellation-offer-popup
.cancellation-offer-popup-discount-offer__dismiss-button {

  color: #777 !important;
  font-size: 14px !important;
  font-weight: 500 !important;

  text-decoration: none !important;
}


#cancellation-offer-popup
.cancellation-offer-popup-survey__dismiss-button:hover,

#cancellation-offer-popup
.cancellation-offer-popup-discount-offer__dismiss-button:hover {
  color: #111 !important;
  text-decoration: underline !important;
}


/* Close X */

#cancellation-offer-popup .mfp-close {
  color: #777 !important;
  background: transparent !important;
  font-size: 30px !important;
  opacity: 1 !important;
}


/* Remove global purple button styling */

#cancellation-offer-popup button:hover,
#cancellation-offer-popup button:focus,
#cancellation-offer-popup button:active {
  background-color: #111 !important;
  color: #fff !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  #cancellation-offer-popup {
    width: calc(100% - 24px) !important;
    margin: 20px auto !important;
    padding: 32px 20px 26px !important;
    border-radius: 12px !important;
  }

  #cancellation-offer-popup h2 {
    font-size: 23px !important;
  }

  #cancellation-offer-popup
  .cancellation-offer-popup-survey__description,

  #cancellation-offer-popup
  .cancellation-offer-popup-discount-offer__description {
    font-size: 15px !important;
  }

  #cancellation-offer-popup
  .cancellation-offer-popup-survey-items {
    grid-template-columns: 1fr !important;
  }

  #cancellation-offer-popup
  .cancellation-offer-popup-survey-item {
    min-height: 62px !important;
  }

  #cancellation-offer-popup
  .cancellation-offer-popup-survey__continue-button,

  #cancellation-offer-popup
  .cancellation-offer-popup-discount-offer__continue-button {
    width: 100% !important;
  }
}

/* =========================================================
   POST-CANCELLATION THANK YOU
   ========================================================= */

#sa-cancel-success-popup {
  width: calc(100% - 32px);
  max-width: 650px;
  margin: 40px auto;
  padding: 44px 42px 38px;

  background: #fff;
  border-radius: 5px;
  box-shadow: 0 24px 70px rgba(0,0,0,.16);
}

.sa-cancel-success {
  text-align: center;
}

.sa-cancel-success h2 {
  margin: 0 0 26px !important;

  color: #111 !important;
  font-size: 27px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  letter-spacing: -.02em !important;
}

.sa-cancel-success p {
  max-width: 540px;
  margin: 0 auto 17px;

  color: #666;
  font-size: 15px;
  line-height: 1.8;
}

.sa-cancel-signature {
  margin-top: 26px !important;
  color: #333 !important;
  font-weight: 600;
}

.sa-cancel-success-close {
  margin-top: 20px;
  padding: 12px 30px;

  background: #5B00FF !important;
  color: #fff !important;

  border: 0 !important;
  border-radius: 4px !important;

  font-size: 15px;
  font-weight: 700;

  cursor: pointer;
}

.sa-cancel-success-close:hover {
  background: #4900D1 !important;
}


@media (max-width: 700px) {

  #sa-cancel-success-popup {
    width: calc(100% - 24px);
    margin: 20px auto;
    padding: 34px 22px 30px;
  }

  .sa-cancel-success h2 {
    font-size: 23px !important;
  }

  .sa-cancel-success p {
    font-size: 14px;
  }

  .sa-cancel-success-close {
    width: 100%;
  }
}

#sa-cancel-success-popup {
  max-width: 760px !important;
  padding: 40px 44px 34px !important;
}

.sa-cancel-success p {
  max-width: 610px !important;
  line-height: 1.7 !important;
}

.sa-cancel-success .sa-cancel-signature {
  margin-top: 22px !important;
}

.sa-cancel-success-close {
  margin-top: 14px !important;
}

/* =========================================================
   CANCELLATION FORM — CLEANER TEXTAREA
   ========================================================= */

/* Textarea */
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea textarea {
  width: 100% !important;
  min-height: 150px !important;

  padding: 16px 18px !important;

  background: #fafafa !important;
  color: #222 !important;

  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  outline: none !important;

  font-size: 15px !important;
  line-height: 1.6 !important;

  box-shadow: none !important;
  resize: vertical;
}

/* Focus */
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea textarea:focus {
  border-color: #5B00FF !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(91,0,255,.08) !important;
}

/* Placeholder */
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea textarea::placeholder {
  color: #aaa !important;
}

/* Requirement + character count — no red */
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea__requirements,
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea__requirements small,
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea__required-text,
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea__character-count {
  color: #888 !important;
}

/* Slight spacing */
#cancellation-offer-popup
.cancellation-offer-popup-survey-items__textarea__requirements {
  margin-top: 8px !important;
}

/* =========================================================
   THANK-YOU POPUP — MOBILE REFINEMENT
   ========================================================= */

@media (max-width: 700px) {

  #sa-cancel-success-popup {
    width: calc(100% - 28px) !important;
    max-width: none !important;

    margin: 14px auto !important;
    padding: 30px 22px 24px !important;

    border-radius: 7px !important;

    max-height: calc(100vh - 28px) !important;
    overflow-y: auto !important;
  }

  .sa-cancel-success h2 {
    margin: 6px 0 24px !important;

    font-size: 22px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;

    text-align: center !important;
  }

  .sa-cancel-success p {
    max-width: none !important;
    margin: 0 0 17px !important;

    font-size: 16px !important;
    line-height: 1.7 !important;

    text-align: center !important;
  }

  .sa-cancel-success .sa-cancel-signature {
    margin-top: 22px !important;
    margin-bottom: 24px !important;

    font-weight: 650 !important;
  }

  .sa-cancel-success-close {
    width: 100% !important;

    margin-top: 0 !important;
    padding: 13px 20px !important;

    border-radius: 5px !important;
  }

  #sa-cancel-success-popup .mfp-close {
    top: 4px !important;
    right: 4px !important;
  }
}

/* Remove WooCommerce notice icons */
.woocommerce-account .woocommerce-message::before,
.woocommerce-account .woocommerce-info::before,
.woocommerce-account .woocommerce-error::before,
.woocommerce-account .woocommerce-notice::before {
  display: none !important;
  content: none !important;
}

/* SUCCESS ACTOR — lesson progress */

/* SUCCESS ACTOR — lesson completion button
   Strong specificity to override Astra / Elementor button styles */

.sa-download-card .sa-download-card__panel button.sa-progress-check {
    -webkit-appearance: none !important;
    appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    width: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;

    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;

    margin: 0 8px 0 0 !important;
    padding: 0 !important;

    border: 1.5px solid #c8c8c8 !important;
    border-radius: 50% !important;

    background: transparent !important;
    background-image: none !important;

    color: transparent !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    box-shadow: none !important;
    text-shadow: none !important;

    cursor: pointer !important;
}

.sa-download-card .sa-download-card__panel button.sa-progress-check:hover,
.sa-download-card .sa-download-card__panel button.sa-progress-check:focus,
.sa-download-card .sa-download-card__panel button.sa-progress-check:active {
    background: transparent !important;
    background-image: none !important;

    border-color: #999 !important;

    color: transparent !important;

    box-shadow: none !important;
    outline: none !important;
}

/* ACTUAL saved completion state */

.sa-download-card .sa-download-card__panel button.sa-progress-check.is-complete,
.sa-download-card .sa-download-card__panel button.sa-progress-check.is-complete:hover,
.sa-download-card .sa-download-card__panel button.sa-progress-check.is-complete:focus,
.sa-download-card .sa-download-card__panel button.sa-progress-check.is-complete:active {
    background: #2f8a4c !important;
    border-color: #2f8a4c !important;
    color: #ffffff !important;
}

/* Completed lesson title */

.sa-progress-title.is-complete {
    opacity: 0.58;
}

/* Counter */

.sa-card-progress {
    display: block;
    margin-top: 8px;

    font-size: 13px;
    line-height: 1.3;

    color: #8b8b8b;
}

.sa-card-progress.is-complete {
    display: inline-block;

    padding: 5px 8px;
    border-radius: 999px;

    background: #edf7ef;
    color: #26703e;

    font-weight: 600;
}

/* Slightly soften completed lesson title */

.sa-progress-title.is-complete {
    opacity: 0.58;
}


/* Card progress indicator */

.sa-card-progress {
    display: inline-block;

    margin-top: 6px;

    font-size: 12px;
    line-height: 1.2;

    color: #8b8b8b;
}

.sa-card-progress.is-complete {
    padding: 5px 8px;

    border-radius: 999px;

    background: #edf7ef;
    color: #26703e;

    font-weight: 600;
}

/* =========================================================
   SUCCESS ACTOR — CONTENT PORTAL SECTIONS
   ========================================================= */

.sa-portal-sections {
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
}

.sa-portal-section {
  margin-bottom: 4.5rem;
}

.sa-portal-section:last-child {
  margin-bottom: 0;
}

.sa-portal-section__header {
  margin-bottom: 1.4rem;
}

.sa-portal-section__title {
  margin: 0 0 .45rem !important;
  color: #111 !important;
  font-size: 1.45rem !important;
  line-height: 1.3 !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
}

.sa-portal-section__desc {
  margin: 0 !important;
  color: #777 !important;
  font-size: .92rem !important;
  line-height: 1.5 !important;
}

/* Grid now lives inside each category */
.sa-portal-section .sa-downloads-grid {
  max-width: none;
  margin: 0;
}

/* Current curriculum gets slightly stronger hierarchy */
.sa-portal-section--current-course {
  margin-bottom: 5rem;
}

/* Expired content is intentionally quieter */
.sa-portal-section--expired-content {
  margin-top: 5.5rem;
  opacity: .72;
}

.sa-portal-section--expired-content .sa-portal-section__title {
  font-size: 1.1rem !important;
}

/* "Other" is mainly a safety category */
.sa-portal-section--other {
  opacity: .8;
}

@media (max-width: 700px) {

  .sa-portal-section {
    margin-bottom: 3.5rem;
  }

  .sa-portal-section__header {
    margin-bottom: 1.1rem;
  }

  .sa-portal-section__title {
    font-size: 1.25rem !important;
  }

  .sa-portal-section__desc {
    font-size: .86rem !important;
  }
}


/* =========================================================
   CURRENT COURSE — VISUAL PROGRESS
   ========================================================= */

.sa-course-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 3px;
}

.sa-course-progress__count {
  flex: 0 0 auto;
  color: #777;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.sa-course-progress__track {
  width: 150px;
  height: 5px;
  overflow: hidden;
  background: #e9e9e9;
  border-radius: 999px;
}

.sa-course-progress__fill {
  display: block;
  height: 100%;
  background: #6501ff;
  border-radius: inherit;
  transition: width .25s ease;
}

.sa-course-progress__pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  background: #f1eaff;
  color: #6501ff;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 700px) {

  .sa-course-progress {
    gap: 8px;
  }

  .sa-course-progress__track {
    flex: 1 1 auto;
    width: auto;
    max-width: 110px;
  }

}

/* ========================================
   SUCCESS ACTOR — MEMBERSHIP GUIDE BANNER
======================================== */

.sa-guide-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0 0 42px;
    padding: 17px 20px;

    background: #f7f7f7;
    border: 1px solid #eeeeee;
    border-radius: 12px;

    text-decoration: none !important;
    transition: background .2s ease, transform .2s ease;
}

.sa-guide-banner:hover {
    background: #f2f2f2;
    transform: translateY(-1px);
}

.sa-guide-banner__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.sa-guide-banner__text strong {
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.sa-guide-banner__text span {
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.sa-guide-banner__arrow {
    flex: 0 0 auto;
    color: #6501ff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 700px) {

    .sa-guide-banner {
        margin-bottom: 45px;
        padding: 15px 16px;
        gap: 12px;
    }

    .sa-guide-banner__text strong {
        font-size: 13px;
    }

    .sa-guide-banner__text span {
        font-size: 11px;
    }

    .sa-guide-banner__arrow {
        font-size: 12px;
    }
}

/* ========================================
   SUCCESS ACTOR — UPCOMING COURSE
======================================== */

.sa-download-card--upcoming {
    background: #fcfaff;
    border: 1px solid #eee6ff;
}

.sa-download-card--upcoming .sa-download-card__toggle {
    background: transparent;
}

.sa-upcoming-status {
    margin-top: 7px;
}

.sa-upcoming-status span {
    display: inline-flex;
    align-items: center;

    width: auto;
    padding: 5px 9px;

    background: #f1eaff;
    color: #6501ff;

    border-radius: 999px;

    font-size: 11px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}


/* Mobile */

@media (max-width: 700px) {

    .sa-upcoming-status {
        margin-top: 6px;
    }

    .sa-upcoming-status span {
        padding: 4px 8px;
        font-size: 10.5px;
    }
}

@media (max-width: 700px) {

    .woocommerce-account .sa-download-card__panel {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .woocommerce-account .sa-download-card__panel ul {
        margin: 0 !important;
        padding: 14px 0 14px 22px !important;
    }

    .woocommerce-account .sa-download-card__panel li {
        margin-bottom: 9px !important;
        line-height: 1.55 !important;
    }

    .woocommerce-account .sa-download-card__panel li:last-child {
        margin-bottom: 0 !important;
    }
}

.sa-upcoming-section__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-top: 12px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #6501ff;
    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.sa-upcoming-section__toggle:hover {
    opacity: .72;
}

.sa-upcoming-section__toggle-arrow {
    font-size: 11px;
}

/* Make upcoming section truly collapsible */
.sa-upcoming-section__content[hidden] {
    display: none !important;
}

/* Remove default padding */
.woocommerce-checkout #payment ul.payment_methods {
    padding: 0 !important;
    border: 0 !important;
}

/* Turn each payment method into a card */
.woocommerce-checkout #payment ul.payment_methods li {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 16px 18px !important;
    margin-bottom: 10px !important;
    background: #fff;
    cursor: pointer;
}

/* Make payment labels easier to click */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline-block;
    width: calc(100% - 35px);
    cursor: pointer;
    font-weight: 500;
}

/* Remove the unnecessary description box */
.woocommerce-checkout #payment .payment_box {
    display: none !important;
}
.woocommerce-checkout #payment ul.payment_methods li:has(input:checked) {
    border: 2px solid #5b21f4;
    background: #faf9ff;
}
/* Payment labels */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
}

/* Shared icon styling */
label[for="payment_method_inicis_subscription"]::before,
label[for="payment_method_kakaopay_subscription"]::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Credit card icon */
label[for="payment_method_inicis_subscription"]::before {
    width: 30px;
    height: 30px;
    background-image: url("https://comfortableactors.com/wp-content/uploads/2026/09/cardicon.png");
}

/* KakaoPay icon */
label[for="payment_method_kakaopay_subscription"]::before {
    width: 50px;
    height: 25px;
    background-image: url("https://comfortableactors.com/wp-content/uploads/2026/09/D09DB863-EA20-4EA4-80FC-8014367B3E12_1_201_a.jpeg");
}

/* =========================================================
   SUCCESS ACTOR — NEXT LIVE
   ========================================================= */

.sa-live-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin: 0 0 45px;
    padding: 21px 22px;

    background: #111;
    border-radius: 12px;

    color: #fff;
}

.sa-live-banner__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;

    flex: 1 1 auto;
    min-width: 0;
}

.sa-live-banner__eyebrow {
    color: #b997ff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
}

.sa-live-banner__title {
    color: #fff !important;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.sa-live-banner__date {
    color: rgba(255,255,255,.6);
    font-size: 12px;
    line-height: 1.4;
}


/* Right side */

.sa-live-banner__right {
    display: flex;
    align-items: center;
    gap: 20px;

    flex: 0 0 auto;
}


/* Countdown */

.sa-live-countdown {
    display: flex;
    align-items: center;
    gap: 5px;
}
.sa-live-countdown[hidden] {
    display: none !important;
}

.sa-live-countdown__unit {
    min-width: 43px;
    text-align: center;
}

.sa-live-countdown__unit strong {
    display: block;

    color: #fff;
    font-size: 20px;
    line-height: 1.1;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

.sa-live-countdown__unit span {
    display: block;

    margin-top: 4px;

    color: rgba(255,255,255,.45);
    font-size: 9px;
    line-height: 1;
}


/* Live now */

.sa-live-banner__live-now {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.sa-live-banner__live-now[hidden] {
    display: none !important;
}

.sa-live-banner__dot {
    width: 8px;
    height: 8px;

    background: #ff4747;
    border-radius: 999px;
}


/* Join button */

.sa-live-banner__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 14px;

    background: #a22a34;
    border-radius: 8px;

    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;

    text-decoration: none !important;

    white-space: nowrap;
}

.sa-live-banner__button:hover {
    background: #a22a34;
}


/* =========================================================
   LIVE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sa-live-banner {
        flex-direction: column;
        align-items: stretch;

        gap: 18px;

        padding: 18px 17px;
        margin-bottom: 50px;
    }

    .sa-live-banner__title {
        font-size: 16px;
    }

    .sa-live-banner__right {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .sa-live-countdown {
        width: 100%;
        justify-content: space-between;
    }

    .sa-live-countdown__unit {
        flex: 1 1 25%;
        min-width: 0;
    }

    .sa-live-countdown__unit strong {
        font-size: 21px;
    }

    .sa-live-banner__button {
        width: 100%;
        padding: 12px 14px;
    }
}
/* LIVE COUNTDOWN — force readable colors */

.woocommerce-account .sa-live-countdown__unit strong {
    color: #ffffff !important;
}

.woocommerce-account .sa-live-countdown__unit span {
    color: rgba(255,255,255,.52) !important;
}

.woocommerce-account .sa-live-banner__date {
    color: rgba(255,255,255,.62) !important;
}

.woocommerce-account .sa-live-banner__title {
    color: #ffffff !important;
}

/* =========================================================
   SUCCESS ACTOR — MOBILE DASHBOARD TIGHTENING
   ========================================================= */

@media (max-width: 700px) {

    /* Less empty space between account tabs and portal */
    .woocommerce-account .woocommerce-MyAccount-navigation {
        margin-bottom: 1rem !important;
    }

    .woocommerce-account .sa-portal-sections {
        margin-top: 1.15rem !important;
    }


    /* Slightly more compact live card */
    .woocommerce-account .sa-live-banner {
        padding: 16px !important;
        gap: 14px !important;
    }

    .woocommerce-account .sa-live-banner__right {
        gap: 11px !important;
    }

    .woocommerce-account .sa-live-banner__copy {
        gap: 3px !important;
    }

    .woocommerce-account .sa-live-countdown__unit strong {
        font-size: 20px !important;
    }

    .woocommerce-account .sa-live-banner__button {
        padding: 11px 14px !important;
    }
}

/* =========================================================
   SUCCESS ACTOR — PERSONAL TRAINING SUMMARY
   ========================================================= */

.sa-training-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    margin: 0px 0 14px;
    padding: 22px 24px;

    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 12px;
}

.sa-training-summary__heading {
    display: flex;
    flex-direction: column;
    gap: 3px;

    flex: 1 1 auto;
    min-width: 0;
}

.sa-training-summary__eyebrow {
    color: #6501ff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .08em;
}

.sa-training-summary__title {
    color: #111 !important;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.sa-training-summary__description {
    color: #888;
    font-size: 12px;
    line-height: 1.4;
}


/* Stats */

.sa-training-summary__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    flex: 0 0 auto;
    min-width: 390px;
}

.sa-training-stat {
    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 3px 22px;

    text-align: center;
}

.sa-training-stat + .sa-training-stat {
    border-left: 1px solid #e6e6e6;
}

.sa-training-stat__number {
    color: #111 !important;

    font-size: 25px;
    line-height: 1.1;
    font-weight: 800;

    font-variant-numeric: tabular-nums;
}

.sa-training-stat__label {
    margin-top: 6px;

    color: #777;
    font-size: 11px;
    line-height: 1.25;

    white-space: nowrap;
}


/* =========================================================
   TRAINING SUMMARY — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sa-training-summary {
        flex-direction: column;
        align-items: stretch;

        gap: 18px;

        margin: 0px 0 12px;
        padding: 18px 17px;
    }

    .sa-training-summary__title {
        font-size: 16px;
    }

    .sa-training-summary__stats {
        min-width: 0;
        width: 100%;
    }

    .sa-training-stat {
        padding: 2px 8px;
    }

    .sa-training-stat__number {
        font-size: 24px;
    }

    .sa-training-stat__label {
        font-size: 10px;
        white-space: normal;
    }
}

.sa-training-stat--action {
    appearance: none;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    cursor: pointer;
}

.sa-training-stat--action .sa-training-stat__label {
    color: #6501ff !important;
    font-weight: 700;
}

.sa-training-stat--action .sa-training-stat__number {
    transition: color .15s ease;
}

.sa-training-stat--action:hover,
.sa-training-stat--action:focus,
.sa-training-stat--action:active {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.sa-training-stat--action:hover .sa-training-stat__number,
.sa-training-stat--action:focus .sa-training-stat__number {
    color: #6501ff !important;
}

.sa-download-card--highlight {
    box-shadow:
        0 0 0 1px rgba(101,1,255,.18),
        0 22px 40px rgba(0,0,0,.08);
    transform: translateY(-2px);
}

.sa-training-summary__empty {
    max-width: 430px;
    margin-top: 14px;
    padding: 13px 15px;

    background: #f7f2ff;
    border: 1px solid #e8ddff;
    border-radius: 8px;

    color: #666;
    font-size: 12px;
    line-height: 1.55;
}

.sa-training-summary__empty[hidden] {
    display: none !important;
}

.sa-training-summary__empty strong {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 4px;

    color: #111;
    font-size: 12px;
    font-weight: 800;
}

.sa-training-summary__empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    background: #6501ff;
    color: #fff;

    border-radius: 50%;

    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.sa-training-summary__empty > span {
    display: block;
}

/* ========================================
   SUCCESS ACTOR — LIVE REPLAY (Zoom-like)
======================================== */

.sa-live-banner.is-replay .sa-live-banner__eyebrow {
    color: #90c2ff;
}

.sa-live-banner.is-replay .sa-live-banner__button {
    background: #0E71EB;
    border-radius: 10px;
    box-shadow: none;
}

.sa-live-banner.is-replay .sa-live-banner__button:hover {
    background: #0B5FCC;
}

.sa-live-banner.is-replay .sa-live-banner__button:focus,
.sa-live-banner.is-replay .sa-live-banner__button:active {
    background: #0B5FCC;
}

.sa-live-banner.is-replay [data-replay-status] {
    color: rgba(255,255,255,.78);
}

.sa-live-banner.is-replay {
    box-shadow: inset 0 0 0 1px rgba(14,113,235,.18);
}

/* =========================================================
   WEEKLY TRAINING — NEXT WEEK
   ========================================================= */

.sa-weekly-next {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    column-gap: 24px;

    margin: 18px 0 60px;
    padding: 22px 24px;

    background: #fbf9ff;
border: 1px solid #e8ddff;
border-radius: 12px;
	box-shadow: 0 6px 20px rgba(111, 44, 255, 0.04);
}

.sa-weekly-next__meta {
    grid-column: 1;
    grid-row: 1;

    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 7px;
}

.sa-weekly-next__eyebrow {
    color: #6f2cff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
}

.sa-weekly-next__date {
    color: #aaa;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}

.sa-weekly-next__title {
    grid-column: 1;
    grid-row: 2;

    margin: 0 !important;

    color: #111;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700 !important;
    letter-spacing: -.02em;
}

.sa-weekly-next__description {
    grid-column: 1;
    grid-row: 3;

    margin: 5px 0 0 !important;

    color: #888;
    font-size: 12px;
    line-height: 1.55;
}

.sa-weekly-next__button {
    grid-column: 2;
    grid-row: 1 / 4;

    align-self: center;
    justify-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 16px;

    background: #f1eaff;
    border-radius: 9px;

    color: #6f2cff !important;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

.sa-weekly-next__button:hover {
    background: #f1eaff;
    color: #5720d6 !important;
}


/* Mobile */

@media (max-width: 700px) {

    .sa-weekly-next {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 12px;

        margin: 14px 0 60px;
        padding: 18px;
    }

    .sa-weekly-next__meta {
        gap: 7px;
        margin-bottom: 6px;
    }

    .sa-weekly-next__eyebrow {
        font-size: 10px;
    }

    .sa-weekly-next__date {
        font-size: 11px;
    }

    .sa-weekly-next__title {
        font-size: 17px;
        font-weight: 700 !important;
    }

    .sa-weekly-next__description {
        padding-right: 4px;
        font-size: 13px;
    }

    .sa-weekly-next__button {
        width: auto;
        padding: 11px 13px;
        font-size: 12px;
    }
}

/* =========================================================
   WEEKLY TRAINING — CURRENT WEEK
   ========================================================= */

.sa-weekly-current {
    position: relative;
    overflow: hidden;

    margin: 18px 0 18px;
    padding: 26px 28px 22px ;

    background:
        radial-gradient(
            circle at 92% 0%,
            rgba(111, 44, 255, .18),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #111 0%,
            #121212 65%,
            #171222 100%
        );

    border: 1px solid #29252f;
    border-radius: 14px;

    color: #fff;
}
/* Extra space when normal sections follow directly */
.sa-weekly-current + .sa-portal-section {
    margin-top: 48px;
}
@media (max-width: 700px) {
    .sa-weekly-current + .sa-portal-section {
        margin-top: 40px;
    }
}


/* Meta */

.sa-weekly-current__meta {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
}

.sa-weekly-current__eyebrow {
    color: #b997ff;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .06em;
}

.sa-weekly-current__date {
    color: #858585;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
}


/* Title */

.woocommerce-account .sa-weekly-current__title {
    margin: 0 !important;

    color: #fff !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

.sa-weekly-current__range {
    margin: 5px 0 0 !important;

    color: #888;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}


/* Description */

.sa-weekly-current__description {
    margin: 8px 0 20px !important;

    color: #aaa;
    font-size: 13px;
    line-height: 1.6;
}


/* LIVE STATUS */

.sa-weekly-live-status__left strong {
    color: inherit !important;
}

.sa-weekly-live-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    margin: 0 0 18px;
    padding: 10px 14px;

    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 9px;
}

.sa-weekly-live-status__left {
    display: flex;
    align-items: center;
    gap: 8px;

    color: #e8e8e8;
    font-size: 12px;
}

.sa-weekly-live-status__dot {
    width: 7px;
    height: 7px;

    background: #ff3b30;
    border-radius: 50%;
}

.sa-weekly-live-status__countdown {
    color: #fff;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.sa-weekly-live-status.is-live {
    border-color: rgba(111,44,255,.35);
    background: rgba(111,44,255,.08);
}

.sa-weekly-live-status.is-live
.sa-weekly-live-status__dot {
    background: #7b35ff;
    box-shadow: 0 0 0 4px rgba(111,44,255,.14);
}

.sa-weekly-live-status.is-live
.sa-weekly-live-status__left {
    color: #c7adff;
}

.sa-weekly-live-status.is-ended {
    opacity: 1;
}

.sa-weekly-live-status.is-ended
.sa-weekly-live-status__left {
    color: #2d8cff !important;
}
.sa-weekly-live-status.is-ended
[data-weekly-live-label] {
    color: #2d8cff !important;
}

.sa-weekly-live-status.is-ended
.sa-weekly-live-status__countdown {
    color: #aaa !important;
}


/* Actions */

.sa-weekly-current__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.sa-weekly-current__button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 16px;

    border-radius: 9px;

    font-size: 14px;
    line-height: 1.3;
    font-weight: 750;
    text-decoration: none !important;
    white-space: nowrap;
}


/* Lecture */

.sa-weekly-current__button--lecture {
    background: #24232a;
    border: 1px solid #3a3741;

    color: #fff !important;
}

.sa-weekly-current__button--lecture:hover {
    background: #2c2a33;
    color: #fff !important;
}


/* Live / Replay */

.sa-weekly-current__button--live {
    background: #6f2cff;
    border: 1px solid #7c3cff;

    color: #fff !important;
}

.sa-weekly-current__button--live:hover {
    background: #5f22e8;
    color: #fff !important;
}


/* =========================================================
   COMPLETION
   ========================================================= */

.sa-weekly-complete {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;

    width: 100%;

    margin-top: 22px;
    padding: 20px 0 0;

    background: transparent !important;
    border: 0 !important;
    border-top: 1px solid #302e34 !important;
    border-radius: 0 !important;

    text-align: left;

    cursor: pointer;
}


/* Checkbox */

.sa-weekly-complete__check {
    grid-column: 1;
    grid-row: 1 / 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 2px solid #858585;
    border-radius: 7px;

    color: transparent;

    font-size: 14px;
    line-height: 1;

    transition:
        background .15s ease,
        border-color .15s ease;
}


/* Main completion label */

.sa-weekly-complete__label {
    grid-column: 2;
    grid-row: 1;

    color: #e2e2e2;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 750;
}


/* Helper sentence */

.sa-weekly-complete__label::after {
    content: "강의를 확인하고 연습했다면 직접 체크하세요.";

    display: block;
    margin-top: 3px;

    color: #777;
    font-size: 11px;
    line-height: 1.45;
    font-weight: 500;
}


/* Completed */

.sa-weekly-complete.is-complete
.sa-weekly-complete__check {
    background: #6f2cff;
    border-color: #6f2cff;
    color: #fff;
}

.sa-weekly-complete.is-complete
.sa-weekly-complete__label {
    color: #cdbaff;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .woocommerce-account .sa-weekly-current__title {
        font-size: 18px !important;
        line-height: 1.4 !important;
        font-weight: 800 !important;
    }

    .sa-weekly-current__range {
        margin-top: 4px !important;
        font-size: 11px;
    }

    .sa-weekly-current__description {
        margin: 6px 0 17px !important;
        font-size: 12px;
    }

    .sa-weekly-live-status {
        gap: 10px;
        margin-bottom: 15px;
        padding: 11px 12px;
    }

    .sa-weekly-live-status__left {
        font-size: 11px;
    }

    .sa-weekly-live-status__countdown {
         font-size: 14px;
        font-weight: 800;
}

    .sa-weekly-current__actions {
        gap: 8px;
    }

    .sa-weekly-current__button {
        min-height: 44px;
        padding: 10px 8px;
        font-size: 12px;
    }

    .sa-weekly-complete {
        grid-template-columns: 28px 1fr;
        column-gap: 11px;

        margin-top: 18px;
        padding-top: 17px;
    }

    .sa-weekly-complete__check {
        width: 26px;
        height: 26px;

        border-width: 2px;
        border-radius: 6px;
    }

    .sa-weekly-complete__label {
        font-size: 13px;
        font-weight: 750;
    }

    .sa-weekly-complete__label::after {
        margin-top: 2px;
        font-size: 10px;
    }
}

/* =========================================================
   WEEKLY TRAINING — REPLAY STATE
   ========================================================= */

.sa-weekly-live-status.is-ended {
    background: rgba(14, 113, 235, 0.08);
    border-color: rgba(45, 140, 255, 0.22);
}

.sa-weekly-live-status.is-ended .sa-weekly-live-status__dot {
    background: #2d8cff;
}

.sa-weekly-live-status.is-ended .sa-weekly-live-status__label {
    color: #2d8cff !important;
}

.sa-weekly-live-status.is-ended .sa-weekly-live-status__countdown {
    color: #9fc7ff !important;
}

.sa-weekly-current__button--live.is-replay {
    background: #0e71eb !important;
    border: 1px solid #0e71eb !important;
    color: #fff !important;
}

.sa-weekly-current__button--live.is-replay:hover {
    background: #0b5fd0 !important;
    border-color: #0b5fd0 !important;
    color: #fff !important;
}

/* =========================================================
   WEEKLY TRAINING — ARCHIVE
   ========================================================= */

.sa-weekly-archive {
    margin-top: 48px;
}

.sa-weekly-archive__header {
    margin-bottom: 16px;
}

.woocommerce-account .sa-weekly-archive__title {
    margin: 0 !important;

    color: #111;
    font-size: 22px !important;
    line-height: 1.35;
    font-weight: 800 !important;
    letter-spacing: -.02em;
}

.sa-weekly-archive__description {
    margin: 5px 0 0 !important;

    color: #888;
    font-size: 13px;
    line-height: 1.55;
}


/* List */

.sa-weekly-archive__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


/* Row */

.sa-weekly-archive__item {
    display: grid;
    grid-template-columns: 115px minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 18px;

    padding: 17px 20px;

    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
}


/* Date — now first */

.sa-weekly-archive__date {
    color: #92929b !important;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 650;

    white-space: nowrap;
    text-decoration: none !important;
}


/* Title */

.sa-weekly-archive__item-title {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #181818 !important;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 750;

    text-decoration: none !important;
}


/* Clickable completion badge */

button.sa-weekly-archive__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 11px;

    border: 0;
    border-radius: 999px;

    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    font-weight: 750;

    white-space: nowrap;
    cursor: pointer;
}

.sa-weekly-archive__status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    font-size: 10px;
}


/* Complete */

.sa-weekly-archive__status.is-complete {
    background: #eaf8f0;
    color: #169b57;
}

.sa-weekly-archive__status.is-complete
.sa-weekly-archive__status-icon {
    background: #24bd71;
    color: #fff;
}


/* Incomplete */

.sa-weekly-archive__status.is-incomplete {
    background: #f2f2f5;
    color: #85858f;
}

.sa-weekly-archive__status.is-incomplete
.sa-weekly-archive__status-icon {
    background: #aaaab2;
    color: #fff;
}


/* Chevron */

.sa-weekly-archive__chevron {
    color: #9b9ba4 !important;
    font-size: 24px;
    line-height: 1;

    text-decoration: none !important;
}


/* Hover */

.sa-weekly-archive__date:hover,
.sa-weekly-archive__item-title:hover,
.sa-weekly-archive__chevron:hover {
    color: #6f2cff !important;
}


/* Mobile */

@media (max-width: 700px) {

    .sa-weekly-archive__item {
        grid-template-columns: auto minmax(0, 1fr) auto 12px;
        gap: 9px;

        padding: 14px 13px;
    }

    .sa-weekly-archive__date {
        font-size: 10px;
    }

    .sa-weekly-archive__item-title {
        font-size: 13px;
    }

    button.sa-weekly-archive__status {
        padding: 6px 8px;
        font-size: 10px;
    }

    .sa-weekly-archive__status-icon {
        width: 14px;
        height: 14px;
        font-size: 8px;
    }

    .sa-weekly-archive__chevron {
        font-size: 20px;
    }
}
.sa-weekly-current__actions--single {
    grid-template-columns: 1fr;
}

@media (max-width: 700px) {

    .sa-weekly-live-status.is-ended {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .sa-weekly-live-status.is-ended
    .sa-weekly-live-status__left {
        width: 100%;
    }

    .sa-weekly-live-status.is-ended
    .sa-weekly-live-status__countdown {
        width: 100%;
        white-space: normal;
        font-size: 12px;
        line-height: 1.45;
        font-weight: 600;
    }
}