/**
 * CozyCat Profile Manager Styles
 * Matches the design from the provided screenshot
 */

.cozycat-wrapper {
  max-width: 100%;
  margin: 0 auto;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.cozycat-header {
  background-color: var(--beige);
  padding: 20px;
  margin-bottom: 20px;
}

.cozycat-header h3 {
  margin: 0;
  color: var(--red);
  font-size: 18px;
  font-weight: normal;
}

.cozycat-no-cats {
  background-color: var(--beige);
  padding: 30px;
  text-align: center;
  color: var(--red);
  margin-bottom: 20px;
}

.cozycat-cats-list {
  margin-bottom: 30px;
}

.cozycat-cat-item {
  background-color: var(--beige);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.cozycat-cat-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cozycat-cat-info {
  flex: 1;
}

.cozycat-cat-info strong {
  color: var(--red);
  font-size: 16px;
  margin-right: 15px;
}

.cozycat-breed {
  color: var(--red);
  font-size: 16px;
}

.cozycat-cat-actions {
  display: flex;
  gap: 10px;
}

.cozycat-btn-edit,
.cozycat-btn-delete {
  background-color: var(--red);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

.cozycat-btn-edit:hover {
  background-color: var(--red);
}

.cozycat-btn-delete {
  background-color: var(--red);
}

.cozycat-btn-delete:hover {
  background-color: var(--red);
}

.cozycat-form-wrapper {
  background-color: var(--red);
  padding: 40px;
  border-radius: 8px;
  margin-top: 30px;
}

.cozycat-form-header {
  background-color: var(--beige);
  padding: 20px 30px;
  margin: -40px -40px 30px -40px;
  border-radius: 8px 8px 0 0;
  text-align: center;
}

.cozycat-form-header h3 {
  margin: 0;
  color: var(--red);
  font-size: 20px;
  font-weight: normal;
}

.cozycat-cat-form {
  max-width: 900px;
  margin: 0 auto;
}

.cozycat-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.cozycat-form-group {
  display: flex;
  flex-direction: column;
}

.cozycat-form-group label {
  color: var(--beige);
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: normal;
}

.cozycat-input,
.cozycat-select,
.cozycat-textarea {
  width: 100%;
  padding: 12px 15px;
  border: none;
  border-radius: 25px;
  background-color: var(--beige);
  color: var(--red);
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
}

.cozycat-textarea {
  border-radius: 15px;
  resize: vertical;
  min-height: 80px;
}

.cozycat-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a4243' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.cozycat-file-upload {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--beige);
  padding: 12px 15px;
  border-radius: 25px;
}

.cozycat-btn-upload {
  background-color: var(--red);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 16px;
  white-space: nowrap;
  transition: background-color 0.3s;
}

.cozycat-btn-upload:hover {
  background-color: var(--red);
}

.cozycat-file-name {
  color: var(--red);
  font-size: 16px;
  flex: 1;
}

.cozycat-form-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.cozycat-btn {
  padding: 15px 50px;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  transition: all 0.3s;
}

.cozycat-btn-submit {
  background-color: var(--beige);
  color: var(--red);
}

.cozycat-btn-submit:hover {
  background-color: #fff;
  color: var(--red, #4a2028);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cozycat-btn-cancel {
  background-color: transparent;
  color: var(--beige);
  border: 2px solid var(--beige);
}

.cozycat-btn-cancel:hover {
  background-color: var(--beige);
  color: var(--red);
}

/* Loading state */
.cozycat-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.cozycat-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid var(--beige);
  border-top-color: transparent;
  border-radius: 50%;
  animation: cozycat-spin 0.8s linear infinite;
}

@keyframes cozycat-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success/Error messages */
.cozycat-message {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  font-size: 16px;
}

.cozycat-message.success {
  background-color: var(--beige);
  color: var(--red);
  border: 1px solid var(--red);
}

.cozycat-message.error {
  background-color: var(--beige);
  color: var(--red);
  border: 1px solid var(--red);
}

/* Responsive */
@media (max-width: 768px) {
  .cozycat-form-wrapper {
    padding: 20px;
  }

  .cozycat-form-header {
    margin: -20px -20px 20px -20px;
    padding: 15px;
  }

  .cozycat-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .cozycat-cat-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .cozycat-cat-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cozycat-form-actions {
    flex-direction: column;
  }

  .cozycat-btn {
    width: 100%;
  }
}

/* File preview */
.cozycat-file-preview {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--beige);
  border-radius: 8px;
}

.cozycat-file-preview img {
  max-width: 200px;
  height: auto;
  border-radius: 4px;
}

.cozycat-file-preview a {
  color: var(--red);
  text-decoration: none;
  font-size: 16px;
}

.cozycat-file-preview a:hover {
  text-decoration: underline;
}

/* Removable file field */
.cozycat-file-current {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: var(--beige);
  padding: 12px 15px;
  border-radius: 25px;
  margin-bottom: 10px;
}

.cozycat-file-preview-image {
  flex-shrink: 0;
}

.cozycat-file-preview-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cozycat-file-preview-link {
  flex: 1;
}

.cozycat-file-preview-link a {
  color: var(--red);
  text-decoration: none;
  font-size: 16px;
  word-break: break-all;
}

.cozycat-file-preview-link a:hover {
  text-decoration: underline;
}

.cozycat-file-remove {
  width: 28px;
  height: 28px;
  border: none;
  background-color: var(--red);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.cozycat-file-remove:hover {
  background-color: var(--red);
}

/* Empty state styling */
.cozycat-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--red);
}

.cozycat-empty-state-icon {
  font-size: 48px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.cozycat-empty-state h4 {
  color: var(--red);
  margin-bottom: 10px;
}

/* My Account Page */
.cozycat-my-account {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 50px;
  align-items: start;
  padding: 40px 0;
}

/* Page Heading - spans full width */
.cozycat-page-heading {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 34px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 5px;
  margin: 20px 0 40px 0;
  font-family: inherit;
}

/* Hide default WooCommerce navigation */
.cozycat-my-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-navigation {
  display: none !important;
}

/* Sidebar Navigation */
.cozycat-nav {
  grid-column: 1;
  grid-row: 2;
  background-color: #fff;
}

/* Profile header block */
.cozycat-nav-profile {
  background-color: var(--red);
  color: #fff;
  padding: 18px 25px;
  text-align: center;
}

.cozycat-nav-profile-label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cozycat-nav-profile-email {
  font-size: 16px;
  opacity: 0.85;
}

/* Section heading */
.cozycat-nav-section-heading {
  font-size: 20px;
  font-weight: 600;
  color: var(--red);
  padding: 25px 25px 12px;
}

/* Navigation list */
.cozycat-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cozycat-nav-item {
  margin: 0;
}

.cozycat-nav-link {
  display: block;
  padding: 10px 25px;
  background-color: transparent;
  color: var(--red);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.2s ease;
  border-radius: 0;
}

.cozycat-nav-link:hover {
  background-color: transparent;
  color: var(--red);
  text-decoration: underline;
}

.cozycat-nav-link.is-active {
  background-color: transparent;
  color: var(--red);
  font-weight: 600;
}

.cozycat-nav-signout {
  border-top: 1px solid #e0e0e0;
  margin-top: 15px;
  padding-top: 5px;
}

/* Account Content */
.cozycat-account-content {
  grid-column: 2;
  grid-row: 2;
  padding: 0 0 40px 0;
  min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .cozycat-my-account {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 0 15px;
  }

  .cozycat-page-heading {
    font-size: 24px;
    letter-spacing: 3px;
    margin: 10px 0 25px 0;
  }

  .cozycat-nav {
    grid-column: 1;
    grid-row: auto;
    border-right: none;
    padding-right: 0;
    margin-bottom: 20px;
  }

  .cozycat-account-content {
    grid-column: 1;
    grid-row: auto;
  }
}

/* Profile Form */
.cozycat-profile-form-wrapper {
  background-color: var(--red);
  padding: 40px;
  border-radius: 32px;
  max-width: 600px;
  margin: 0;
}

.cozycat-profile-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Section Headers */
.cozycat-section-header {
  text-align: center;
  margin: 20px 0 15px 0;
}

.cozycat-section-header:first-child {
  margin-top: 0;
}

.cozycat-section-header span {
  display: inline-block;
  background-color: var(--beige);
  color: var(--red);
  padding: 10px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Form Fields */
.cozycat-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}

.cozycat-field label {
  color: var(--beige);
  font-size: 16px;
  font-weight: normal;
}

.cozycat-field .cozycat-input,
.cozycat-field .cozycat-textarea,
.cozycat-field .cozycat-select {
  width: 100%;
  padding: 12px 18px;
  border: none;
  border-radius: 25px;
  background-color: var(--beige);
  color: var(--red);
  font-size: 16px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  border: 0px;
}

.cozycat-field .cozycat-input:focus,
.cozycat-field .cozycat-textarea:focus,
.cozycat-field .cozycat-select:focus {
  outline: none;
  /* background-color: #fff; */
}

.cozycat-field .cozycat-textarea {
  border-radius: 15px;
  resize: vertical;
  min-height: 80px;
}

/* Field Description */
.cozycat-field-description {
  margin: 10px 0;
}

.cozycat-field-description p {
  color: var(--beige);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

/* Form Actions in Profile */
.cozycat-profile-form .cozycat-form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.cozycat-profile-form .cozycat-form-actions .cozycat-btn-submit {
  background-color: var(--red);
  color: var(--beige);
  border: 0px;
}

.cozycat-profile-form .cozycat-form-actions .cozycat-btn-submit:hover {
  background-color: var(--red);
  color: var(--beige);
}

/* Responsive Profile Form */
@media (max-width: 768px) {
  .cozycat-profile-form-wrapper {
    padding: 25px;
    margin: 0 10px;
  }
}

/* Checkbox Fields */
.cozycat-field-checkbox {
  margin: 10px 0;
}

.cozycat-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  color: var(--beige);
  font-size: 16px;
  line-height: 1.4;
}

.cozycat-checkbox {
  display: none;
}

.cozycat-checkbox-dot {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.cozycat-checkbox:checked + .cozycat-checkbox-dot {
  background-color: var(--beige);
}

.cozycat-checkbox:checked + .cozycat-checkbox-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--red);
}

.cozycat-checkbox-text {
  flex: 1;
}

.cozycat-checkbox-text a,
.cozycat-checkbox-text a:link,
.cozycat-checkbox-text a:visited {
  color: var(--beige);
  text-decoration: underline !important;
}

.cozycat-checkbox-error {
  display: block;
  color: var(--beige);
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.9;
}

/* Field Notes */
.cozycat-field-note {
  margin: 8px 0;
}

.cozycat-field-note p {
  color: var(--beige);
  font-size: 16px;
  font-style: italic;
  margin: 0;
}

/* Select field styling */
.cozycat-field .cozycat-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a4243' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

/* ========================================
   Cat Page Styles
   ======================================== */

.cozycat-cats-page {
  max-width: 500px;
  margin: 0 auto;
}

/* Cat Listing */
.cozycat-cats-listing {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 30px;
}

.cozycat-cat-card {
  background-color: var(--brown);
  border-radius: 32px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.cozycat-cat-card-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cozycat-cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cozycat-cat-card-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cozycat-cat-card-info h4 {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

.cozycat-cat-edit-btn {
  background-color: var(--red);
  color: var(--beige);
  padding: 8px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 16px;
  transition: background-color 0.3s;
}

.cozycat-cat-edit-btn:hover {
  background-color: var(--red);
  color: var(--beige);
}

.cozycat-no-cats {
  text-align: center;
  color: var(--red);
  padding: 40px 20px;
}

/* Add Cat Button */
.cozycat-add-cat-wrapper {
  text-align: center;
}

.cozycat-btn-add {
  display: inline-block;
  background-color: var(--beige);
  color: var(--red);
  padding: 12px 40px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s;
}

.cozycat-btn-add:hover {
  background-color: var(--red);
  color: var(--beige);
}

/* Cat Preview Card */
.cozycat-cat-preview {
  background-color: var(--red);
  border-radius: 32px;
  padding: 25px;
  margin-bottom: 20px;
}

.cozycat-cat-preview-content {
  display: flex;
  gap: 20px;
}

.cozycat-cat-preview-info {
  flex: 1;
}

.cozycat-cat-preview-info h3 {
  color: var(--beige);
  margin: 0 0 15px 0;
  font-size: 18px;
}

.cozycat-cat-preview-info p {
  color: var(--beige);
  font-size: 16px;
  margin: 5px 0;
}

.cozycat-cat-preview-info p strong {
  font-weight: normal;
}

.cozycat-cat-preview-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cozycat-cat-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Back Link */
.cozycat-form-back {
  text-align: center;
  margin-top: 20px;
}

.cozycat-form-back a {
  color: var(--red);
  text-decoration: none;
  font-size: 16px;
}

.cozycat-form-back a:hover {
  text-decoration: underline;
}

/* Responsive Cat Page */
@media (max-width: 768px) {
  .cozycat-cat-card {
    flex-direction: column;
    text-align: center;
  }

  .cozycat-cat-card-info {
    flex-direction: column;
    gap: 10px;
  }

  .cozycat-cat-preview-content {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
}

/* ========================================
   Orders Page Styles
   ======================================== */

.cozycat-orders-page {
  max-width: 500px;
  margin: 0 auto;
}

/* Default State - Two Buttons */
.cozycat-orders-default {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cozycat-order-option {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--red);
  padding: 25px 30px;
  border-radius: 32px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cozycat-order-option:hover {
  background-color: var(--brown);
}

.cozycat-order-option-text {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
}

.cozycat-order-option:hover .cozycat-order-option-text {
  color: var(--beige);
}

.cozycat-order-option-icon {
  font-size: 32px;
}

/* Order Form */
.cozycat-order-form-container {
  /* Uses existing profile form styles */
}

/* Price Calculator */
.cozycat-price-calculator {
  background-color: var(--beige);
  border-radius: 12px;
  padding: 20px;
  margin: 20px 0;
}

.cozycat-price-loading {
  color: var(--red);
  font-size: 16px;
  font-style: italic;
  text-align: center;
}

/* Line-item breakdown */
.cozycat-price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cozycat-price-line-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  margin-bottom: 4px;
}

.cozycat-price-line-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cozycat-price-line-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cozycat-price-line-name {
  font-size: 16px;
  color: var(--red);
}

.cozycat-price-line-sublabel {
  font-size: 16px;
  color: var(--red);
  opacity: 0.65;
}

.cozycat-price-line-amount {
  font-size: 16px;
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

/* Total row (used in both breakdown and placeholder) */
.cozycat-price-total-row,
.cozycat-price-placeholder {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.cozycat-price-total-label {
  color: var(--red);
  font-size: 16px;
}

.cozycat-price-total-value {
  color: var(--red);
  font-size: 28px;
  font-weight: bold;
}

/* Form Actions with Back Button */
.cozycat-order-form-container .cozycat-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}

.cozycat-btn-back {
  background-color: transparent;
  border: 2px solid var(--beige);
  color: var(--beige);
  padding: 15px 40px;
  text-decoration: none;
}

.cozycat-btn-back:hover {
  background-color: var(--beige);
  color: var(--red);
}

/* Orders History */
.cozycat-orders-history {
  /* Container */
}

.cozycat-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.cozycat-order-item {
  background-color: var(--beige);
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cozycat-order-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cozycat-order-number {
  color: var(--red);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.cozycat-order-number:hover {
  text-decoration: underline;
}

/* Order Detail */
.cozycat-order-detail-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cozycat-detail-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.cozycat-detail-label {
  color: var(--beige);
  font-weight: 600;
  min-width: 200px;
  font-size: 16px;
}

.cozycat-detail-row span {
  color: var(--beige);
  font-size: 16px;
}

@media (max-width: 480px) {
  .cozycat-detail-row {
    flex-direction: column;
    gap: 2px;
  }

  .cozycat-detail-label {
    min-width: unset;
  }
}

.cozycat-cancel-sitting-link {
  color: #e05a7a;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.cozycat-cancel-sitting-link:hover,
.cozycat-cancel-sitting-link:focus {
  color: #f07a96;
  border-bottom-color: #f07a96;
  text-decoration: none;
}

/* Cancel confirmation page */
.cozycat-cancel-policy p,
.cozycat-cancel-policy li,
.cozycat-cancel-fee-info p {
  color: var(--beige);
  font-size: 15px;
  line-height: 1.6;
}

.cozycat-cancel-policy ul {
  padding-left: 20px;
  margin: 8px 0;
}

.cozycat-cancel-policy strong {
  color: #fff;
}

.cozycat-cancel-fee-info {
  margin-top: 8px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cozycat-cancel-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.cozycat-btn-danger {
  background-color: #c0394f;
  color: #fff;
  display: inline-block;
}

.cozycat-btn-danger:hover:not(:disabled) {
  background-color: #e04060;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cozycat-btn-danger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cozycat-btn-secondary {
  background-color: transparent;
  color: var(--beige);
  border: 2px solid var(--beige);
  display: inline-block;
  text-decoration: none;
}

.cozycat-btn-secondary:hover {
  background-color: var(--beige);
  color: var(--red);
  text-decoration: none;
}

.cozycat-detail-separator {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 8px 0;
}

/* Key Movements */
.cozycat-key-movements {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cozycat-key-movement-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 14px 18px;
  border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.cozycat-key-movement-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.cozycat-key-movement-type {
  font-weight: 600;
  font-size: 15px;
}

.cozycat-key-out {
  color: #f59e0b;
}

.cozycat-key-in {
  color: #10b981;
}

.cozycat-key-transfer {
  color: #8b5cf6;
}

.cozycat-key-movement-date {
  color: var(--beige);
  font-size: 14px;
  opacity: 0.7;
}

.cozycat-key-movement-meta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 4px;
}

.cozycat-key-movement-meta .cozycat-detail-label {
  min-width: 140px;
  font-size: 14px;
}

.cozycat-key-movement-meta span {
  color: var(--beige);
  font-size: 14px;
}

.cozycat-key-movement-attachment {
  margin-top: 8px;
}

.cozycat-key-movement-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--beige);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}

.cozycat-key-movement-download:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--beige);
  text-decoration: none;
}

.cozycat-key-movement-sign {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--beige);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 14px;
  background: rgba(92, 45, 110, 0.25);
  border: 1px solid rgba(92, 45, 110, 0.6);
  border-radius: 4px;
  transition: background-color 0.2s, border-color 0.2s;
}

.cozycat-key-movement-sign:hover {
  background: rgba(92, 45, 110, 0.45);
  border-color: rgba(92, 45, 110, 0.9);
  color: var(--beige);
  text-decoration: none;
}

.cozycat-key-movement-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
}

.cozycat-key-movement-badge-done {
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.cozycat-key-movement-badge-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.cozycat-key-movement-item.cozycat-key-movement-complete {
  border-left-color: #10b981;
}

/* Media Gallery */
.cozycat-media-gallery {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cozycat-media-date-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--beige);
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.cozycat-media-date-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cozycat-media-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.cozycat-media-link {
  display: block;
}

.cozycat-media-link img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.cozycat-media-link:hover img {
  opacity: 0.85;
}

.cozycat-media-video {
  width: 100%;
}

.cozycat-media-video video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: #000;
}

.cozycat-media-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cozycat-media-date {
  color: var(--beige);
  font-size: 13px;
  opacity: 0.7;
}

.cozycat-media-caption {
  color: var(--beige);
  font-size: 14px;
}

@media (max-width: 768px) {
  .cozycat-media-date-group {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .cozycat-media-link img,
  .cozycat-media-video video {
    height: 140px;
  }
}

/* Sitter Card List */
.cozycat-sitter-list {
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid rgba(210, 185, 145, 0.2);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.cozycat-sitter-list-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cozycat-sitter-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 8px;
  border: 2px solid rgba(210, 185, 145, 0.25);
  background: rgba(210, 185, 145, 0.1);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  position: relative;
}

.cozycat-sitter-card:hover {
  background: rgba(210, 185, 145, 0.18);
  border-color: rgba(210, 185, 145, 0.45);
}

.cozycat-sitter-card.selected {
  border-color: var(--red);
  background: rgba(180, 60, 60, 0.18);
  box-shadow: 0 0 0 3px rgba(180, 60, 60, 0.25),
    inset 0 0 0 1px rgba(180, 60, 60, 0.3);
}

.cozycat-sitter-card.selected::after {
  content: "✓";
  position: absolute;
  top: 10px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.cozycat-sitter-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cozycat-sitter-photo {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  border-radius: 50% !important;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
}

.cozycat-sitter-photo--initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.cozycat-sitter-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.cozycat-sitter-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cozycat-sitter-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--beige);
}

.cozycat-sitter-rating {
  font-size: 13px;
  color: #f5c542;
  font-weight: 600;
}

.cozycat-sitter-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 20px;
  display: inline-block;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  color: var(--beige);
  opacity: 0.7;
}

.cozycat-sitter-status--active {
  background: rgba(80, 200, 120, 0.15);
  color: #7de0a0;
  opacity: 1;
}

.cozycat-sitter-bio {
  font-size: 13px;
  color: var(--beige);
  opacity: 0.75;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cozycat-sitter-comps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cozycat-sitter-comp {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--beige);
  opacity: 0.8;
}

.cozycat-sitter-empty {
  padding: 16px;
  text-align: center;
  color: var(--beige);
  opacity: 0.5;
  font-size: 14px;
  margin: 0;
}

@media (max-width: 768px) {
  .cozycat-sitter-list {
    max-height: 360px;
  }

  .cozycat-sitter-photo {
    width: 42px;
    height: 42px;
  }
}

.cozycat-order-date {
  color: var(--red);
  font-size: 16px;
}

.cozycat-order-status {
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 500;
}

.cozycat-status-pending {
  background-color: var(--beige);
  color: var(--red);
}

.cozycat-status-processing {
  background-color: var(--beige);
  color: var(--red);
}

.cozycat-status-on-hold {
  background-color: var(--beige);
  color: var(--red);
}

.cozycat-status-completed {
  background-color: var(--beige);
  color: var(--red);
}

.cozycat-order-total {
  color: var(--red);
  font-weight: bold;
  font-size: 16px;
}

.cozycat-no-orders {
  text-align: center;
  color: var(--red);
  padding: 40px 20px;
}

/* Responsive Orders Page */
@media (max-width: 768px) {
  .cozycat-order-option {
    padding: 20px;
  }

  .cozycat-order-option-text {
    font-size: 16px;
  }

  .cozycat-order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cozycat-order-info {
    flex-wrap: wrap;
  }

  .cozycat-order-form-container .cozycat-form-actions {
    flex-direction: column;
  }

  .cozycat-btn-back {
    text-align: center;
  }
}

/* ========================================
   Order Validation Errors
   ======================================== */

.cozycat-order-errors {
  max-width: 500px;
  margin: 0 auto;
}

.cozycat-errors-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 20px 0 30px;
}

.cozycat-error-item {
  background-color: var(--beige);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cozycat-error-message {
  color: var(--red);
  font-size: 16px;
}

.cozycat-error-link {
  color: var(--red);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.cozycat-error-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ========================================
   Checkboxes Group (for cat selection)
   ======================================== */

.cozycat-field-checkboxes {
  margin-bottom: 15px;
}

.cozycat-checkboxes-label {
  display: block;
  color: var(--beige);
  font-size: 16px;
  margin-bottom: 10px;
}

.cozycat-checkboxes-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 5px;
}
.cozycat-static-value {
  color: #fff;
}

.cozycat-service-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cozycat-service-qty-wrapper {
  padding-left: 34px;
}

.cozycat-service-qty-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--beige);
  opacity: 0.85;
}

.cozycat-service-qty-input {
  width: 70px !important;
  padding: 4px 8px;
  border-radius: 20px;
  border: none;
  background: var(--beige);
  color: var(--red);
  font-size: 0.875rem;
  text-align: center;
  flex-shrink: 0;
}

/* ========================================
   Auth Forms (Registration & Login)
   ======================================== */

.cozycat-auth-wrapper {
  display: flex;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.cozycat-auth-wrapper.cozycat-auth-login {
  max-width: 500px;
  justify-content: center;
}

.cozycat-auth-form-container {
  flex: 1;
  min-width: 0;
}

.cozycat-auth-sidebar {
  flex: 0 0 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  gap: 15px;
}

.cozycat-auth-sidebar p {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cozycat-btn-outline {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid var(--red, #4a2028);
  background: transparent;
  color: var(--red, #4a2028);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.cozycat-btn-outline:hover {
  background: var(--red, #4a2028);
  color: #fff;
}

.cozycat-auth-wrapper .cozycat-btn-submit {
  background-color: var(--beige, #f5f0eb);
  color: var(--red, #4a2028);
  border: none;
  font-size: 16px;
  padding: 14px 40px;
  font-weight: 700;
}

.cozycat-auth-wrapper .cozycat-btn-submit:hover {
  background-color: #fff;
  color: var(--red, #4a2028);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cozycat-auth-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.cozycat-auth-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 16px;
}

.cozycat-auth-error {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.cozycat-auth-success {
  background: #def7ec;
  color: #03543f;
  border: 1px solid #84e1bc;
}

.cozycat-auth-info {
  background: #e1effe;
  color: #1e429f;
  border: 1px solid #a4cafe;
}

.cozycat-auth-info p {
  margin: 0 0 12px 0;
}

@media (max-width: 768px) {
  .cozycat-auth-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .cozycat-auth-sidebar {
    flex: none;
    padding-top: 0;
  }
}

/* Chat */
.cozycat-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 0;
  max-height: 500px;
  overflow-y: auto;
}

.cozycat-chat-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.cozycat-chat-row-own {
  justify-content: flex-end;
}

.cozycat-chat-row-other {
  justify-content: flex-start;
}

.cozycat-chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4b2731, #8c3d4a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}

.cozycat-chat-bubble {
  max-width: 70%;
  word-break: break-word;
}

.cozycat-chat-bubble-own {
  background: var(--beige);
  color: var(--red);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
}

.cozycat-chat-bubble-other {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--beige);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 14px;
}

.cozycat-chat-content {
  font-size: 14px;
  line-height: 1.5;
}

.cozycat-chat-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}

.cozycat-chat-time {
  font-size: 11px;
  opacity: 0.6;
}

.cozycat-chat-read {
  font-size: 11px;
  opacity: 0.7;
}

.cozycat-chat-empty {
  text-align: center;
  color: var(--beige);
  opacity: 0.5;
  padding: 20px;
  font-size: 14px;
}

/* Chat input */
.cozycat-chat-form {
  margin-top: 12px;
}

.cozycat-chat-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.cozycat-chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0;
  padding: 10px 16px;
  color: var(--beige);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  max-height: 120px;
  overflow-y: auto;
  line-height: 1.4;
}

.cozycat-chat-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

.cozycat-chat-input::placeholder {
  color: var(--beige);
  opacity: 0.4;
}

.cozycat-chat-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--beige) !important;
  color: #5c2d6e !important;
  border: none !important;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.cozycat-chat-send:hover {
  opacity: 0.85;
}

.cozycat-chat-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Typing indicator */
.cozycat-typing-dots span {
  animation: cozycat-typing 1.4s infinite;
  font-size: 20px;
  line-height: 1;
}
.cozycat-typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.cozycat-typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes cozycat-typing {
  0%,
  60%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cozycat-chat-bubble {
    max-width: 85%;
  }
}

/* =========================================================
   RATING
   ========================================================= */

/* Interactive star selector */
.cozycat-star-selector {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}

.cozycat-star-input {
  display: none;
}

.cozycat-star-selector label {
  font-size: 32px;
  color: rgba(245, 240, 235, 0.3); /* dim beige */
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
}

/* Highlight on hover: because labels are in reverse DOM order,
   hovering a label highlights it + all labels that come *after* it in DOM
   (which are lower-numbered stars) */
.cozycat-star-selector label:hover,
.cozycat-star-selector label:hover ~ label,
.cozycat-star-selector input:checked ~ label {
  color: #f5c542;
}

.cozycat-star-selector label.cozycat-star-label--active {
  color: #f5c542;
}

.cozycat-star-selector label:hover {
  transform: scale(1.15);
}

/* Read-only star display */
.cozycat-stars-readonly {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.cozycat-stars-readonly .cozycat-star {
  font-size: 22px;
  color: rgba(245, 240, 235, 0.25);
  line-height: 1;
}

.cozycat-stars-readonly .cozycat-star--filled {
  color: #f5c542;
}

.cozycat-stars-readonly .cozycat-rating-grade {
  font-size: 14px;
  color: var(--beige);
  margin-left: 6px;
  font-weight: 600;
}

.cozycat-rating-comment-row .cozycat-rating-comment-text {
  font-style: italic;
  opacity: 0.85;
  line-height: 1.5;
}
