/* Modal shell */
.cc-confirm-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.cc-confirm-content {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 820px; /* wider so the table fits */
  width: calc(100% - 40px);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.cc-confirm-body { margin-bottom: 16px; }


.cc-warning-block { 
    margin-bottom: 12px; 
    padding: 10px 12px; 
    background: #fff3cd; 
    border: 1px solid #ffe69c; 
    border-radius: 4px; }
.cc-warning-title { 
    margin: 0 0 4px; 
    font-weight: 700; 
    color: #8a6d3b; }
.cc-warning-subtitle { 
    margin: 0; 
    color: #8a6d3b; }


.cc-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}
.cc-confirm-actions .button[disabled] { opacity: .6; pointer-events: none; cursor: not-allowed; }


/* Buttons (WP admin uses .button classes; front-end still looks fine) */
.cc-confirm-delete {
  background: #d63638;
  border-color: #b32d2e;
  color: #fff;
}
.cc-confirm-delete:hover { filter: brightness(0.95); }

.cc-confirm-cancel,
.cc-confirm-ok {
  background: #f6f7f7;
  border-color: #c3c4c7;
  color: #1d2327;
}

/* Preview table styles */
.cc-preview-card { margin-bottom: 16px; }
.cc-preview-title {
  margin: 10px 0px 0px 0px;
  font-size: 22px;
  line-height: 1.2;
}

.cc-preview-title .cc-sub-id {
  font-size: 0.6em;
  color: #a9a9a9; /* subtler */
  margin-left: .35em;
  font-weight: 400;
}


.cc-preview-table {
  width: 100%;
  border-collapse: collapse;   /* ensures continuous lines */
  table-layout: fixed;
}
.cc-preview-table thead th,
.cc-preview-table tbody th,
.cc-preview-table td {
  padding: 9px 16px;
  border-bottom: 1px solid #dcdcde; /* WP admin gray */
  vertical-align: middle;
}
.cc-preview-table thead th {
  font-weight: 600;
  color: #646970;
  border-bottom-width: 2px;    /* thicker header rule */
}

.cc-preview-table tbody tr:last-child th,
.cc-preview-table tbody tr:last-child td {
  border-bottom: 0;            /* no trailing border */
}

/* Column sizing to prevent label wrap collisions */
.cc-col-label  { width: 36%; }
.cc-col-qty    { width: 16%; }
.cc-col-price  { width: 24%; }
.cc-col-total  { width: 24%; }

.cc-row-label { white-space: nowrap; }

.cc-delete-trigger.button {
  background: #d63638;
  border-color: #b32d2e;
  color: #fff;
}
.cc-delete-trigger.button:hover { filter: brightness(.95); }