
.cp-portal.cpsl{
  max-width: 720px;
  margin: 0 auto;
  padding: 12px;
  font-size: 16px;
  line-height: 1.4;
}

.cpsl-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.cpsl-header__title{
  font-weight:700;
  font-size:18px;
}

.cpsl-header__nav{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.cpsl-week{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.cpsl-day{
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  padding:12px;
  background:#fff;
}

.cpsl-day__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

.cpsl-day__status{
  display:flex;
  align-items:center;
  gap:10px;
}

.cpsl-day__date{
  font-weight:700;
}

.cpsl-badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:13px;
  border:1px solid rgba(0,0,0,.14);
  background:rgba(0,0,0,.03);
}

.cpsl-badge--work{ }
.cpsl-badge--off{ }
.cpsl-badge--none{ }

.cpsl-editor{
  margin-top:6px;
}

.cpsl-editor.is-collapsed{display:none;}

.cpsl-form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.cpsl-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.cpsl-row label{
  min-width: 46px;
  font-weight:600;
}

.cpsl-select{
  width: 160px;
  padding:10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  background:#fff;
}

.cpsl-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.cpsl-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.18);
  text-decoration:none;
  cursor:pointer;
  font-weight:600;
  background:#fff;
}

.cpsl-btn--mini{
  padding:8px 10px;
  border-radius:999px;
  font-size:14px;
  line-height:1;
}

.cpsl-btn--primary{
  background:#111;
  color:#fff;
  border-color:#111;
}

.cpsl-btn--danger{
  background:#fff;
  color:#b00020;
  border-color: rgba(176,0,32,.35);
}

.cpsl-btn--ghost{
  background:#fff;
}

.cpsl-btn.disabled,
.cpsl-btn[aria-disabled="true"]{
  opacity:.45;
  pointer-events:none;
}

.cpsl-notice{
  margin: 10px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.15);
  background: rgba(0,0,0,.03);
}

.cpsl-notice--success{
  background: rgba(0,128,0,.08);
  border-color: rgba(0,128,0,.2);
}

.cpsl-notice--error{
  background: rgba(176,0,32,.08);
  border-color: rgba(176,0,32,.2);
}

.cpsl-hint{
  font-size: 13px;
  opacity: .8;
}

@media (max-width: 420px){
  .cpsl-row{
    flex-direction:column;
    align-items:flex-start;
  }
  .cpsl-select{
    width: 100%;
  }
  .cpsl-day__top{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* Ensure edit button text is visible */
.cp-portal.cpsl .cpsl-btn--mini{ color: #1d4ed8; }
.cp-portal.cpsl .cpsl-btn--ghost{ color: #1d4ed8; }


/* Weekend / Holiday date coloring */
.cpsl-day--sat .cpsl-day__date{ color:#2b6cb0; font-weight:700; }
.cpsl-day--sun .cpsl-day__date{ color:#c53030; font-weight:700; }
.cpsl-day--holiday .cpsl-day__date{ color:#d53f8c; font-weight:800; }

/* Ensure ghost buttons remain readable on hover (theme overrides) */
.cp-portal.cpsl .cpsl-btn--ghost,
.cp-portal.cpsl .cpsl-btn--ghost:visited{ color:#111 !important; }
.cp-portal.cpsl .cpsl-btn--ghost:hover,
.cp-portal.cpsl .cpsl-btn--ghost:focus{ color:#111 !important; background:#e6e6e6 !important; text-decoration:none !important; }

/* Save feedback animation */
.cpsl-day.cpsl-day--flash{ animation: cpslFlash 700ms ease-out 1; }
@keyframes cpslFlash{
  0%{ transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
  35%{ transform: scale(1.01); box-shadow: 0 0 18px rgba(0,0,0,0.18); }
  100%{ transform: scale(1); box-shadow: 0 0 0 rgba(0,0,0,0); }
}
