.modal1 .modal-dialog .modal-content .modal-body{ overflow-y: hidden; }
.iframe-modal-body {
  padding: 0px;
  display: flex;
  overflow-y: auto;
  background: #fff;
}

.iframe-modal-body .left {
  width: 380px;
  padding: 30px;
  border-right: 0.5px solid #b4b4b4;
}

.iframe-modal-body .left .inner .profilePet {
    width: 100%;
    height: 100%;
    position: relative;
}

.iframe-modal-body .left .inner .profilePet a {
  position: absolute;
  left: 0px;
  height: 42px;
  display: flex;
  align-items: center;
  background: #ff7b02;
  bottom: 0px;
  padding: 11px 9px 11px 16px;
  border-radius: 0px 100px 100px 4px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 16.94px;
  text-align: left;
  color: #fff;
  text-decoration: none;
}

.iframe-modal-body .right {
  width: calc(100% - 380px);
  padding: 30px;
}
.pet-info-accordion .card-body {padding: 0 10px;}
/* Pet Documents list (left-pane PC iframe — sidebar/documents.php).
 * Scoped flex layout: filename slot grows + truncates; "Public" badge stays
 * pinned right; tablet-friendly tap height; subtle hover affordance.
 * Selector targets both <div> rows (PC docs) and <a> rows (KT health-reports). */
.pet-document-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 8px 12px;
    border-bottom: 1px solid #ececec;
    transition: background-color 0.12s ease;
    color: #1d1d1f;
    text-decoration: none;
}
.pet-document-row:hover,
.pet-document-row:focus {
    color: #1d1d1f;
    text-decoration: none;
}
.pet-document-row:last-child {
    border-bottom: none;
}
.pet-document-row:hover {
    background-color: #fafafa;
}
.pet-document-row__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}
.pet-document-row__icon {
    flex: 0 0 auto;
    color: #B4B4B4;
    font-size: 16px;
    line-height: 1;
}
.pet-document-row__link {
    flex: 1 1 auto;
    min-width: 0;
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pet-document-row__link:hover {
    color: #ff7b02;
    text-decoration: none;
}
.pet-document-row__badge,
.pet-document-row .btnStatus {
    flex: 0 0 auto;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 2px 8px;
    border-radius: 100px;
    border: 1px solid #27ae60;
    background: transparent;
    color: #27ae60;
    font-family: "Inter", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

a.pdf-viewer.pet-certificate {}

a.pdf-viewer.pet-certificate {}
.adopt-link {
  display: flex;
  align-items: center;
}
.adopt-icon {
  margin-left: 6px;
}
.accordion-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion-image {
  margin-left: 6px;
}
.accordionContent .card .card-body .row .moreDetail span .fas{
  margin-right: 14px;
  font-size: 18px;
  line-height: 16px;
  color: #B4B4B4;
}
.badge.bg-primary.rounded-pill {padding: 5px 10px;}
.shipping-details {display: none;}
span.select2-container{width:100% !important;}
label.error {
  color: red;
  font-size: 1rem;
  display: block;
  margin-top: 5px;
}
input.error, textarea.error {
  border: 1px dashed red;
  font-weight: 300;
  color: red;
}
form#adopt-pet-form{
  display: flex;
  margin: 0px;
  padding: 0px;
  width: 100%;
}
table.drug-info{margin: 0;padding: 0;}
table.drug-info td {
  padding: 0;
}
div.pet-notes-block div.add-notes {
    display: none;
    margin: 12px 0 18px;
    padding: 14px;
    background: #fafafa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
}
div.pet-notes-block div.add-notes table.table td {
    text-align: right;
}

/* Add Note pill — replaces the generic Bootstrap btn-sm btn-primary so the
 * notes block matches the rest of the iframe aesthetic (brand orange,
 * Inter, slight icon). JS at kt.js:75 swaps the inner text to "×" when
 * the reveal panel is open, so the same button styles both states. */
.notes-block-wrap .add-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #ff7b02;
    color: #fff;
    border: 1px solid #ff7b02;
    border-radius: 6px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.notes-block-wrap .add-note:hover,
.notes-block-wrap .add-note:focus {
    background: #e66e02;
    border-color: #e66e02;
    color: #fff;
    text-decoration: none;
}
.notes-block-wrap .add-note i {
    font-size: 10px;
    line-height: 1;
}
.notes-block-wrap .add-note > span {
    line-height: 1;
}
.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
}

.profilePet {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.profilePet-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Maintain square aspect ratio */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
}

.adopt-link {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: left;
  gap: 10px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.adopt-link:hover {
  background: rgba(0, 0, 0, 0.8);
}
.adopt-link img,
.adopt-link i {
  display: inline-block;
}

/* Standalone Detail Page link rendered below the pet image on the PC adopt iframe.
 * Sits flush with the image edges, square corners, no overlap. */
.adopt-link.adopt-link--standalone {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: -1px;
    padding: 10px 12px;
    background: #ff7b02;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.15s ease;
}
.adopt-link.adopt-link--standalone:hover,
.adopt-link.adopt-link--standalone:focus {
    background: #e36e00;
    color: #fff;
}
.adopt-link.adopt-link--standalone i {
    font-size: 12px;
    line-height: 1;
}

/* Detached variant — used for the "Adopt this Pet" / "Final Sale Paperwork"
 * buttons on the detail page. Sits below the image with a clear gap above
 * (no flush overlap) and breathing room before the accordion that follows. */
.adopt-link.adopt-link--standalone.adopt-link--detached {
    margin-top: 0;
    margin-bottom: 16px;
}
.routine-settings{display: none;}
#base-row td a.delete-row, #treatment-base-row td a.delete-row {
  display: none;
  text-align: right;
}
#ukm_pdf_viewer{
  border: 0.5px solid #b4b4b4;
}
.delete-pdf-link{color:#f0f0f0;font-size:12px;text-decoration:none;}
.ukm-pdf-delete-btn {
    display:inline-block;width:16px;height:16px;border-radius:50%;background-color:red;color:white;text-align:center;line-height:16px;font-size:12px;margin-right:5px;cursor:pointer;
}

/* ----------------------------------------------------------------------
 * Pet Counselor iframe — visual refinements (2.4.33+)
 * Documents grid, Videos grid, OFA/CCC certification blocks, pet gallery.
 * All selectors namespaced with `ukm-` so they don't clash.
 * -------------------------------------------------------------------- */

/* Documents grid (used by breeder.php + vendor.php) */
.ukm-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin-top: 6px;
    width: 100%;
}
.ukm-doc-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    color: #1d1d1f !important;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
    min-width: 0;
}
.ukm-doc-card:hover {
    border-color: #ff7b02;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #1d1d1f !important;
}
.ukm-doc-card:active { transform: translateY(1px); }
.ukm-doc-card__icon {
    font-size: 18px;
    color: #B4B4B4;
    line-height: 1;
}
.ukm-doc-card__icon .fa-file-pdf { color: #d32f2f; }
.ukm-doc-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
.ukm-doc-card__filename {
    font-size: 11px;
    color: #8a8a8e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ukm-doc-card .btnInternal {
    align-self: flex-start;
    margin-top: 4px;
    background-color: #f8d7da;
    color: #721c24;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 600;
}

/* Videos grid (breeder.php) */
.ukm-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 6px;
    width: 100%;
}
.ukm-video-grid .cardVideo {
    margin: 0;
    display: flex;
    flex-direction: column;
}
.ukm-video-grid .cardVideo__thumb {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}
.ukm-video-grid .cardVideo .foot {
    text-align: center;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.35;
}

/* Breeder + Vendor info label/value rows — softer label tone, near-black
 * value, no underline on the email link, plain text on phone numbers
 * (we stopped wrapping phones in <a href="tel:..."> anchors). */
.ukm-breeder-info .row > p:first-child,
.ukm-vendor-info  .row > p:first-child {
    color: #6b7280;
    font-weight: 500;
}
.ukm-breeder-info .row > p:nth-child(2),
.ukm-vendor-info  .row > p:nth-child(2) {
    font-weight: 600;
    color: #1d1d1f;
}
.ukm-breeder-info .moreDetail span,
.ukm-vendor-info  .moreDetail span {
    color: #1d1d1f;
}
.ukm-breeder-info .moreDetail span a,
.ukm-vendor-info  .moreDetail span a {
    color: #1d1d1f;
    text-decoration: none;
}
.ukm-breeder-info .moreDetail span a:hover,
.ukm-vendor-info  .moreDetail span a:hover {
    text-decoration: underline;
}

/* Certification section wrapper — gives CCC its own row-like padding and
 * separator without being a flex `.row` (which would force the badge into
 * a 189px-label/right-side layout per the accordion's row rules).
 */
.ukm-cert-section {
    padding: 14px 20px;
    border-bottom: 0.5px solid #b4b4b4;
    width: 100%;
    box-sizing: border-box;
}

/* Certification badges — CCC (breeder Additional row) and OFA (sire/dam).
 * Shared box: image on the left, title + blurb stacked on the right,
 * soft tinted card. CCC and OFA differ in image scale and title weight
 * because the OFA logo is a small mark with a 2-word label while the
 * CCC certificate is a richer multi-word brand wordmark.
 */
.ukm-ccc-badge,
.ukm-ofa-badge {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin: 0;
    background: #f4f7f4;
    border: 1px solid #d8e4d8;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}
.ukm-ofa-badge {
    margin: 0 0 14px;
    gap: 14px;
    align-items: flex-start;
}
.ukm-ccc-badge {
    gap: 18px;
}

/* Inside the accordion .row layout, paragraphs have specific styling
 * (189px width on first child, etc.) that we don't want on our badge body.
 * Force normal block behavior on our paragraphs. */
.ukm-ccc-badge__title,
.ukm-ccc-badge__blurb,
.ukm-ofa-badge__title,
.ukm-ofa-badge__blurb {
    width: auto !important;
    max-width: none !important;
    text-align: left;
    text-transform: none;
}

.ukm-ccc-badge__img {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
    align-self: center;
}
.ukm-ofa-badge__img {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.ukm-ccc-badge__body,
.ukm-ofa-badge__body {
    flex: 1 1 auto;
    min-width: 0;
}

/* CCC — title-case wordmark, gives the body type room to breathe */
.ukm-ccc-badge__title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0;
}
.ukm-ccc-badge__blurb {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #3c3c3c;
}

/* OFA — compact, uppercase eyebrow */
.ukm-ofa-badge__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 700;
    color: #1b5e20;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.ukm-ofa-badge__blurb {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #2c2c2c;
}

/* KT left-pane info / health rows — uniform label/value list with
 * tablet-friendly height, polished inline selects (status / kennel / vet),
 * scoped to this iframe so other plugin pages aren't affected. */
.ukm-info-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ukm-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    border-bottom: 1px solid #ececec;
}
.ukm-info-row:last-child {
    border-bottom: none;
}
.ukm-info-row__label {
    flex: 0 0 auto;
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
}
.ukm-info-row__value {
    flex: 1 1 auto;
    min-width: 0;
    text-align: right;
    color: #1d1d1f;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.35;
    word-break: break-word;
}
.ukm-info-row__value sup {
    font-weight: 500;
    margin-left: 2px;
    color: #6b7280;
}

/* Inline select used for status / kennel / assigned-vet edits. Same
 * visual on every left-pane select so the rep sees a consistent control. */
.ukm-inline-select {
    flex: 0 1 auto;
    max-width: 200px;
    background-color: #fff;
    border: 1px solid #d0d4d9;
    border-radius: 4px;
    padding: 5px 26px 5px 10px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1d1d1f;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px 6px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ukm-inline-select:hover {
    border-color: #ff7b02;
}
.ukm-inline-select:focus {
    outline: none;
    border-color: #ff7b02;
    box-shadow: 0 0 0 3px rgba(255, 123, 2, 0.15);
}

/* Inline editable text input (kennel field on KT). Looks like the inline
 * select but accepts typed values; auto-saves on blur / change / Enter. */
.ukm-inline-input-wrap {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    min-width: 0;
}
.ukm-inline-input {
    flex: 1 1 auto;
    min-width: 0;
    background-color: #fff;
    border: 1px solid #d0d4d9;
    border-radius: 4px;
    padding: 5px 10px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1d1d1f;
    text-align: right;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ukm-inline-input:hover {
    border-color: #ff7b02;
}
.ukm-inline-input:focus {
    outline: none;
    border-color: #ff7b02;
    box-shadow: 0 0 0 3px rgba(255, 123, 2, 0.15);
    text-align: left;
}
.ukm-inline-input-status {
    flex: 0 0 auto;
    font-size: 11px;
    line-height: 1;
    color: #6b7280;
    white-space: nowrap;
    min-width: 0;
}
.ukm-inline-input-status[data-state="saving"] { color: #6b7280; }
.ukm-inline-input-status[data-state="success"] { color: #1b5e20; }
.ukm-inline-input-status[data-state="error"] { color: #b71c1c; }

/* Doc-list wrapper for KT health-reports (and any other small doc list).
 * The .pet-document-row rule already handles the per-row layout. */
.ukm-doc-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

/* Notes list — shared visual for Public Notes + Internal Notes (and any
 * other note-style content). Replaces the legacy .public-notes inline styles. */
.ukm-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ukm-notes-list .list-group-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 12px 14px;
    background: #f9f9f9;
    font-size: 14px;
    line-height: 1.55;
    color: #333;
    margin: 0;
}
.ukm-notes-list .list-group-item .note-icon {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #555;
    font-size: 15px;
}
.ukm-notes-list .list-group-item .note-content {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}
.ukm-notes-list .list-group-item .note-content > p {
    margin: 0 0 6px;
}
.ukm-notes-list .list-group-item .note-content > p:last-child {
    margin-bottom: 0;
}

/* Empty-state (no documents / no videos / no notes / no sire-or-dam) —
 * soft dashed card with centered icon and message. Reused everywhere.
 * !important on the typography rules defeats any inherited paragraph
 * styles from the accordion card-body / Bootstrap col-12 parents,
 * guaranteeing identical rendering across every section. */
.ukm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 14px;
    margin: 0;
    background: #fafafa;
    border: 1px dashed #e3e6ea;
    border-radius: 8px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}
.ukm-empty-state__icon {
    font-size: 16px;
    color: #9ca3af;
    line-height: 1;
}
.ukm-empty-state__msg {
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    color: #6b7280 !important;
    text-align: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    width: auto !important;
    max-width: none !important;
}

/* Pet image gallery — thumbnails below the featured pet image (left pane) */
.ukm-pet-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    margin-bottom: 12px;
}
.ukm-pet-gallery__thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e3e6ea;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.05s ease;
}
.ukm-pet-gallery__thumb:hover {
    border-color: #ff7b02;
}
.ukm-pet-gallery__thumb:active {
    transform: translateY(1px);
}