/**
 * OClass Profile Page Styling
 * Improved and optimized version
 */

#reward-successfully-redeem-modal .title {
  font-size: 20px;
  font-weight: 600;
  color: #434655;
  text-align: center;
}
#reward-successfully-redeem-modal .sub-title {
  text-align: center;
  padding-top: 10px;
  color: #434655;
}
#reward-successfully-redeem-modal .sub-title a {
  color: var(--ocw-sec-text-color);
}
.loyalty-loading-item {
  margin-bottom: 20px;
}
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

.ocw-loyalty-rewards-container {
  color: #000;
}

.no-rewards {
  font-weight: 700;
  text-align: center;
  margin-top: 30px !important;
  margin-bottom: 30px !important;
  grid-column: 1 / -1; /* 👈 spans all 3 columns */
}

/* === GRID LAYOUT === */
.ocw-loyalty-rewards-container .ocw-loyalty-rewards-grid {
  display: grid;
  grid-template-columns: 60% auto;
  gap: 12px;
}

/* === REWARDS LIST === */
.ocw-loyalty-rewards-container .loyalty-rewards-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 48px 0 12px;
  position: relative;
}

/* === REWARD CARD === */
.loyalty-reward {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 14px 1px #00000014;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.fully-redeemed-overlay {
  position: absolute;
  top: 30%;
  left: 0;
  right: 0;
  margin: auto;
  background-color: #df4588;
  color: white;
  text-align: center;
  font-weight: bold;
  padding: 6px 12px;
  transform: rotate(-20deg);
  width: max-content;
  z-index: 10;
  border-radius: 3px;
  font-size: 13px;
}

/* === PLAN & PRODUCT SECTIONS === */
.loyalty-reward .plan-detail,
.loyalty-reward .product-detail {
  padding: 16px 14px;
  border: 0.1px solid #9797973b;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  height: 65px;
}

.loyalty-reward .plan-title,
.loyalty-reward .product-title {
  text-align: center;
  font-size: 11px;
  line-height: 1.4;
  font-weight: 600;
}

/* === REWARD DETAILS === */
.loyalty-reward .reward-detail {
  padding: 16px 14px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.reward-detail .reward-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.reward-detail .reward-desc {
  font-size: 11px;
}

/* === POINTS BADGE === */
.reward-detail .reward-points {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 14px;
  background: var(--ocw-sec-cta-bg-color, #c4d0f5) !important;
  color: var(--ocw-sec-cta-color, #5069b1) !important;
}

.reward-points .points {
  font-size: 11px;
  font-weight: 600;
}

.reward-points img {
  width: 16px;
}

/* === BACKGROUND IMAGES === */
.loyalty-rewards-list .bg-img-01,
.loyalty-rewards-list .bg-img-02,
.loyalty-rewards-list .bg-img-04,
.loyalty-rewards-list .bg-img-05 {
  position: absolute;
  z-index: -9;
}

.bg-img-01 {
  top: -25px;
  left: -19px;
  width: 54px;
}

.bg-img-02 {
  bottom: -30px;
  left: -19px;
  width: 54px;
}

.bg-img-04 {
  top: -70px;
  right: 0;
  width: 104px;
}

.bg-img-05 {
  top: -70px;
  left: 50%;
  width: 104px;
}

/* Loyalty Reward Detail modal css */
.loyalty-reward-detail .title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.loyalty-reward-detail .title-container .title {
  font-size: 16px;
  font-weight: 600;
}

.loyalty-reward-detail .title-container .reward-points {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--ocw-sec-cta-bg-color, #c4d0f5) !important;
  color: var(--ocw-sec-cta-color, #5069b1) !important;
}

.loyalty-reward-detail .title-container .reward-points .points {
  font-weight: 600;
  font-size: 13px;
}

.loyalty-reward-detail .title-container .reward-points img {
  width: 18px;
}
.loyalty-reward-detail .redeem-form-section {
  margin-top: 14px;
}
.loyalty-reward-detail .redeem-form-section label {
  font-weight: 600;
  margin-bottom: 6px;
}

.loyalty-reward-detail .start-date {
  font-weight: 600;
  padding-bottom: 8px;
}

.loyalty-reward-detail .reward .description {
  font-size: 13px;
  padding-top: 6px;
}

.loyalty-reward-detail .notes-input-group {
  margin-bottom: 0px !important;
}

.loyalty-reward-detail .redeem-action {
  padding-top: 16px;
}

.loyalty-reward-detail .redeem-action button {
  width: 100%;
  font-weight: 600;
  border-radius: 6px;
}

.loyalty-reward-detail .ql-container {
  padding-top: 16px;
  height: auto;
  font-size: 13px;
  position: relative;
}
.loyalty-reward-detail .ql-container.ql-container-margin {
  padding-bottom: 30px;
}
.loyalty-reward-detail .ql-container .ql-editor {
  padding: 0px;
}
.loyalty-reward-detail .button-wrapper .read-button {
  background-color: transparent;
  color: var(--ocw-sec-text-color);
  bottom: 0px;
  display: flex;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 0px;
  border: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.loyalty-reward-detail p{
    margin-bottom: 1px !important;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1100px) {
  .ocw-loyalty-rewards-container .ocw-loyalty-rewards-grid {
    grid-template-columns: 50% auto;
  }

  .ocw-loyalty-rewards-container .loyalty-rewards-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .ocw-loyalty-rewards-container .ocw-loyalty-rewards-grid {
    grid-template-columns: 100%;
  }

  .bg-img-05 {
    top: -30px;
    left: 30%;
  }
}

@media (max-width: 468px) {
  .ocw-loyalty-rewards-container .loyalty-rewards-list {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Loyalty Points available css */
.available-points-desktop {
  display: block;
}
.available-points-mobile {
  display: none;
}

.available-points-banner {
  color: var(--ion-color-dark-grey);
  border: 1.5px solid #d6a361;
  border-radius: 10px;
  padding: 22px 20px;
  background-color: #fff;
  background-size: 50%;
  margin-bottom: 20px;
}

.available-points-banner .available-points {
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.available-points-banner .available-points-count {
  font-size: 24px;
  font-weight: 700;
}

.available-points-banner .available-points-desc {
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  margin-top: 6px;
  width: 73%;
}

/* Media Queries */

@media (max-width: 1280px) {
  .available-points-banner {
    background-position: 177% 38%;
    background-repeat: no-repeat;
    background-size: 71%;
  }

  .available-points-banner .available-points-desc {
    width: 60%;
  }
}

@media (max-width: 992px) {
  .available-points-banner {
    padding: 22px 16px;
    background-size: 88%;
    background-position: 351% 36%;
  }
}

/* Accumulate Points and Points History UI CSS */

.accumulate-point {
  margin-bottom: 20px;
}
.loyalty-remarks {
  font-size: 13px;
  padding: 0px 20px;
  padding-top: 12px;
  color: #434655;
}
.points-history,
.accumulate-point {
  border-radius: 10px;
  background-color: #fff;
  padding-top: 18px;
  padding-bottom: 18px;
  box-shadow: 0px 0px 9.4px 0px rgba(0, 0, 0, 0.1);
}
.points-history-label,
.accumulate-point-label {
  padding: 0px 20px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}
.points-history-list,
.accumulate-point-list {
  padding: 0px 20px;
  min-height: 195px;
  max-height: 195px;
  overflow: auto;
}
.accumulate-point-item {
  border: 1px solid #97979733;
  border-radius: 5px;
  margin-bottom: 5px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 4px;
  padding-right: 10px;
}
.accumulate-point-item .accumulate-point-row {
  display: flex;
  align-items: center;
}
.accumulate-point-item .accumulate-point-row img.accumulate-icon {
  background-color: #ffe7c0;
  padding: 8px;
  margin: 0;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
  min-width: 74px;
  max-width: 74px;
  min-height: 60px;
}
.accumulate-point-item .accumulate-point-row .accumulate-point-info {
  margin-left: 8px;
  flex: 1 1 0;
}
.accumulate-point-item
  .accumulate-point-row
  .accumulate-point-info
  .accumulate-point-title {
  font-size: 13px;
  font-weight: 600;
  color: #434655;
}
.accumulate-point-item
  .accumulate-point-row
  .accumulate-point-info
  .accumulate-point-des {
  font-size: 11px;
  padding-top: 2px;
  color: #6e6e6e;
  line-height: 1.2em;
}
.accumulate-point-item
  .accumulate-point-row
  .accumulate-point-info
  .accumulate-point-des
  span {
  color: #5069af !important;
}
.accumulate-point-required {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 12px;
}
.accumulate-point-required .reward-points {
  background: var(--ocw-sec-cta-bg-color, #c4d0f5) !important;
  color: var(--ocw-sec-cta-color, #5069b1) !important;
  display: inline-flex;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.accumulate-point-required .reward-points .points {
  font-size: 11px;
  font-weight: 600;
}
.accumulate-point-required .reward-points img {
  width: 16px;
}

.points-history-list .points-history-item {
  border-bottom: 1px solid #97979733;
  margin-bottom: 8px;
  padding-bottom: 6px;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.points-history-list .points-history-item .points-history-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.points-history-list .points-history-item img.point-icon {
  width: 46px;
}
.points-history-item .points-history-row .history-points-info {
  flex: 1 1 0;
}
.points-history-item .points-history-row .history-points-info .type {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}
.points-history-item .points-history-row .history-points-info .reason {
  font-size: 11px;
  font-weight: 400;
}
.points-history-item .balance-wrap {
  text-align: right;
}
.points-history-item .balance-wrap .point-balance {
  font-size: 16px;
  color: #13c880;
  font-weight: 600;
}
.points-history-item .balance-wrap .point-balance.negative {
  color: #eb585c;
}
.points-history-item .balance-wrap .created {
  font-size: 11px;
}
.points-history .no-history,
.accumulate-point .no-history {
  text-align: center;
  margin-top: 100px;
}

.start_data_div{
    position: relative;
}

.start_data_div .form-control.input{
  margin: 10px 0;
  font-size: 14px;
  background: none;
  width: 100%;
  padding: 8px 15px 8px 35px !important;
}

.start_data_div::after {
  content: '\f073';
  font-family: 'Font Awesome 5 Free' !important;
  font-weight: 900;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
}

@media (max-width: 768px) {
  .available-points-desktop {
    display: none !important;
  }
  .available-points-mobile {
    display: block !important;
  }
  .accumulate-point-required .reward-points .points {
    font-size: 9px;
  }
  .accumulate-point-item .accumulate-point-row img.accumulate-icon {
    min-width: 50px;
    max-width: 50px;
  }
  .accumulate-point-item
    .accumulate-point-row
    .accumulate-point-info
    .accumulate-point-title {
    font-size: 11px;
  }
  .accumulate-point-item
    .accumulate-point-row
    .accumulate-point-info
    .accumulate-point-des {
    font-size: 9px;
  }
}
