/**
 * 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;
  }

  /* Mobile: the page content is the primary thing, the nav is secondary —
     flip the visual order so "Új megrendelés" et al. show first. */
  .cozycat-account-content {
    grid-column: 1;
    grid-row: auto;
    order: 1;
  }

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

/* 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(--beige);
  color: var(--red);
  border: 0px;
}

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

/* Hint text and notices inside profile forms */
.cozycat-profile-form .cozycat-field-hint {
  color: var(--beige);
  font-size: 14px;
  opacity: 0.8;
}

.cozycat-profile-form .cozycat-notice {
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 8px;
}

.cozycat-profile-form .cozycat-notice-success {
  background-color: rgba(255, 255, 255, 0.15);
  color: #b8e6b8;
}

.cozycat-profile-form .cozycat-notice-error {
  background-color: rgba(255, 255, 255, 0.15);
  color: #f5a0a0;
}

/* 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,
.cozycat-field-error {
  display: block;
  color: var(--beige);
  font-size: 14px;
  margin-top: 6px;
  opacity: 0.9;
}

/* Radio Fields */
.cozycat-field-radios {
  margin: 10px 0;
}

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

.cozycat-radios-group {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

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

.cozycat-radio {
  display: none;
}

.cozycat-radio-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;
}

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

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

/* 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: 560px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------
   Orders Hub (landing page: default.php)
   ------------------------------------------------------------------ */

.cozycat-orders-hub {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Hero CTA — Új megrendelés */
.cozycat-hub-cta-new {
  position: relative;
  display: block;
  padding: 30px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #4b2731 0%, #8c3d4a 55%, #a94e60 100%);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 28px -14px rgba(75, 39, 49, 0.55),
    0 2px 6px -2px rgba(75, 39, 49, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cozycat-hub-cta-new:hover,
.cozycat-hub-cta-new:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(75, 39, 49, 0.65),
    0 4px 10px -3px rgba(75, 39, 49, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
}

.cozycat-hub-cta-new__glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 215, 180, 0.35) 0%,
    rgba(255, 215, 180, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
  animation: cozycat-glow-drift 9s ease-in-out infinite;
}

@keyframes cozycat-glow-drift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.85;
  }
  50% {
    transform: translate(-18px, 14px);
    opacity: 1;
  }
}

.cozycat-hub-cta-new__pawprint {
  position: absolute;
  right: -14px;
  bottom: -18px;
  width: 150px;
  height: 150px;
  color: rgba(255, 255, 255, 0.07);
  z-index: 0;
  pointer-events: none;
  transform: rotate(-14deg);
}

.cozycat-hub-cta-new__pawprint svg {
  width: 100%;
  height: 100%;
}

.cozycat-hub-cta-new__pawprint svg :is(ellipse, path) {
  fill: currentColor;
}

.cozycat-hub-cta-new__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "eyebrow arrow"
    "title   arrow";
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;
}

.cozycat-hub-cta-new__eyebrow {
  grid-area: eyebrow;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 230, 220, 0.8);
}

.cozycat-hub-cta-new__title {
  grid-area: title;
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff5ef;
}

.cozycat-hub-cta-new__arrow {
  grid-area: arrow;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #ffd9b8;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cozycat-hub-cta-new__arrow svg {
  width: 100%;
  height: 100%;
}

.cozycat-hub-cta-new:hover .cozycat-hub-cta-new__arrow,
.cozycat-hub-cta-new:focus-visible .cozycat-hub-cta-new__arrow {
  transform: translateX(6px);
}

/* Secondary hub cards (active / pending / completed) */
.cozycat-hub-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background-color: #fff;
  border: 1px solid rgba(75, 39, 49, 0.12);
  border-radius: 20px;
  color: var(--red);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.cozycat-hub-card:hover,
.cozycat-hub-card:focus-visible {
  transform: translateX(3px);
  border-color: rgba(75, 39, 49, 0.28);
  box-shadow: 0 8px 22px -14px rgba(75, 39, 49, 0.4);
  text-decoration: none;
  color: var(--red);
}

.cozycat-hub-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cozycat-hub-card__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(75, 39, 49, 0.55);
}

.cozycat-hub-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--red);
  line-height: 1.3;
}

.cozycat-hub-card__meta {
  font-size: 14px;
  color: rgba(75, 39, 49, 0.75);
  margin-top: 4px;
}

.cozycat-hub-card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background-color: rgba(75, 39, 49, 0.06);
  color: var(--red);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cozycat-hub-card__icon svg {
  width: 22px;
  height: 22px;
}

.cozycat-hub-card__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: rgba(75, 39, 49, 0.45);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.cozycat-hub-card__chevron svg {
  width: 100%;
  height: 100%;
}

.cozycat-hub-card:hover .cozycat-hub-card__chevron,
.cozycat-hub-card:focus-visible .cozycat-hub-card__chevron {
  transform: translateX(4px);
  color: var(--red);
}

/* Active variant — cream with red accent border + live pulse */
.cozycat-hub-card--active {
  background: linear-gradient(180deg, #fbf3ea 0%, #f5e7d8 100%);
  border-color: rgba(140, 61, 74, 0.2);
  box-shadow: 0 6px 18px -12px rgba(140, 61, 74, 0.35);
}

.cozycat-hub-card__pulse {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cozycat-hub-card__pulse-dot {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(62, 207, 142, 0.6);
}

.cozycat-hub-card__pulse-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(62, 207, 142, 0.55);
  animation: cozycat-pulse-ring 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes cozycat-pulse-ring {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  80% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Small-screen tightening for hub */
@media (max-width: 560px) {
  .cozycat-hub-cta-new {
    padding: 26px 22px;
    border-radius: 22px;
  }
  .cozycat-hub-cta-new__title {
    font-size: 26px;
  }
  .cozycat-hub-cta-new__pawprint {
    width: 120px;
    height: 120px;
    right: -18px;
    bottom: -24px;
  }

  .cozycat-hub-card {
    padding: 16px 18px;
    border-radius: 16px;
    gap: 12px;
  }
  .cozycat-hub-card__title {
    font-size: 15px;
  }
  .cozycat-hub-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .cozycat-hub-card__icon svg {
    width: 18px;
    height: 18px;
  }
}

/* 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 list (active / pending / completed)
   ------------------------------------------------------------------ */

.cozycat-orders-section {
  /* Container */
}

.cozycat-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.cozycat-order-card {
  background-color: #fff;
  border: 1px solid rgba(75, 39, 49, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cozycat-order-card:hover {
  border-color: rgba(75, 39, 49, 0.25);
  box-shadow: 0 6px 16px -12px rgba(75, 39, 49, 0.35);
}

.cozycat-order-card__row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  row-gap: 6px;
}

.cozycat-order-card__id {
  font-family: "DM Serif Display", "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1;
  color: var(--red);
  letter-spacing: -0.01em;
}

.cozycat-order-card__dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  flex: 1 1 auto;
  min-width: 0;
}

.cozycat-order-card__date-sep {
  color: rgba(75, 39, 49, 0.45);
}

.cozycat-order-card__status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: rgba(75, 39, 49, 0.08);
  color: var(--red);
  white-space: nowrap;
}

.cozycat-order-card__status--active {
  background-color: rgba(140, 61, 74, 0.14);
  color: #6e2a38;
}

.cozycat-order-card__status--confirmed {
  background-color: rgba(52, 115, 83, 0.14);
  color: #2c6b4a;
}

.cozycat-order-card__status--cancelled,
.cozycat-order-card__status--full_capacity {
  background-color: rgba(155, 80, 80, 0.14);
  color: #8c3a3a;
}

.cozycat-order-card__price {
  font-weight: 700;
  color: var(--red);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-left: auto;
}

.cozycat-order-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.cozycat-order-card__link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.cozycat-order-card__link span svg {
  width: 100%;
  height: 100%;
}

.cozycat-order-card__link:hover,
.cozycat-order-card__link:focus-visible {
  border-bottom-color: currentColor;
  color: var(--red);
  text-decoration: none;
}

.cozycat-order-card__link:hover span,
.cozycat-order-card__link:focus-visible span {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .cozycat-order-card {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .cozycat-order-card__row {
    gap: 10px 14px;
  }

  .cozycat-order-card__id {
    font-size: 18px;
  }

  .cozycat-order-card__dates {
    font-size: 14px;
    flex: 1 1 100%;
    order: 1;
  }

  .cozycat-order-card__id {
    order: 0;
  }
  .cozycat-order-card__status {
    order: 2;
  }
  .cozycat-order-card__price {
    order: 3;
    margin-left: auto;
  }
  .cozycat-order-card__link {
    order: 4;
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

/* ------------------------------------------------------------------
   Legacy compat — keep the old class aliases working (used elsewhere)
   ------------------------------------------------------------------ */

.cozycat-orders-history {
  /* Container (legacy, still referenced by older views) */
}

.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 {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.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-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

button.cozycat-media-date-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--beige);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(245, 235, 220, 0.25);
  border-radius: 999px;
  cursor: pointer;
  text-transform: none;
  text-shadow: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

button.cozycat-media-date-tab:hover {
  color: var(--beige);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(245, 235, 220, 0.45);
}

button.cozycat-media-date-tab:focus {
  outline: none;
  border-color: rgba(245, 235, 220, 0.6);
}

button.cozycat-media-date-tab:focus:not(:focus-visible) {
  border-color: rgba(245, 235, 220, 0.25);
}

button.cozycat-media-date-tab.is-active,
button.cozycat-media-date-tab.is-active:hover,
button.cozycat-media-date-tab.is-active:focus {
  color: var(--mahogany, #4a1d24);
  background: var(--beige, #f5ebdc);
  border-color: var(--beige, #f5ebdc);
}

.cozycat-media-date-count {
  opacity: 0.7;
  font-size: 12px;
  font-weight: 400;
}

.cozycat-media-date-panel[hidden] {
  display: none;
}

.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;
  cursor: pointer;
}

.cozycat-sitter-bio.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.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-comp--optional {
  background: rgba(133, 77, 156, 0.2);
  border-color: rgba(133, 77, 156, 0.45);
  opacity: 1;
}

.cozycat-sitter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.cozycat-sitter-badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 12px;
}

.cozycat-sitter-badge--optional-match {
  background: rgba(133, 77, 156, 0.85);
  color: #fff;
}

.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;
}

/* ─── Order Received (thank-you) page ─────────────────────────────
   Customers can land here from gateway returns or the email "view
   order" link, so the page must look like a continuation of the
   profile — same red form-wrapper cards, same beige section pills,
   same line-item breakdown. The bespoke pieces below are limited to
   the welcome banner, the two-column card grid, and the trailing
   action row.
*/
.cozycat-thankyou {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.cozycat-thankyou-banner {
  position: relative;
  background-color: var(--beige);
  color: var(--red);
  border-radius: 32px;
  padding: 52px 40px 48px;
  text-align: center;
  overflow: hidden;
}

.cozycat-thankyou-banner::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 22px;
  border: 1px solid rgba(75, 39, 49, 0.12);
  pointer-events: none;
}

.cozycat-thankyou-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  opacity: 0.65;
  margin-bottom: 14px;
}

.cozycat-thankyou-title {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--red);
  line-height: 1.12;
  margin: 0 auto 14px;
  max-width: 620px;
}

.cozycat-thankyou-lead {
  font-size: 16px;
  line-height: 1.6;
  color: var(--red);
  opacity: 0.78;
  max-width: 540px;
  margin: 0 auto;
}

.cozycat-thankyou-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

/* Override the 600px cap on .cozycat-profile-form-wrapper so each
   card fills its grid cell evenly. */
.cozycat-thankyou-grid .cozycat-thankyou-card {
  max-width: none;
  width: 100%;
}

.cozycat-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
  padding-top: 4px;
}

/* Inverted button — the actions sit on the page background (not on a
   red wrapper), so the dominant CTA is the red one and the secondary
   is a quiet beige link. */
.cozycat-thankyou-cta {
  background-color: var(--red);
  color: var(--beige);
  text-decoration: none;
  padding: 15px 38px;
  display: inline-block;
  letter-spacing: 1px;
  box-shadow: 0 6px 18px rgba(75, 39, 49, 0.18);
}

.cozycat-thankyou-cta:hover,
.cozycat-thankyou-cta:focus {
  background-color: #5b2d3a;
  color: var(--beige);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(75, 39, 49, 0.28);
}

.cozycat-thankyou-secondary {
  color: var(--red);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: opacity 0.15s ease;
}

.cozycat-thankyou-secondary:hover,
.cozycat-thankyou-secondary:focus {
  opacity: 0.65;
  color: var(--red);
  text-decoration: none;
}

@media (max-width: 860px) {
  .cozycat-thankyou {
    padding: 18px 14px 40px;
    gap: 22px;
  }

  .cozycat-thankyou-banner {
    padding: 40px 22px 36px;
    border-radius: 24px;
  }

  .cozycat-thankyou-banner::before {
    inset: 10px;
    border-radius: 16px;
  }

  .cozycat-thankyou-title {
    font-size: 28px;
  }

  .cozycat-thankyou-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cozycat-thankyou-cta {
    padding: 13px 28px;
    width: 100%;
    text-align: center;
  }
}
