/* Button styling */
.cow-btn {
  padding: 10px 20px;
  background: #547647;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  border-radius: 20px 20px;
}
.cow-btn:hover { background: #B84331; }

/* Overlay */
.cow-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}

/* Panel */
.cow-panel {
  position: fixed;
  top: 0;
  right: -100%;        /* ✅ Always hidden by default */
  width: 90%;          /* ✅ 90% width on small screens */
  max-width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  z-index: 99999;      /* ✅ higher than Astra menu */
  display: flex;
  flex-direction: column;
}

/* Show state */
.cow-panel.active { right: 0; }
.cow-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Close button */
.cow-close {
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
    padding: 0;
    font-size: inherit;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cow-content {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

/* Base close button: no background */
#cow-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #333;
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* Circle shape */
#cow-close-btn.cow-shape-circle {
  background-color: var(--close-btn-bg, #ffc107);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}

/* Square shape */
#cow-close-btn.cow-shape-square {
  background-color: var(--close-btn-bg, #ffc107);
  border-radius: 4px;
  width: 40px;
  height: 40px;
}



/* ============================= */
/* Responsive adjustments */
/* ============================= */

/* Tablets */
@media (max-width: 1024px) {
  .cow-panel {
    width: 50%;
    max-width: none;
  }
}

/* Mobile phones */
@media (max-width: 768px) {
  .cow-panel {
    width: 90%;   /* Not full screen */
    max-width: 360px;
  }
}
