:root{
  --hopa-primary:#0c6d8f;
  --hopa-secondary:#0a5670;
  --hopa-accent:#00aaff;
}
.hopa-360-shell{max-width:1280px;margin:24px auto;padding:0 16px}
.hopa-360-header{
  background:linear-gradient(135deg,var(--hopa-primary) 0%,var(--hopa-secondary) 100%);
  color:#fff;padding:18px 20px;border-radius:18px 18px 0 0;
}
.hopa-360-header h2{margin:0;color:#fff;font-size:28px;line-height:1.15}
.hopa-360-nav{
  display:flex;gap:12px;flex-wrap:wrap;padding:16px 0;
}
.hopa-360-card{
  background:#fff;border:1px solid #dbe6ed;border-radius:18px;padding:20px;box-shadow:0 12px 28px rgba(0,0,0,.08);
}
.hopa-360-form{
  display:flex;flex-direction:column;gap:18px;
}
.hopa-360-form label{
  display:flex;flex-direction:column;gap:8px;font-weight:700;color:#18303f;
}
.hopa-360-form input[type="text"],
.hopa-360-form input[type="email"],
.hopa-360-form input[type="password"],
.hopa-360-form input[type="url"],
.hopa-360-form textarea,
.hopa-360-form select{
  width:100%;max-width:100%;padding:14px 16px;border:1px solid #cfdce4;border-radius:12px;font-size:16px;line-height:1.35;background:#fff;color:#18303f;box-sizing:border-box;
}
.hopa-360-form textarea{min-height:110px;resize:vertical}
.hopa-grid-2{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;
}
.hopa-360-form .inline{
  display:flex;flex-direction:row;align-items:center;gap:10px;font-weight:400;
}
.hopa-360-form .inline input[type="checkbox"]{
  width:18px;height:18px;margin:0;flex:0 0 auto;
}
.hopa-honeypot{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}
.hopa-links{display:flex;gap:14px;flex-wrap:wrap}
.hopa-form-section{
  border:1px solid #dbe6ed;border-radius:14px;padding:18px;background:#fbfdfe;
}
.hopa-form-section h3{margin:0 0 8px;color:#0a5670}
.hopa-btn{
  display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;border-radius:12px;text-decoration:none;font-weight:700;border:none;cursor:pointer;line-height:1.2;
}
.hopa-btn-primary,.hopa-btn.primary{
  background:var(--hopa-primary);color:#fff !important;
}
.hopa-btn-primary:hover,.hopa-btn.primary:hover{background:var(--hopa-secondary)}
.hopa-btn-secondary,.hopa-btn.secondary{
  background:#edf4f8;color:#18303f !important;
}
.hopa-btn-secondary:hover,.hopa-btn.secondary:hover{background:#e1edf4}
.hopa-360-notice{
  margin-bottom:16px;padding:14px 16px;border-radius:14px;
}
.hopa-360-notice.success{background:#e9f7ef;color:#16623e;border:1px solid #cfead9}
.hopa-360-notice.error{background:#fdeeee;color:#8a2323;border:1px solid #f3d3d3}
.hopa-notice-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.hopa-lockout p{font-size:16px;margin:0 0 12px}
.hopa-action-row{display:flex;gap:12px;flex-wrap:wrap}
.hopa-dashboard-actions{margin-bottom:16px}
.hopa-tour-list{display:grid;gap:14px}
.hopa-tour-row{
  display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border:1px solid #dbe6ed;border-radius:14px;padding:16px;background:#fbfdfe;
}
.hopa-tour-links{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.hopa-tour-row .meta{font-size:13px;color:#627887;margin-top:6px}
.hopa-builder-form .description,.description,.hopa-modal-help{font-size:13px;color:#627887}
.hopa-verify-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9998}
.hopa-verify-modal{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);width:min(560px,92vw);background:#fff;border-radius:18px;overflow:hidden;box-shadow:0 20px 50px rgba(0,0,0,.28);z-index:9999}
.hopa-verify-modal-head{padding:16px 18px;background:linear-gradient(135deg,var(--hopa-primary) 0%,var(--hopa-secondary) 100%);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:12px}
.hopa-verify-modal-head h3{margin:0;color:#fff;font-size:20px}
.hopa-verify-modal-body{padding:18px}
.hopa-verify-modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.hopa-verify-email-chip{display:inline-block;margin-top:10px;padding:8px 12px;border-radius:999px;background:#eef7fb;color:#0a5670;font-weight:700}
@media (max-width:800px){
  .hopa-grid-2{grid-template-columns:1fr}
  .hopa-tour-row{flex-direction:column}
}


/* HOPA 360 builder theme palette swatches */
.hopa-theme-field select { margin-bottom: 10px; }
.hopa-theme-palette-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.hopa-theme-palette-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 10px;
  background: rgba(255,255,255,.75);
}
.hopa-theme-palette-name { font-size: 13px; font-weight: 700; }
.hopa-theme-swatches { display: inline-flex; gap: 4px; flex: 0 0 auto; }
.hopa-theme-swatch {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}


/* HOPA 360 v0.3.9 type-specific details */
.hopa-type-fields {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}
.hopa-type-fields h3 { margin-top: 0; }
.hopa-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px 18px;
    margin-top: 12px;
}
.hopa-checkbox-grid label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}


/* HOPA 360 v0.4.5 safe layout fixes */
.hopa-site-features {
    margin-top: 18px;
}
.hopa-section-label {
    display: block;
    margin: 0 0 12px;
    font-weight: 700;
    color: inherit;
}
.hopa-feature-list {
    display: grid;
    gap: 10px;
    max-width: 520px;
}
.hopa-feature-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 520px !important;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-sizing: border-box !important;
}
.hopa-feature-row span {
    flex: 1 1 auto !important;
    white-space: nowrap !important;
}
.hopa-feature-row input[type="checkbox"] {
    flex: 0 0 auto !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    position: static !important;
    transform: none !important;
}
.hopa-tour-card .hopa-action-row a,
.hopa-tour-card .hopa-action-row button,
.hopa-tour-card .hopa-tour-actions a,
.hopa-tour-card .hopa-tour-actions button,
.hopa-tour-card input[type="submit"],
.hopa-tour-item .hopa-action-row a,
.hopa-tour-item .hopa-action-row button,
.hopa-tour-item input[type="submit"] {
    min-width: 48px !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}


/* HOPA 360 v0.5.0 dashboard text-link actions */
.hopa-tour-row-text-links {
    display: block !important;
}

.hopa-tour-row-content {
    width: 100% !important;
}

.hopa-tour-title-text {
    display: block !important;
    font-size: 1.35em !important;
    line-height: 1.2 !important;
    margin-bottom: 10px !important;
}

.hopa-tour-text-actions {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    flex-wrap: wrap !important;
    margin: 6px 0 12px !important;
}

.hopa-tour-text-actions a,
.hopa-tour-text-actions button.hopa-link-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #1f65a6 !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.hopa-tour-text-actions a:hover,
.hopa-tour-text-actions button.hopa-link-button:hover {
    color: #0b4d82 !important;
}

.hopa-inline-delete-form {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-delete-link {
    color: #a32020 !important;
}

.hopa-tour-row-text-links .meta {
    margin-top: 4px !important;
}

/* Undo compact icon button sizing inherited from earlier builds for this card style */
.hopa-tour-row-text-links a,
.hopa-tour-row-text-links button,
.hopa-tour-row-text-links input[type="submit"] {
    min-width: 0 !important;
    width: auto !important;
    height: auto !important;
    font-size: inherit !important;
}


/* HOPA 360 v0.5.1 force dashboard action buttons to look like text links */
.hopa-tour-row-text-links .hopa-tour-text-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 8px 0 12px !important;
}

.hopa-tour-row-text-links .hopa-tour-text-actions a,
.hopa-tour-row-text-links .hopa-tour-text-actions button,
.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-link-button,
.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-copy-url-btn,
.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-delete-link {
    all: unset !important;
    display: inline !important;
    color: #1f65a6 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.hopa-tour-row-text-links .hopa-tour-text-actions a:hover,
.hopa-tour-row-text-links .hopa-tour-text-actions button:hover {
    text-decoration: underline !important;
    color: #0b4d82 !important;
}

.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-delete-link {
    color: #a32020 !important;
}

.hopa-tour-row-text-links .hopa-inline-delete-form {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* HOPA 360 v0.5.2 Phase 1 edit support */
.hopa-tour-row-text-links .hopa-tour-text-actions {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
    margin: 8px 0 12px !important;
}
.hopa-tour-row-text-links .hopa-tour-text-actions a,
.hopa-tour-row-text-links .hopa-tour-text-actions button,
.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-copy-url-btn,
.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-delete-link {
    all: unset !important;
    display: inline !important;
    color: #1f65a6 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.hopa-tour-row-text-links .hopa-tour-text-actions a:hover,
.hopa-tour-row-text-links .hopa-tour-text-actions button:hover {
    text-decoration: underline !important;
    color: #0b4d82 !important;
}
.hopa-tour-row-text-links .hopa-tour-text-actions .hopa-delete-link {
    color: #a32020 !important;
}
.hopa-inline-delete-form {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
}
.hopa-builder-form input[readonly] {
    background: #f3f6f8 !important;
    color: #607080 !important;
}


/* HOPA 360 v0.5.3 builder controls and success modal */
.hopa-builder-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hopa-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.45);
}

.hopa-modal-box {
    width: min(520px, 100%);
    background: #fff;
    color: #17364a;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
    text-align: center;
}

.hopa-modal-box h3 {
    margin: 0 0 20px;
    font-size: 1.6rem;
}

.hopa-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}


/* HOPA 360 v0.5.4 builder action buttons inline */
.hopa-builder-controls {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    margin-top: 18px !important;
}

.hopa-builder-controls .hopa-btn,
.hopa-builder-controls button,
.hopa-builder-controls a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    white-space: nowrap !important;
}

@media (max-width: 520px) {
    .hopa-builder-controls {
        align-items: stretch !important;
    }
}


/* HOPA 360 v1.0.0 full image management */
.hopa-image-manager {
    margin: 24px 0;
    padding: 22px;
    border: 1px solid rgba(23,48,66,.16);
    border-radius: 22px;
    background: linear-gradient(180deg,#ffffff 0%,#f8fbfd 100%);
    box-shadow: 0 10px 24px rgba(0,0,0,.06);
}

.hopa-image-manager-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.hopa-image-manager h3 {
    margin: 0 0 6px;
}

.hopa-image-manager p {
    margin: 0;
    color: #607080;
}

.hopa-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.hopa-image-card {
    border: 1px solid rgba(23,48,66,.14);
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.05);
}

.hopa-image-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #eef4f8;
}

.hopa-image-card label {
    margin: 10px 0 0;
}

.hopa-remove-photo {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(23,48,66,.10);
    padding-top: 12px;
    color: #a32020;
}

.hopa-photo-update-options {
    display: grid;
    gap: 10px;
    margin: 18px 0;
    padding: 14px;
    border-radius: 16px;
    background: #f3f8fb;
}


/* HOPA 360 v1.0.1 compact image management rows */
.hopa-image-manager {
    margin: 24px 0 !important;
    padding: 22px !important;
    border: 1px solid rgba(23,48,66,.16) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg,#ffffff 0%,#f8fbfd 100%) !important;
    box-shadow: 0 10px 24px rgba(0,0,0,.06) !important;
}

.hopa-image-manager-head {
    margin-bottom: 18px !important;
}

.hopa-image-manager-head h3 {
    margin: 0 0 6px !important;
}

.hopa-image-manager-head p {
    margin: 0 !important;
    color: #607080 !important;
}

.hopa-image-grid,
.hopa-image-card {
    all: unset;
}

.hopa-image-manager-list {
    display: grid !important;
    gap: 0 !important;
    margin: 18px 0 !important;
    border: 1px solid rgba(23,48,66,.12) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.hopa-image-manager-row {
    display: grid !important;
    grid-template-columns: 112px minmax(180px, 1fr) 118px auto !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px !important;
    border-bottom: 1px solid rgba(23,48,66,.12) !important;
    background: #fff !important;
}

.hopa-image-manager-row:last-child {
    border-bottom: 0 !important;
}

.hopa-image-thumb-wrap {
    width: 112px !important;
    height: 70px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #eef4f8 !important;
    border: 1px solid rgba(23,48,66,.10) !important;
}

.hopa-image-thumb-wrap img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.hopa-image-field {
    min-width: 0 !important;
}

.hopa-image-field label {
    display: block !important;
    margin: 0 0 5px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: .25px !important;
    color: #607080 !important;
}

.hopa-image-field input {
    width: 100% !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
}

.hopa-image-order-field input {
    text-align: center !important;
}

.hopa-image-delete-control {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 40px !important;
    padding: 9px 12px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(163,32,32,.22) !important;
    background: #fff5f5 !important;
    color: #a32020 !important;
    font-weight: 800 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.hopa-image-delete-control input {
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.hopa-photo-update-options {
    display: grid !important;
    gap: 10px !important;
    margin: 18px 0 !important;
    padding: 14px !important;
    border-radius: 14px !important;
    background: #f3f8fb !important;
}

@media (max-width: 820px) {
    .hopa-image-manager-row {
        grid-template-columns: 96px 1fr !important;
        grid-template-areas:
            "thumb label"
            "thumb order"
            "thumb delete" !important;
        align-items: center !important;
    }

    .hopa-image-thumb-wrap {
        grid-area: thumb !important;
        width: 96px !important;
        height: 72px !important;
    }

    .hopa-image-label-field {
        grid-area: label !important;
    }

    .hopa-image-order-field {
        grid-area: order !important;
    }

    .hopa-image-delete-control {
        grid-area: delete !important;
        justify-self: start !important;
    }
}

@media (max-width: 520px) {
    .hopa-image-manager-row {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "thumb"
            "label"
            "order"
            "delete" !important;
    }

    .hopa-image-thumb-wrap {
        width: 100% !important;
        height: 150px !important;
    }
}


/* HOPA 360 v1.0.2 forced compact managed-photo rows */
.hopa-managed-photo-list{display:block!important;margin:18px 0!important;border:1px solid rgba(23,48,66,.16)!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important}
.hopa-managed-photo-row{display:grid!important;grid-template-columns:96px minmax(180px,1fr) 110px auto!important;gap:12px!important;align-items:center!important;padding:12px!important;border-bottom:1px solid rgba(23,48,66,.14)!important;background:#fff!important}
.hopa-managed-photo-row:last-child{border-bottom:0!important}
.hopa-managed-photo-thumb{width:96px!important;height:64px!important;overflow:hidden!important;border-radius:10px!important;border:1px solid rgba(23,48,66,.14)!important;background:#eef4f8!important}
.hopa-managed-photo-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;margin:0!important}
.hopa-managed-photo-field{display:block!important;min-width:0!important;margin:0!important}
.hopa-managed-photo-field label{display:block!important;margin:0 0 5px!important;font-size:12px!important;font-weight:800!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.25px!important;color:#607080!important}
.hopa-managed-photo-field input{display:block!important;width:100%!important;min-height:38px!important;margin:0!important;box-sizing:border-box!important}
.hopa-managed-photo-order input{text-align:center!important}
.hopa-managed-photo-delete{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;margin:0!important;padding:9px 12px!important;min-height:38px!important;border:1px solid rgba(163,32,32,.24)!important;border-radius:12px!important;background:#fff5f5!important;color:#a32020!important;font-weight:800!important;white-space:nowrap!important;cursor:pointer!important}
.hopa-managed-photo-delete input{width:18px!important;height:18px!important;margin:0!important}
@media(max-width:820px){.hopa-managed-photo-row{grid-template-columns:90px 1fr!important;grid-template-areas:"thumb label" "thumb order" "thumb del"!important}.hopa-managed-photo-thumb{grid-area:thumb!important;width:90px!important;height:70px!important}.hopa-managed-photo-label{grid-area:label!important}.hopa-managed-photo-order{grid-area:order!important}.hopa-managed-photo-delete{grid-area:del!important;justify-self:start!important}}
@media(max-width:520px){.hopa-managed-photo-row{grid-template-columns:1fr!important;grid-template-areas:"thumb" "label" "order" "del"!important}.hopa-managed-photo-thumb{width:100%!important;height:150px!important}}


/* HOPA 360 v1.0.3 image manager flex-row layout */
.hopa-managed-photo-list{display:block!important;margin:18px 0!important;border:1px solid rgba(23,48,66,.16)!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important}
.hopa-managed-photo-row{display:flex!important;flex-direction:row!important;align-items:center!important;gap:14px!important;padding:12px 14px!important;border-bottom:1px solid rgba(23,48,66,.14)!important;background:#fff!important;min-height:92px!important}
.hopa-managed-photo-row:last-child{border-bottom:0!important}
.hopa-managed-photo-thumb{flex:0 0 112px!important;width:112px!important;height:70px!important;overflow:hidden!important;border-radius:10px!important;border:1px solid rgba(23,48,66,.14)!important;background:#eef4f8!important}
.hopa-managed-photo-thumb img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;object-fit:cover!important;margin:0!important}
.hopa-managed-photo-field{display:block!important;margin:0!important;padding:0!important;min-width:0!important}
.hopa-managed-photo-label{flex:1 1 360px!important}
.hopa-managed-photo-order{flex:0 0 120px!important}
.hopa-managed-photo-field label{display:block!important;margin:0 0 6px!important;padding:0!important;font-size:12px!important;font-weight:800!important;line-height:1.1!important;text-transform:uppercase!important;letter-spacing:.25px!important;color:#607080!important}
.hopa-managed-photo-field input{display:block!important;width:100%!important;min-height:40px!important;margin:0!important;padding:8px 10px!important;box-sizing:border-box!important}
.hopa-managed-photo-order input{text-align:center!important}
.hopa-managed-photo-delete{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:auto!important;min-width:92px!important;max-width:120px!important;height:40px!important;min-height:40px!important;margin:18px 0 0!important;padding:8px 12px!important;border:1px solid rgba(163,32,32,.24)!important;border-radius:12px!important;background:#fff5f5!important;color:#a32020!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;cursor:pointer!important}
.hopa-managed-photo-delete input{width:18px!important;height:18px!important;margin:0!important;padding:0!important;flex:0 0 auto!important}
@media(max-width:760px){.hopa-managed-photo-row{align-items:flex-start!important;flex-wrap:wrap!important}.hopa-managed-photo-thumb{flex:0 0 96px!important;width:96px!important;height:68px!important}.hopa-managed-photo-label{flex:1 1 calc(100% - 120px)!important}.hopa-managed-photo-order{flex:0 0 120px!important;margin-left:110px!important}.hopa-managed-photo-delete{margin-top:18px!important}}
@media(max-width:520px){.hopa-managed-photo-row{display:block!important}.hopa-managed-photo-thumb{width:100%!important;height:150px!important;margin-bottom:12px!important}.hopa-managed-photo-label,.hopa-managed-photo-order{width:100%!important;margin:0 0 12px!important}.hopa-managed-photo-delete{margin:0!important}}


/* HOPA 360 v1.0.4 clean image-manager layout; no inline CSS */
.hopa-image-manager .hopa-managed-photo-list {
    display: block !important;
    width: 100% !important;
    margin: 18px 0 !important;
    border: 1px solid rgba(23,48,66,.16) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #fff !important;
}

.hopa-image-manager .hopa-managed-photo-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 96px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid rgba(23,48,66,.14) !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.hopa-image-manager .hopa-managed-photo-row:last-child {
    border-bottom: 0 !important;
}

.hopa-image-manager .hopa-managed-photo-thumb {
    flex: 0 0 112px !important;
    width: 112px !important;
    height: 70px !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    background: #eef4f8 !important;
}

.hopa-image-manager .hopa-managed-photo-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-image-manager .hopa-managed-photo-field {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
    align-self: center !important;
}

.hopa-image-manager .hopa-managed-photo-label {
    flex: 1 1 auto !important;
    min-width: 220px !important;
}

.hopa-image-manager .hopa-managed-photo-order {
    flex: 0 0 125px !important;
    width: 125px !important;
}

.hopa-image-manager .hopa-managed-photo-field label {
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
    letter-spacing: .25px !important;
    color: #607080 !important;
}

.hopa-image-manager .hopa-managed-photo-field input {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
}

.hopa-image-manager .hopa-managed-photo-order input {
    text-align: center !important;
}

.hopa-image-manager .hopa-managed-photo-delete {
    flex: 0 0 104px !important;
    width: 104px !important;
    height: 40px !important;
    min-height: 40px !important;
    align-self: center !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 18px 0 0 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(163,32,32,.24) !important;
    border-radius: 12px !important;
    background: #fff5f5 !important;
    color: #a32020 !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.hopa-image-manager .hopa-managed-photo-delete input {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-image-manager .hopa-managed-photo-delete span {
    display: inline-block !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 860px) {
    .hopa-image-manager .hopa-managed-photo-row {
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .hopa-image-manager .hopa-managed-photo-label {
        flex: 1 1 calc(100% - 140px) !important;
    }

    .hopa-image-manager .hopa-managed-photo-order {
        flex: 0 0 125px !important;
        margin-left: 126px !important;
    }

    .hopa-image-manager .hopa-managed-photo-delete {
        margin-top: 18px !important;
    }
}

@media (max-width: 560px) {
    .hopa-image-manager .hopa-managed-photo-row {
        display: block !important;
    }

    .hopa-image-manager .hopa-managed-photo-thumb {
        width: 100% !important;
        height: 150px !important;
        margin-bottom: 12px !important;
    }

    .hopa-image-manager .hopa-managed-photo-label,
    .hopa-image-manager .hopa-managed-photo-order {
        width: 100% !important;
        margin: 0 0 12px !important;
    }

    .hopa-image-manager .hopa-managed-photo-delete {
        margin: 0 !important;
    }
}


/* HOPA 360 v1.0.5 tighten image-manager spacing */
.hopa-image-manager .hopa-managed-photo-row {
    min-height: 82px !important;
    padding: 10px 14px !important;
    gap: 12px !important;
}

.hopa-image-manager .hopa-managed-photo-thumb {
    height: 62px !important;
}

.hopa-image-manager .hopa-managed-photo-field {
    gap: 0 !important;
}

.hopa-image-manager .hopa-managed-photo-field label {
    margin: 0 0 2px !important;
    padding: 0 !important;
    line-height: 1 !important;
    min-height: 0 !important;
}

.hopa-image-manager .hopa-managed-photo-field input {
    height: 36px !important;
    min-height: 36px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.hopa-image-manager .hopa-managed-photo-delete {
    height: 36px !important;
    min-height: 36px !important;
    margin-top: 14px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Compact keep/replace photo options */
.hopa-image-manager .hopa-photo-update-options {
    display: grid !important;
    gap: 6px !important;
    margin: 12px 0 !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

.hopa-image-manager .hopa-photo-update-options label,
.hopa-image-manager .hopa-photo-update-options label.inline {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    line-height: 1.2 !important;
    min-height: 0 !important;
}

.hopa-image-manager .hopa-photo-update-options input[type="radio"] {
    flex: 0 0 auto !important;
    margin: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

/* Compact upload label inside image manager */
.hopa-image-manager > label {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
}

.hopa-image-manager > label input[type="file"] {
    margin-top: 4px !important;
}

@media (max-width: 560px) {
    .hopa-image-manager .hopa-managed-photo-row {
        min-height: 0 !important;
    }

    .hopa-image-manager .hopa-managed-photo-thumb {
        height: 130px !important;
    }

    .hopa-image-manager .hopa-managed-photo-delete {
        margin-top: 0 !important;
    }
}


/* HOPA 360 v1.0.7 progress modal and new-photo previews */
.hopa-progress-modal{display:none;position:fixed;inset:0;z-index:999999;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.48)}
.hopa-progress-modal.is-visible{display:flex!important}
.hopa-progress-box{width:min(460px,100%);padding:30px;border-radius:24px;background:#fff;text-align:center;box-shadow:0 24px 80px rgba(0,0,0,.32);color:#17364a}
.hopa-spinner{width:58px;height:58px;margin:0 auto 18px;border-radius:50%;border:6px solid #d9ebf2;border-top-color:#0b7890;animation:hopaSpin .85s linear infinite}
@keyframes hopaSpin{to{transform:rotate(360deg)}}
.hopa-progress-box h3{margin:0 0 8px}.hopa-progress-box p{margin:0;color:#607080}
.hopa-new-photo-preview{margin:18px 0;padding:16px;border:1px dashed rgba(11,120,144,.45);border-radius:18px;background:#f7fbfd}
.hopa-new-photo-preview h4{margin:0 0 4px}.hopa-new-photo-preview p{margin:0 0 12px;color:#607080}
.hopa-new-photo-list{display:grid;gap:10px}
.hopa-new-photo-row{display:flex;align-items:center;gap:14px;padding:10px;border:1px solid rgba(23,48,66,.12);border-radius:14px;background:#fff}
.hopa-new-photo-thumb{flex:0 0 112px;width:112px;height:70px;overflow:hidden;border-radius:10px;background:#eef4f8;border:1px solid rgba(23,48,66,.14)}
.hopa-new-photo-thumb img{width:100%;height:100%;object-fit:cover;display:block;margin:0}
.hopa-new-photo-field{display:flex;flex-direction:column;justify-content:center;margin:0;min-width:0}
.hopa-new-photo-label{flex:1 1 auto}.hopa-new-photo-order{flex:0 0 125px}
.hopa-new-photo-field label{margin:0 0 2px!important;padding:0!important;font-size:12px!important;font-weight:800!important;line-height:1!important;text-transform:uppercase!important;color:#607080!important}
.hopa-new-photo-field input{height:36px!important;min-height:36px!important;margin:0!important;padding:6px 10px!important}
@media(max-width:560px){.hopa-new-photo-row{display:block}.hopa-new-photo-thumb{width:100%;height:140px;margin-bottom:12px}.hopa-new-photo-label,.hopa-new-photo-order{width:100%;margin-bottom:10px}}


/* HOPA 360 v1.0.8 file picker + refresh images button */
.hopa-file-refresh-row {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin: 14px 0 8px !important;
}

.hopa-file-refresh-label {
    flex: 1 1 420px !important;
    min-width: 260px !important;
    margin: 0 !important;
}

.hopa-file-refresh-label input[type="file"] {
    margin-top: 6px !important;
}

.hopa-refresh-images-btn {
    flex: 0 0 auto !important;
    margin: 0 0 0 !important;
    white-space: nowrap !important;
    min-height: 42px !important;
}


/* HOPA 360 v1.0.10 draggable photo card image manager */
.hopa-image-manager .hopa-managed-photo-list,
.hopa-new-photo-list.hopa-photo-sort-list {
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 18px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.hopa-image-manager .hopa-managed-photo-card,
.hopa-new-photo-row {
    display: grid !important;
    grid-template-columns: 42px 140px minmax(220px, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    padding: 14px !important;
    border: 1px solid rgba(23,48,66,.15) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.05) !important;
    box-sizing: border-box !important;
}

.hopa-image-manager .hopa-managed-photo-card.is-dragging,
.hopa-new-photo-row.is-dragging {
    opacity: .55 !important;
    box-shadow: 0 16px 35px rgba(0,0,0,.16) !important;
}

.hopa-photo-drag-handle {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    border-radius: 12px !important;
    background: #f1f7fa !important;
    color: #17364a !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: grab !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    touch-action: none !important;
}

.hopa-photo-drag-handle:active {
    cursor: grabbing !important;
}

.hopa-managed-photo-thumb,
.hopa-new-photo-thumb {
    width: 140px !important;
    height: 84px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    border-radius: 14px !important;
    background: #eef4f8 !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
    display: block !important;
}

.hopa-managed-photo-thumb img,
.hopa-new-photo-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-managed-photo-caption,
.hopa-new-photo-caption {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-managed-photo-caption label,
.hopa-new-photo-caption label {
    display: block !important;
    margin: 0 0 4px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: .25px !important;
    color: #607080 !important;
}

.hopa-managed-photo-caption input,
.hopa-new-photo-caption input {
    height: 40px !important;
    min-height: 40px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
}

.hopa-managed-photo-delete {
    justify-self: end !important;
    width: auto !important;
    min-width: 104px !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(163,32,32,.24) !important;
    border-radius: 12px !important;
    background: #fff5f5 !important;
    color: #a32020 !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.hopa-managed-photo-delete input {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-managed-photo-delete span {
    line-height: 1 !important;
}

.hopa-image-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.55);
}

.hopa-image-preview-modal.is-visible {
    display: flex !important;
}

.hopa-image-preview-dialog {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    text-align: center;
}

.hopa-image-preview-dialog img {
    display: block;
    width: 640px;
    height: 480px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #eef4f8;
}

.hopa-image-preview-dialog .hopa-btn {
    margin: 0 auto !important;
}

@media (max-width: 760px) {
    .hopa-image-manager .hopa-managed-photo-card,
    .hopa-new-photo-row {
        grid-template-columns: 42px 112px minmax(0, 1fr) !important;
        grid-template-areas:
            "handle thumb caption"
            "handle thumb delete" !important;
    }

    .hopa-photo-drag-handle { grid-area: handle !important; }
    .hopa-managed-photo-thumb, .hopa-new-photo-thumb { grid-area: thumb !important; width: 112px !important; height: 78px !important; }
    .hopa-managed-photo-caption, .hopa-new-photo-caption { grid-area: caption !important; }
    .hopa-managed-photo-delete { grid-area: delete !important; justify-self: start !important; }
}

@media (max-width: 520px) {
    .hopa-image-manager .hopa-managed-photo-card,
    .hopa-new-photo-row {
        grid-template-columns: 42px 1fr !important;
        grid-template-areas:
            "handle thumb"
            "caption caption"
            "delete delete" !important;
    }

    .hopa-managed-photo-thumb,
    .hopa-new-photo-thumb {
        width: 100% !important;
        height: 150px !important;
    }
}


/* HOPA 360 v1.0.11 photo card layout + pointer drag fix */
.hopa-image-manager .hopa-managed-photo-list,
.hopa-new-photo-list.hopa-photo-sort-list,
.hopa-new-photo-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    margin: 18px 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
    background: transparent !important;
}

.hopa-image-manager .hopa-managed-photo-card,
.hopa-image-manager [data-hopa-photo-card],
.hopa-new-photo-row,
.hopa-new-photo-list [data-hopa-photo-card] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 118px !important;
    padding: 14px !important;
    border: 1px solid rgba(23,48,66,.15) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 8px 18px rgba(0,0,0,.05) !important;
    box-sizing: border-box !important;
}

.hopa-image-manager .hopa-managed-photo-card.is-dragging,
.hopa-image-manager [data-hopa-photo-card].is-dragging,
.hopa-new-photo-row.is-dragging {
    opacity: .58 !important;
    transform: scale(.995) !important;
    box-shadow: 0 16px 35px rgba(0,0,0,.16) !important;
}

.hopa-photo-drag-handle {
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    border-radius: 12px !important;
    background: #f1f7fa !important;
    color: #17364a !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: grab !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    touch-action: none !important;
    user-select: none !important;
}

.hopa-photo-drag-handle:active,
.hopa-photo-drag-handle.is-active-drag-handle {
    cursor: grabbing !important;
    background: #e3f1f7 !important;
}

.hopa-managed-photo-thumb,
.hopa-new-photo-thumb,
button.hopa-managed-photo-thumb,
button.hopa-new-photo-thumb {
    flex: 0 0 150px !important;
    width: 150px !important;
    height: 92px !important;
    min-width: 150px !important;
    min-height: 92px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    border-radius: 14px !important;
    background: #eef4f8 !important;
    overflow: hidden !important;
    cursor: zoom-in !important;
    display: block !important;
    box-sizing: border-box !important;
}

.hopa-managed-photo-thumb img,
.hopa-new-photo-thumb img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-managed-photo-caption,
.hopa-new-photo-caption {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-managed-photo-caption label,
.hopa-new-photo-caption label {
    display: block !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
    letter-spacing: .25px !important;
    color: #607080 !important;
}

.hopa-managed-photo-caption input,
.hopa-new-photo-caption input {
    height: 40px !important;
    min-height: 40px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
}

.hopa-managed-photo-delete {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 104px !important;
    height: 40px !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid rgba(163,32,32,.24) !important;
    border-radius: 12px !important;
    background: #fff5f5 !important;
    color: #a32020 !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.hopa-managed-photo-delete input {
    flex: 0 0 auto !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.hopa-managed-photo-delete span {
    line-height: 1 !important;
}

.hopa-image-preview-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.55);
}

.hopa-image-preview-modal.is-visible {
    display: flex !important;
}

.hopa-image-preview-dialog {
    width: min(720px, 100%);
    background: #fff;
    border-radius: 22px;
    padding: 18px;
    box-shadow: 0 24px 80px rgba(0,0,0,.35);
    text-align: center;
}

.hopa-image-preview-dialog img {
    display: block;
    width: 640px;
    height: 480px;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: 14px;
    background: #eef4f8;
}

.hopa-image-preview-dialog .hopa-btn {
    margin: 0 auto !important;
}

@media (max-width: 760px) {
    .hopa-image-manager .hopa-managed-photo-card,
    .hopa-image-manager [data-hopa-photo-card],
    .hopa-new-photo-row {
        flex-wrap: wrap !important;
        align-items: center !important;
    }

    .hopa-managed-photo-caption,
    .hopa-new-photo-caption {
        flex: 1 1 calc(100% - 220px) !important;
        min-width: 180px !important;
    }

    .hopa-managed-photo-delete {
        margin-left: 56px !important;
    }
}

@media (max-width: 520px) {
    .hopa-image-manager .hopa-managed-photo-card,
    .hopa-image-manager [data-hopa-photo-card],
    .hopa-new-photo-row {
        display: grid !important;
        grid-template-columns: 42px 1fr !important;
        gap: 12px !important;
    }

    .hopa-managed-photo-thumb,
    .hopa-new-photo-thumb,
    button.hopa-managed-photo-thumb,
    button.hopa-new-photo-thumb {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        height: 150px !important;
    }

    .hopa-managed-photo-caption,
    .hopa-new-photo-caption {
        grid-column: 1 / -1 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .hopa-managed-photo-delete {
        grid-column: 1 / -1 !important;
        margin-left: 0 !important;
        justify-self: start !important;
    }
}


/* HOPA 360 v1.0.12 filename display and preview modal caption */
.hopa-image-preview-filename {
    display: block !important;
    margin: -4px auto 14px !important;
    color: #17364a !important;
    font-size: 12pt !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}

.hopa-managed-photo-caption input,
.hopa-new-photo-caption input {
    font-size: 12pt !important;
}

.hopa-new-photo-preview p,
.hopa-image-manager p {
    font-size: 12pt !important;
}


/* HOPA 360 v1.0.13 theme palette, filenames, and preview cache polish */
.hopa-theme-palette-row {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    cursor: pointer !important;
    text-align: left !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    background: #fff !important;
}

.hopa-theme-palette-row:hover,
.hopa-theme-palette-row.is-selected {
    border-color: #0b7890 !important;
    box-shadow: 0 0 0 3px rgba(11,120,144,.14) !important;
}

.hopa-image-preview-filename {
    display: block !important;
    margin: -4px auto 14px !important;
    color: #17364a !important;
    font-size: 12pt !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-align: center !important;
}


/* HOPA 360 v1.0.14 restore visible theme palette labels */
.hopa-theme-palette-row .hopa-theme-palette-name {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #17364a !important;
    font-weight: 800 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    text-align: left !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

.hopa-theme-palette-row .hopa-theme-swatches {
    flex: 0 0 auto !important;
}


/* HOPA 360 v1.0.17 reliable move controls */
.hopa-photo-order-controls {
    flex: 0 0 46px !important;
    display: grid !important;
    gap: 5px !important;
    align-items: center !important;
    justify-items: center !important;
}

.hopa-photo-order-controls .hopa-photo-drag-handle,
.hopa-photo-move-btn {
    width: 38px !important;
    height: 34px !important;
    min-width: 38px !important;
    min-height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(23,48,66,.14) !important;
    border-radius: 10px !important;
    background: #f1f7fa !important;
    color: #17364a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.hopa-photo-order-controls .hopa-photo-drag-handle {
    font-size: 20px !important;
    cursor: grab !important;
}

.hopa-photo-move-btn:hover,
.hopa-photo-order-controls .hopa-photo-drag-handle:hover {
    background: #e3f1f7 !important;
}


/* HOPA 360 v1.0.19 photo caption placeholders */
.hopa-managed-photo-caption input::placeholder,
.hopa-new-photo-caption input::placeholder {
    color: #8b9aa5 !important;
    opacity: 1 !important;
    font-style: italic !important;
}


/* HOPA 360 v1.0.21 tightened login layout */
.hopa-360-login .hopa-card,
.hopa-login .hopa-card,
.hopa-auth-card,
.hopa-360-form.hopa-login-form,
.hopa-login-form {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

.hopa-login-form,
.hopa-360-form.hopa-login-form {
    display: grid !important;
    gap: 16px !important;
}

.hopa-login-form label,
.hopa-360-form.hopa-login-form label {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.hopa-login-form label,
.hopa-login-form .hopa-field-label,
.hopa-360-form.hopa-login-form label,
.hopa-360-form.hopa-login-form .hopa-field-label {
    line-height: 1.15 !important;
}

.hopa-login-form input[type="text"],
.hopa-login-form input[type="email"],
.hopa-login-form input[type="password"],
.hopa-360-form.hopa-login-form input[type="text"],
.hopa-360-form.hopa-login-form input[type="email"],
.hopa-360-form.hopa-login-form input[type="password"] {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

.hopa-login-form .hopa-remember-row,
.hopa-360-form.hopa-login-form .hopa-remember-row,
.hopa-login-form label:has(input[type="checkbox"]),
.hopa-360-form.hopa-login-form label:has(input[type="checkbox"]) {
    margin-top: 2px !important;
    margin-bottom: 2px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.hopa-login-form button,
.hopa-login-form .hopa-btn,
.hopa-360-form.hopa-login-form button,
.hopa-360-form.hopa-login-form .hopa-btn {
    margin-top: 8px !important;
}

/* Fallback for login cards whose fields are direct children without a specific login class */
.hopa-shell .hopa-card form input[name="log"],
.hopa-shell .hopa-card form input[name="pwd"] {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

.hopa-shell .hopa-card form label {
    margin-bottom: 0 !important;
}

.hopa-shell .hopa-card form p {
    margin-top: 10px !important;
    margin-bottom: 10px !important;
}

@media (max-width: 640px) {
    .hopa-360-login .hopa-card,
    .hopa-login .hopa-card,
    .hopa-auth-card,
    .hopa-360-form.hopa-login-form,
    .hopa-login-form {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }
}


/* HOPA 360 v1.0.22 FORCE tightened login layout
   These selectors are intentionally heavy to override Elementor/theme form spacing. */

body .hopa-shell .hopa-card.hopa-login-card-force,
body .hopa-shell .hopa-card:has(form.hopa-force-tight-login),
body .hopa-shell .hopa-card:has(.hopa-login-form),
body .hopa-360-login .hopa-card,
body .hopa-login .hopa-card,
body .hopa-auth-card {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
    min-height: 0 !important;
}

body .hopa-shell form.hopa-force-tight-login,
body .hopa-shell form.hopa-login-form,
body form.hopa-360-form.hopa-login-form,
body form.hopa-force-tight-login {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
}

body .hopa-shell form.hopa-force-tight-login > *,
body .hopa-shell form.hopa-login-form > *,
body form.hopa-360-form.hopa-login-form > *,
body form.hopa-force-tight-login > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body .hopa-shell form.hopa-force-tight-login label,
body .hopa-shell form.hopa-login-form label,
body form.hopa-360-form.hopa-login-form label,
body form.hopa-force-tight-login label {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    min-height: 0 !important;
}

body .hopa-shell form.hopa-force-tight-login label:not(:has(input[type="checkbox"])),
body .hopa-shell form.hopa-login-form label:not(:has(input[type="checkbox"])),
body form.hopa-360-form.hopa-login-form label:not(:has(input[type="checkbox"])),
body form.hopa-force-tight-login label:not(:has(input[type="checkbox"])) {
    font-size: inherit !important;
}

body .hopa-shell form.hopa-force-tight-login input[type="text"],
body .hopa-shell form.hopa-force-tight-login input[type="email"],
body .hopa-shell form.hopa-force-tight-login input[type="password"],
body .hopa-shell form.hopa-login-form input[type="text"],
body .hopa-shell form.hopa-login-form input[type="email"],
body .hopa-shell form.hopa-login-form input[type="password"],
body form.hopa-360-form.hopa-login-form input[type="text"],
body form.hopa-360-form.hopa-login-form input[type="email"],
body form.hopa-360-form.hopa-login-form input[type="password"],
body form.hopa-force-tight-login input[type="text"],
body form.hopa-force-tight-login input[type="email"],
body form.hopa-force-tight-login input[type="password"],
body .hopa-shell .hopa-card form input[name="log"],
body .hopa-shell .hopa-card form input[name="pwd"] {
    display: block !important;
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 48px !important;
    height: 58px !important;
    line-height: 1.2 !important;
}

body .hopa-shell form.hopa-force-tight-login input[type="checkbox"],
body .hopa-shell form.hopa-login-form input[type="checkbox"],
body form.hopa-360-form.hopa-login-form input[type="checkbox"],
body form.hopa-force-tight-login input[type="checkbox"] {
    margin: 0 10px 0 0 !important;
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
}

body .hopa-shell form.hopa-force-tight-login label:has(input[type="checkbox"]),
body .hopa-shell form.hopa-login-form label:has(input[type="checkbox"]),
body form.hopa-360-form.hopa-login-form label:has(input[type="checkbox"]),
body form.hopa-force-tight-login label:has(input[type="checkbox"]),
body .hopa-login-form .hopa-remember-row,
body .hopa-360-form.hopa-login-form .hopa-remember-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    padding: 0 !important;
    min-height: 34px !important;
    line-height: 1.1 !important;
}

body .hopa-shell form.hopa-force-tight-login button,
body .hopa-shell form.hopa-force-tight-login .hopa-btn,
body .hopa-shell form.hopa-login-form button,
body .hopa-shell form.hopa-login-form .hopa-btn,
body form.hopa-360-form.hopa-login-form button,
body form.hopa-360-form.hopa-login-form .hopa-btn,
body form.hopa-force-tight-login button,
body form.hopa-force-tight-login .hopa-btn {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    min-height: 64px !important;
}

/* Elementor sometimes injects paragraph wrappers around form rows. */
body .hopa-shell form.hopa-force-tight-login p,
body .hopa-shell form.hopa-login-form p,
body form.hopa-360-form.hopa-login-form p,
body form.hopa-force-tight-login p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

/* Nuclear fallback: collapse large empty vertical space in the login card only. */
body .hopa-shell .hopa-card.hopa-login-card-force br,
body .hopa-shell .hopa-card:has(form.hopa-force-tight-login) br,
body .hopa-shell .hopa-card:has(.hopa-login-form) br {
    display: none !important;
}

@media (max-width: 640px) {
    body .hopa-shell .hopa-card.hopa-login-card-force,
    body .hopa-shell .hopa-card:has(form.hopa-force-tight-login),
    body .hopa-shell .hopa-card:has(.hopa-login-form),
    body .hopa-360-login .hopa-card,
    body .hopa-login .hopa-card,
    body .hopa-auth-card {
        padding-top: 22px !important;
        padding-bottom: 22px !important;
    }
}


/* HOPA 360 v1.0.23 hard login card height/spacing fix */

/* Force login page wrapper/card to shrink to actual form content. */
body .hopa-shell:has(form.hopa-force-tight-login),
body .hopa-shell:has(form.hopa-login-form) {
    align-items: flex-start !important;
}

body .hopa-shell .hopa-card.hopa-login-card-force,
body .hopa-shell .hopa-card:has(form.hopa-force-tight-login),
body .hopa-shell .hopa-card:has(form.hopa-login-form),
body .hopa-shell .hopa-card:has(input[name="log"]):has(input[name="pwd"]) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 26px 36px 30px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
    display: block !important;
}

/* Kill any giant Elementor/theme gaps inside the login form. */
body .hopa-shell form.hopa-force-tight-login,
body .hopa-shell form.hopa-login-form,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) {
    height: auto !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    row-gap: 14px !important;
    gap: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Make every direct child collapse to normal height. */
body .hopa-shell form.hopa-force-tight-login > *,
body .hopa-shell form.hopa-login-form > *,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Tight field labels. */
body .hopa-shell form.hopa-force-tight-login label,
body .hopa-shell form.hopa-login-form label,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) label {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.15 !important;
}

/* Input boxes should be normal height and close to labels. */
body .hopa-shell form.hopa-force-tight-login input[name="log"],
body .hopa-shell form.hopa-force-tight-login input[name="pwd"],
body .hopa-shell form.hopa-login-form input[name="log"],
body .hopa-shell form.hopa-login-form input[name="pwd"],
body .hopa-shell .hopa-card form input[name="log"],
body .hopa-shell .hopa-card form input[name="pwd"] {
    height: 58px !important;
    min-height: 48px !important;
    max-height: 58px !important;
    margin: 6px 0 0 !important;
    padding: 10px 14px !important;
    line-height: 1.2 !important;
}

/* Remember row. */
body .hopa-shell form.hopa-force-tight-login label:has(input[type="checkbox"]),
body .hopa-shell form.hopa-login-form label:has(input[type="checkbox"]),
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) label:has(input[type="checkbox"]) {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 4px 0 2px !important;
    padding: 0 !important;
    min-height: 34px !important;
    line-height: 1.1 !important;
}

body .hopa-shell form.hopa-force-tight-login input[type="checkbox"],
body .hopa-shell form.hopa-login-form input[type="checkbox"],
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) input[type="checkbox"] {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
}

/* Button close to remember row. */
body .hopa-shell form.hopa-force-tight-login button,
body .hopa-shell form.hopa-force-tight-login .hopa-btn,
body .hopa-shell form.hopa-login-form button,
body .hopa-shell form.hopa-login-form .hopa-btn,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) button,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) .hopa-btn {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
}

/* Remove injected paragraph/br whitespace. */
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) p,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) div,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) br {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) br {
    display: none !important;
}

/* If the theme is forcing huge label blocks, override that too. */
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) label,
body .hopa-shell .hopa-card form:has(input[name="log"]):has(input[name="pwd"]) strong {
    min-height: 0 !important;
}

/* Mobile */
@media (max-width: 640px) {
    body .hopa-shell .hopa-card.hopa-login-card-force,
    body .hopa-shell .hopa-card:has(form.hopa-force-tight-login),
    body .hopa-shell .hopa-card:has(form.hopa-login-form),
    body .hopa-shell .hopa-card:has(input[name="log"]):has(input[name="pwd"]) {
        padding: 22px 24px 26px !important;
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }
}


/* HOPA 360 v1.0.24 compact login markup */
.hopa-card.hopa-compact-login-card {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 26px 36px 30px !important;
    margin-top: 18px !important;
    margin-bottom: 18px !important;
}

.hopa-compact-login-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.hopa-compact-login-field,
.hopa-compact-login-submit {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.hopa-compact-login-field label {
    display: block !important;
    margin: 0 0 6px !important;
    padding: 0 !important;
    line-height: 1.12 !important;
}

.hopa-compact-login-field input {
    display: block !important;
    width: 100% !important;
    height: 58px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    box-sizing: border-box !important;
}

.hopa-compact-login-remember {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 2px 0 !important;
    padding: 0 !important;
    line-height: 1.1 !important;
}

.hopa-compact-login-remember input {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    margin: 0 !important;
}

.hopa-compact-login-submit {
    margin-top: 8px !important;
}

.hopa-compact-login-submit .hopa-btn,
.hopa-compact-login-submit button {
    width: 100% !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 !important;
}


/* HOPA 360 v1.0.25 tight builder layout */

/* Tighten the large builder card/form spacing without touching dashboard/login/public tours. */
body .hopa-shell form.hopa-builder-form,
body .hopa-shell .hopa-builder-form,
body form.hopa-360-form.hopa-builder-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    row-gap: 12px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Collapse huge form card padding on the builder page. */
body .hopa-shell .hopa-card:has(form.hopa-builder-form),
body .hopa-shell .hopa-card:has(.hopa-builder-form),
body .hopa-shell .hopa-builder-form-wrapper,
body .hopa-builder-form-wrapper,
body .hopa-builder-card {
    padding-top: 28px !important;
    padding-bottom: 32px !important;
    min-height: 0 !important;
    height: auto !important;
}

/* Remove oversized margins around each builder field row. */
body .hopa-shell form.hopa-builder-form > *,
body .hopa-shell .hopa-builder-form > *,
body form.hopa-360-form.hopa-builder-form > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Tighten labels and their controls. */
body .hopa-shell form.hopa-builder-form label,
body .hopa-shell .hopa-builder-form label,
body form.hopa-360-form.hopa-builder-form label {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.15 !important;
}

/* Inputs/selects/textareas should sit close to labels. */
body .hopa-shell form.hopa-builder-form input,
body .hopa-shell form.hopa-builder-form select,
body .hopa-shell form.hopa-builder-form textarea,
body .hopa-shell .hopa-builder-form input,
body .hopa-shell .hopa-builder-form select,
body .hopa-shell .hopa-builder-form textarea,
body form.hopa-360-form.hopa-builder-form input,
body form.hopa-360-form.hopa-builder-form select,
body form.hopa-360-form.hopa-builder-form textarea {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
}

/* Kill injected paragraph/br spacing inside the builder form. */
body .hopa-shell form.hopa-builder-form p,
body .hopa-shell .hopa-builder-form p,
body form.hopa-360-form.hopa-builder-form p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

body .hopa-shell form.hopa-builder-form br,
body .hopa-shell .hopa-builder-form br,
body form.hopa-360-form.hopa-builder-form br {
    display: none !important;
}

/* Tighten generated sections/conditional detail groups. */
body .hopa-shell .hopa-builder-form .hopa-tour-type-fields,
body .hopa-shell .hopa-builder-form .hopa-builder-section,
body .hopa-shell .hopa-builder-form .hopa-field-group,
body .hopa-shell .hopa-builder-form .hopa-rv-fields,
body .hopa-shell .hopa-builder-form .hopa-rvsite-fields,
body .hopa-shell .hopa-builder-form .hopa-home-fields {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Specific fix for the big blank space after Tour Type. */
body .hopa-shell form.hopa-builder-form label:has(select[name="tour_type"]),
body .hopa-shell .hopa-builder-form label:has(select[name="tour_type"]) {
    margin-bottom: 0 !important;
}

/* Specific fix for Price immediately after Tour Type. */
body .hopa-shell form.hopa-builder-form label:has(input[name="price"]),
body .hopa-shell .hopa-builder-form label:has(input[name="price"]) {
    margin-top: 0 !important;
}

/* Some Elementor/theme CSS may apply large vertical rhythm to labels following labels. */
body .hopa-shell form.hopa-builder-form label + label,
body .hopa-shell .hopa-builder-form label + label {
    margin-top: 0 !important;
}

/* Keep major image manager/content sections readable, not crushed. */
body .hopa-shell .hopa-builder-form .hopa-image-manager,
body .hopa-shell .hopa-builder-form .hopa-new-photo-preview {
    margin-top: 14px !important;
    margin-bottom: 14px !important;
}

/* Builder action buttons stay close to form content. */
body .hopa-shell .hopa-builder-form .hopa-builder-controls {
    margin-top: 18px !important;
}

/* Mobile */
@media (max-width: 640px) {
    body .hopa-shell .hopa-card:has(form.hopa-builder-form),
    body .hopa-shell .hopa-card:has(.hopa-builder-form),
    body .hopa-shell .hopa-builder-form-wrapper,
    body .hopa-builder-form-wrapper,
    body .hopa-builder-card {
        padding-top: 22px !important;
        padding-bottom: 26px !important;
    }

    body .hopa-shell form.hopa-builder-form,
    body .hopa-shell .hopa-builder-form,
    body form.hopa-360-form.hopa-builder-form {
        gap: 14px !important;
        row-gap: 14px !important;
    }
}


/* HOPA 360 v1.0.30 map/floorplan hotspot manager */
.hopa-map-hotspot-manager{margin:18px 0!important;padding:18px!important;border:1px solid rgba(23,48,66,.14)!important;border-radius:18px!important;background:#f8fbfd!important}
.hopa-upload-help{margin:10px 0 14px!important;padding:12px 14px!important;border:1px solid rgba(11,120,144,.22)!important;border-radius:14px!important;background:#fff!important;color:#17364a!important;line-height:1.45!important}
.hopa-map-editor{margin-top:14px!important}.hopa-map-stage{position:relative!important;display:inline-block!important;max-width:100%!important;border:1px solid rgba(23,48,66,.16)!important;border-radius:16px!important;overflow:hidden!important;background:#eef4f8!important;cursor:crosshair!important}.hopa-map-stage img{display:block!important;max-width:100%!important;height:auto!important;margin:0!important}.hopa-map-hotspot-layer{position:absolute!important;inset:0!important}.hopa-map-hotspot{position:absolute!important;transform:translate(-50%,-50%)!important;width:var(--hopa-hotspot-size,34px)!important;height:var(--hopa-hotspot-size,34px)!important;border-radius:999px!important;border:var(--hopa-hotspot-border-width,3px) solid var(--hopa-hotspot-border-color,#fff)!important;background:var(--hopa-hotspot-color,#0b7890)!important;color:var(--hopa-hotspot-text-color,#fff)!important;font-weight:800!important;font-size:var(--hopa-hotspot-font-size,14px)!important;display:flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 4px 14px rgba(0,0,0,.28)!important;cursor:grab!important;padding:0!important;margin:0!important;touch-action:none!important}.hopa-map-help{margin:8px 0 0!important;color:#607080!important;font-size:14px!important}.hopa-map-hotspot-list-wrap{margin-top:16px!important}.hopa-map-hotspot-list-head{display:flex!important;justify-content:space-between!important;align-items:center!important;gap:12px!important;margin-bottom:10px!important}.hopa-map-hotspot-list{display:grid!important;gap:10px!important}.hopa-map-hotspot-row{display:grid!important;grid-template-columns:42px 1fr 1fr auto!important;gap:12px!important;align-items:end!important;padding:12px!important;border:1px solid rgba(23,48,66,.14)!important;border-radius:14px!important;background:#fff!important}.hopa-map-hotspot-number{width:var(--hopa-hotspot-size,34px)!important;height:var(--hopa-hotspot-size,34px)!important;border-radius:999px!important;background:#0b7890!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:800!important;margin-bottom:4px!important}.hopa-map-hotspot-row label{margin:0!important}.hopa-map-hotspot-row input,.hopa-map-hotspot-row select{margin-top:5px!important}.hopa-btn.danger{color:#a32020!important;border-color:rgba(163,32,32,.24)!important;background:#fff5f5!important}@media(max-width:800px){.hopa-map-hotspot-row{grid-template-columns:42px 1fr!important}.hopa-map-hotspot-row .hopa-btn{grid-column:2!important;justify-self:start!important}}


/* HOPA 360 v1.0.35 rich description editor */
.hopa-rich-description-editor {
    margin-top: 6px !important;
}
.hopa-rich-description-editor .wp-editor-wrap {
    max-width: 100% !important;
}
.hopa-rich-description-editor textarea {
    min-height: 180px !important;
}


/* HOPA 360 v1.0.36 improved rich description editor */
.hopa-rich-description-editor {
    margin-top: 8px !important;
}

.hopa-rich-description-editor .wp-editor-wrap,
.hopa-rich-description-editor .wp-editor-container {
    max-width: 100% !important;
}

.hopa-rich-description-editor .quicktags-toolbar,
.hopa-rich-description-editor .mce-toolbar-grp {
    border-radius: 10px 10px 0 0 !important;
}

.hopa-rich-description-editor textarea {
    min-height: 220px !important;
    font-family: Arial, sans-serif !important;
    line-height: 1.45 !important;
}

.tour-description-content ul,
.tour-description-content ol {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-left: 24px !important;
}

.tour-description-content li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    line-height: 1.5 !important;
}

.tour-description-content li p {
    margin: 0 !important;
}


/* HOPA 360 v1.0.41 logo placement */
.hopa-360-shell-logo-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 0 14px !important;
}

.hopa-360-logo-link {
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

.hopa-360-logo {
    display: block !important;
}


/* HOPA 360 v1.0.42 logo/header + rich editor list cleanup */
.hopa-360-header .hopa-360-shell-logo-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 0 12px !important;
}

.hopa-360-logo-link {
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

.hopa-360-logo {
    display: block !important;
}

.hopa-rich-description-editor iframe,
.hopa-rich-description-editor textarea {
    min-height: 240px !important;
}

.tour-description-content ul,
.tour-description-content ol {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    padding-left: 24px !important;
}

.tour-description-content li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    line-height: 1.5 !important;
}

.tour-description-content li p {
    margin: 0 !important;
}


/* HOPA 360 v1.0.43 logo placement */
.hopa-360-header .hopa-360-shell-logo-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 0 12px !important;
}

.hopa-360-logo-link {
    display: inline-block !important;
    text-decoration: none !important;
    line-height: 0 !important;
}

.hopa-360-logo {
    display: block !important;
}


/* HOPA 360 v1.0.45 hotspot marker consistency */
.hopa-map-hotspot-number {
    width: var(--hopa-hotspot-size, 34px) !important;
    height: var(--hopa-hotspot-size, 34px) !important;
    border-radius: 999px !important;
    background: var(--hopa-hotspot-color, #0b7890) !important;
    color: var(--hopa-hotspot-text-color, #fff) !important;
    border: var(--hopa-hotspot-border-width, 3px) solid var(--hopa-hotspot-border-color, #fff) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: var(--hopa-hotspot-font-size, 14px) !important;
    line-height: 1 !important;
    box-shadow: 0 4px 14px rgba(0,0,0,.22) !important;
}


/* HOPA 360 v1.0.49 description spacing fix */
.tour-description-content h1,
.tour-description-content h2,
.tour-description-content h3,
.tour-description-content h4 {
    margin: 0 0 10px !important;
}

.tour-description-content p {
    margin: 0 0 10px !important;
}

.tour-description-content ul,
.tour-description-content ol {
    margin-top: 0 !important;
    margin-bottom: 14px !important;
    margin-left: 24px !important;
    padding-left: 18px !important;
}

.tour-description-content li {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    line-height: 1.5 !important;
}

.tour-description-content li:empty {
    display: none !important;
}

.tour-description-content li p {
    margin: 0 !important;
}


/* HOPA 360 v1.0.55 subtitle removal + instant hover */
.hopa-360-form-row:has(#subtitle),
.hopa-360-form-row:has([name="subtitle"]),
.hopa-field:has(#subtitle),
.hopa-field:has([name="subtitle"]),
label[for="subtitle"],
#subtitle,
[name="subtitle"],
[data-field="subtitle"] {
    display: none !important;
}

.tour-map-hotspot,
.thumb-btn,
.thumb-hotspot-marker,
.hopa-tour-subtitle-badge,
.badge {
    transition: none !important;
    animation: none !important;
    transition-delay: 0s !important;
}


/* HOPA 360 v1.0.57 direct marker hover paint */
.tour-map-hotspot,
.tour-map-hotspot *,
.thumb-btn,
.thumb-btn *,
.thumb-hotspot-marker {
    transition: none !important;
    animation: none !important;
    transition-delay: 0s !important;
}

.tour-map-hotspot:hover,
.tour-map-hotspot.force-hover,
.tour-map-hotspot.linked-photo-hover {
    background: var(--hopa-hotspot-hover-color, #0077b6) !important;
    transition: none !important;
}


/* HOPA 360 v1.0.59 upload limit guard */
.hopa-upload-limit-note {
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-left: 4px solid #0077b6 !important;
    background: rgba(0, 119, 182, .08) !important;
}


/* HOPA 360 v1.0.64 restore normal single file update */
.hopa-upload-limit-note {
    margin-top: 8px !important;
    padding: 8px 10px !important;
    border-left: 4px solid #0077b6 !important;
    background: rgba(0, 119, 182, .08) !important;
}


/* HOPA 360 v1.0.68 fixed photo sidebar */
@media (min-width: 901px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 380px !important;
        gap: 12px !important;
        align-items: start !important;
    }

    .layout > .card:first-child {
        min-width: 0 !important;
        width: 100% !important;
    }

    .layout > aside.card {
        width: 380px !important;
        min-width: 380px !important;
        max-width: 380px !important;
    }

    #viewer {
        min-height: 560px !important;
    }

    .thumb-list {
        gap: 10px !important;
    }

    .thumb-btn {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .thumb-hotspot-marker {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        font-size: 18px !important;
    }

    .thumb-btn img {
        width: 74px !important;
        min-width: 74px !important;
        height: 42px !important;
        object-fit: cover !important;
    }
}

@media (min-width: 1200px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 390px !important;
    }

    .layout > aside.card {
        width: 390px !important;
        min-width: 390px !important;
        max-width: 390px !important;
    }

    #viewer {
        min-height: 590px !important;
    }
}

@media (min-width: 1500px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 400px !important;
    }

    .layout > aside.card {
        width: 400px !important;
        min-width: 400px !important;
        max-width: 400px !important;
    }

    #viewer {
        min-height: 620px !important;
    }
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr !important;
    }

    .layout > aside.card {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}


/* HOPA 360 v1.0.69 larger price label */
.price-label,
.price-card .price-label,
.price-card strong:first-child {
    font-size: 20px !important;
    line-height: 1.1 !important;
    font-weight: 900 !important;
    letter-spacing: .12em !important;
    color: var(--muted, #647987) !important;
}

.price-value,
.price-card .price-value {
    font-size: clamp(34px, 3vw, 48px) !important;
    line-height: 1 !important;
    font-weight: 900 !important;
}

@media (max-width: 700px) {
    .price-label,
    .price-card .price-label,
    .price-card strong:first-child {
        font-size: 17px !important;
    }

    .price-value,
    .price-card .price-value {
        font-size: 34px !important;
    }
}


/* HOPA 360 v1.0.71 auth page styling */
.hopa-360-shell .login,
.hopa-360-shell form[name="loginform"],
.hopa-360-shell .hopa-auth-form {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 24px !important;
    border: 1px solid #dbe5ec !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 30px rgba(15, 36, 52, .08) !important;
}

.hopa-360-shell form[name="loginform"] label,
.hopa-360-shell .login label,
.hopa-360-shell .hopa-auth-form label {
    display: block !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    color: #142836 !important;
}

.hopa-360-shell form[name="loginform"] input[type="text"],
.hopa-360-shell form[name="loginform"] input[type="password"],
.hopa-360-shell form[name="loginform"] input[type="email"],
.hopa-360-shell .hopa-auth-form input[type="text"],
.hopa-360-shell .hopa-auth-form input[type="password"],
.hopa-360-shell .hopa-auth-form input[type="email"] {
    width: 100% !important;
    padding: 13px 14px !important;
    border: 1px solid #cbd8e1 !important;
    border-radius: 10px !important;
    background: #f7fbff !important;
    font-size: 16px !important;
}

.hopa-360-shell form[name="loginform"] input[type="submit"],
.hopa-360-shell .hopa-auth-form button,
.hopa-360-shell .hopa-auth-form input[type="submit"] {
    width: 100% !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: #0b7890 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 16px !important;
}


/* HOPA 360 v1.0.72 custom auth form */
.hopa-auth-card {
    max-width: 760px !important;
    margin: 0 auto !important;
    padding: 28px !important;
    border: 1px solid #dbe5ec !important;
    border-radius: 20px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 36, 52, .10) !important;
}

.hopa-auth-intro {
    margin: 0 0 22px !important;
    font-size: 18px !important;
    color: #142836 !important;
}

.hopa-auth-form {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.hopa-auth-form .hopa-form-row {
    margin: 0 0 18px !important;
}

.hopa-auth-form label {
    display: block !important;
    margin: 0 0 8px !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #142836 !important;
}

.hopa-auth-form input[type="text"],
.hopa-auth-form input[type="password"],
.hopa-auth-form input[type="email"] {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 15px !important;
    border: 1px solid #cbd8e1 !important;
    border-radius: 11px !important;
    background: #f7fbff !important;
    color: #142836 !important;
    font-size: 16px !important;
}

.hopa-auth-remember {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 6px 0 20px !important;
    font-weight: 700 !important;
}

.hopa-auth-remember input {
    width: 22px !important;
    height: 22px !important;
}

.hopa-auth-submit {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 15px 18px !important;
    border-radius: 12px !important;
    font-size: 17px !important;
}

.hopa-auth-links {
    display: flex !important;
    justify-content: center !important;
    gap: 22px !important;
    flex-wrap: wrap !important;
    margin-top: 18px !important;
}

.hopa-auth-links a {
    color: #0b7890 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}


/* HOPA 360 v1.0.74 direct reset shortcode */
.hopa-reset-card {
    max-width: 760px !important;
}
.hopa-reset-form .hopa-auth-submit {
    margin-top: 6px !important;
}


/* HOPA 360 v1.0.75 create-new scroll top */
html:target {
    scroll-margin-top: 0 !important;
}


/* HOPA 360 v1.0.76 registration verify fix */
.hopa-verify-card {
    max-width: 760px !important;
    margin: 0 auto !important;
}
.hopa-notice.success {
    border: 1px solid #16a34a !important;
    background: #f0fdf4 !important;
    color: #14532d !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}
.hopa-notice.error {
    border: 1px solid #dc2626 !important;
    background: #fef2f2 !important;
    color: #7f1d1d !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}


/* HOPA 360 v1.0.77 registration confirmation */
.hopa-register-card,
.hopa-verify-card {
    max-width: 760px !important;
    margin: 0 auto !important;
}
.hopa-notice.success p,
.hopa-notice.error p {
    margin: 0 0 10px !important;
}
.hopa-notice.success p:last-child,
.hopa-notice.error p:last-child {
    margin-bottom: 0 !important;
}


/* HOPA 360 v1.0.78 forced registration flow */
.hopa-register-card,
.hopa-verify-card {
    max-width: 760px !important;
    margin: 0 auto !important;
}
.hopa-notice.success {
    border: 1px solid #16a34a !important;
    background: #f0fdf4 !important;
    color: #14532d !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}
.hopa-notice.error {
    border: 1px solid #dc2626 !important;
    background: #fef2f2 !important;
    color: #7f1d1d !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
}
.hopa-notice.success p,
.hopa-notice.error p {
    margin: 0 0 10px !important;
}
.hopa-notice.success p:last-child,
.hopa-notice.error p:last-child {
    margin-bottom: 0 !important;
}


/* HOPA 360 v1.0.97 active menu buttons */
body .hopa-360-nav.hopa-auth-nav-v1097,
body .hopa-360-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn,
body .hopa-360-nav .hopa-nav-btn {
    border-radius: 14px !important;
    padding: 13px 24px !important;
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: clamp(17px, 2.1vw, 24px) !important;
    line-height: 1.05 !important;
    text-decoration: none !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease !important;
}

body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn.is-active {
    background: #0B7890 !important;
    background-color: #0B7890 !important;
    color: #ffffff !important;
    border-color: #0B7890 !important;
}

body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn.is-inactive {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #173042 !important;
    border-color: #eaf3f8 !important;
}

body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn:hover,
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn:focus,
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn.is-active:hover,
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn.is-active:focus,
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn.is-inactive:hover,
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn.is-inactive:focus {
    background: #F67917 !important;
    background-color: #F67917 !important;
    color: #ffffff !important;
    border-color: #F67917 !important;
    transform: translateY(-1px) !important;
}

@media (max-width: 700px) {
    body .hopa-360-nav.hopa-auth-nav-v1097,
    body .hopa-360-nav {
        gap: 10px !important;
    }
    body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn {
        flex: 1 1 100% !important;
        width: 100% !important;
        font-size: 20px !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
        border-radius: 14px !important;
    }
}


/* HOPA 360 v1.0.98 menu button size fix */
body .hopa-360-nav.hopa-auth-nav-v1097 {
    gap: 12px !important;
}
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn {
    padding: 13px 24px !important;
    min-height: 48px !important;
    font-size: clamp(17px, 2.1vw, 24px) !important;
    line-height: 1.08 !important;
    border-radius: 14px !important;
}
@media (max-width: 700px) {
    body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn {
        font-size: 20px !important;
        min-height: 48px !important;
        padding: 12px 16px !important;
        border-radius: 14px !important;
    }
}


/* HOPA 360 v1.0.103 global compact buttons */
:root {
    --ttb-orange: #F67917;
    --ttb-teal: #0B6F83;
}

/* Default button sizing across the plugin. Color rules remain page/context specific. */
body .hopa-360-shell .hopa-btn,
body .hopa-360-shell button.hopa-btn,
body .hopa-360-shell a.hopa-btn,
body .hopa-auth-card .hopa-btn,
body .hopa-dashboard .hopa-btn,
body .hopa-builder-form .hopa-btn,
body .hopa-360-form .hopa-btn,
body .hopa-inline-delete-form .hopa-btn {
    min-height: 34px !important;
    height: auto !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

/* Keep auth/nav active/inactive colors, but compact their size. */
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn {
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

/* Dashboard tour action buttons: ttb-orange on load, ttb-teal on hover. */
body .hopa-dashboard-tour-btn,
body .hopa-dashboard-actions-row-v1103 .hopa-dashboard-tour-btn,
body .hopa-tour-text-actions .hopa-dashboard-tour-btn,
body .hopa-inline-delete-form .hopa-dashboard-tour-btn {
    background: var(--ttb-orange) !important;
    background-color: var(--ttb-orange) !important;
    border: 2px solid var(--ttb-orange) !important;
    color: #ffffff !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    line-height: 1.1 !important;
    box-shadow: none !important;
}

body .hopa-dashboard-tour-btn:hover,
body .hopa-dashboard-tour-btn:focus,
body .hopa-dashboard-actions-row-v1103 .hopa-dashboard-tour-btn:hover,
body .hopa-dashboard-actions-row-v1103 .hopa-dashboard-tour-btn:focus,
body .hopa-tour-text-actions .hopa-dashboard-tour-btn:hover,
body .hopa-tour-text-actions .hopa-dashboard-tour-btn:focus,
body .hopa-inline-delete-form .hopa-dashboard-tour-btn:hover,
body .hopa-inline-delete-form .hopa-dashboard-tour-btn:focus {
    background: var(--ttb-teal) !important;
    background-color: var(--ttb-teal) !important;
    border-color: var(--ttb-teal) !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

body .hopa-tour-text-actions,
body .hopa-dashboard-actions-row-v1103 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

body .hopa-dashboard-delete-form,
body .hopa-inline-delete-form.hopa-dashboard-delete-form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .hopa-dashboard-delete-form button {
    cursor: pointer !important;
}

/* Preserve active main buttons such as Create New Tour, submit buttons, etc. with compact sizing. */
body .hopa-btn.primary,
body .hopa-btn.hopa-btn-primary,
body .hopa-auth-submit,
body .hopa-compact-login-submit .hopa-btn,
body .hopa-compact-login-submit button {
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}

@media (max-width: 700px) {
    body .hopa-360-shell .hopa-btn,
    body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-nav-btn,
    body .hopa-dashboard-tour-btn {
        min-height: 34px !important;
        padding: 7px 13px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }
}


/* HOPA 360 v1.0.104 dashboard button/meta fix */
body .hopa-tour-text-actions,
body .hopa-dashboard-actions-row-v1104 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}

body .hopa-tour-text-actions .hopa-dashboard-tour-btn,
body .hopa-tour-text-actions a.hopa-dashboard-tour-btn,
body .hopa-tour-text-actions button.hopa-dashboard-tour-btn,
body .hopa-tour-text-actions .hopa-copy-url-btn,
body .hopa-dashboard-actions-row-v1104 .hopa-dashboard-tour-btn,
body .hopa-dashboard-actions-row-v1104 .hopa-copy-url-btn,
body .hopa-inline-delete-form .hopa-dashboard-tour-btn {
    background: var(--ttb-orange, #F67917) !important;
    background-color: var(--ttb-orange, #F67917) !important;
    border: 2px solid var(--ttb-orange, #F67917) !important;
    color: #ffffff !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
}

body .hopa-tour-text-actions .hopa-dashboard-tour-btn:hover,
body .hopa-tour-text-actions .hopa-dashboard-tour-btn:focus,
body .hopa-tour-text-actions .hopa-copy-url-btn:hover,
body .hopa-tour-text-actions .hopa-copy-url-btn:focus,
body .hopa-dashboard-actions-row-v1104 .hopa-dashboard-tour-btn:hover,
body .hopa-dashboard-actions-row-v1104 .hopa-dashboard-tour-btn:focus,
body .hopa-dashboard-actions-row-v1104 .hopa-copy-url-btn:hover,
body .hopa-dashboard-actions-row-v1104 .hopa-copy-url-btn:focus,
body .hopa-inline-delete-form .hopa-dashboard-tour-btn:hover,
body .hopa-inline-delete-form .hopa-dashboard-tour-btn:focus {
    background: var(--ttb-teal, #0B6F83) !important;
    background-color: var(--ttb-teal, #0B6F83) !important;
    border-color: var(--ttb-teal, #0B6F83) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

body .hopa-dashboard-delete-form,
body .hopa-inline-delete-form.hopa-dashboard-delete-form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

body .hopa-tour-meta-labeled {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    flex-wrap: wrap !important;
    color: #60798a !important;
    font-size: 17px !important;
    line-height: 1.45 !important;
}

body .hopa-tour-meta-labeled strong {
    font-weight: 800 !important;
    color: #465f70 !important;
}

body .hopa-tour-meta-labeled em {
    font-style: italic !important;
    color: #60798a !important;
}

body .hopa-tour-meta-labeled .hopa-meta-sep {
    color: #8ca1ae !important;
}

@media (max-width: 700px) {
    body .hopa-tour-text-actions .hopa-dashboard-tour-btn,
    body .hopa-dashboard-actions-row-v1104 .hopa-dashboard-tour-btn {
        flex: 1 1 calc(50% - 8px) !important;
    }
}


/* HOPA 360 v1.0.105 dashboard create button nav */
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-dashboard-create-nav-btn {
    background: #0B7890 !important;
    background-color: #0B7890 !important;
    border-color: #0B7890 !important;
    color: #ffffff !important;
}

body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-dashboard-create-nav-btn:hover,
body .hopa-360-nav.hopa-auth-nav-v1097 .hopa-dashboard-create-nav-btn:focus {
    background: var(--ttb-orange, #F67917) !important;
    background-color: var(--ttb-orange, #F67917) !important;
    border-color: var(--ttb-orange, #F67917) !important;
    color: #ffffff !important;
}

body .hopa-dashboard-actions:empty {
    display: none !important;
}


/* HOPA 360 v1.0.112 dashboard tour action buttons */
body .hopa-tour-text-actions,
body .hopa-dashboard-actions-row-v1104,
body .hopa-dashboard-actions-row-v1106 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}

body .hopa-tour-text-actions a,
body .hopa-tour-text-actions button,
body .hopa-tour-text-actions .hopa-dashboard-tour-btn,
body .hopa-tour-text-actions .hopa-copy-url-btn,
body .hopa-copy-url-orange-v1112,
body button.hopa-copy-url-btn,
body button.hopa-copy-url-orange-v1112 {
    background: #F67917 !important;
    background-color: #F67917 !important;
    border: 2px solid #F67917 !important;
    color: #ffffff !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
}

body .hopa-tour-text-actions a:hover,
body .hopa-tour-text-actions a:focus,
body .hopa-tour-text-actions button:hover,
body .hopa-tour-text-actions button:focus,
body .hopa-copy-url-orange-v1112:hover,
body .hopa-copy-url-orange-v1112:focus {
    background: #0B6F83 !important;
    background-color: #0B6F83 !important;
    border-color: #0B6F83 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

body .hopa-tour-meta-labeled strong {
    font-weight: 800 !important;
    color: #465f70 !important;
}
body .hopa-tour-meta-labeled em {
    font-style: italic !important;
    color: #60798a !important;
}
body .hopa-tour-meta-labeled .hopa-meta-sep {
    color: #8ca1ae !important;
}


/* HOPA 360 v1.0.113 dashboard tour action state fix */
body .hopa-dashboard-tour-actions-v1113 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}

body .hopa-dashboard-tour-actions-v1113 .hopa-dashboard-action-btn-v1113,
body .hopa-dashboard-tour-actions-v1113 a.hopa-dashboard-action-btn-v1113,
body .hopa-dashboard-tour-actions-v1113 a.hopa-dashboard-action-btn-v1113:link,
body .hopa-dashboard-tour-actions-v1113 a.hopa-dashboard-action-btn-v1113:visited,
body .hopa-dashboard-tour-actions-v1113 a.hopa-dashboard-action-btn-v1113:active,
body .hopa-dashboard-tour-actions-v1113 button.hopa-dashboard-action-btn-v1113,
body .hopa-dashboard-tour-actions-v1113 button.hopa-copy-url-btn {
    background: #F67917 !important;
    background-color: #F67917 !important;
    border: 2px solid #F67917 !important;
    color: #ffffff !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    opacity: 1 !important;
    transform: none !important;
}

body .hopa-dashboard-tour-actions-v1113 .hopa-dashboard-action-btn-v1113:hover,
body .hopa-dashboard-tour-actions-v1113 .hopa-dashboard-action-btn-v1113:focus,
body .hopa-dashboard-tour-actions-v1113 a.hopa-dashboard-action-btn-v1113:hover,
body .hopa-dashboard-tour-actions-v1113 a.hopa-dashboard-action-btn-v1113:focus,
body .hopa-dashboard-tour-actions-v1113 button.hopa-dashboard-action-btn-v1113:hover,
body .hopa-dashboard-tour-actions-v1113 button.hopa-dashboard-action-btn-v1113:focus,
body .hopa-dashboard-tour-actions-v1113 button.hopa-copy-url-btn:hover,
body .hopa-dashboard-tour-actions-v1113 button.hopa-copy-url-btn:focus {
    background: #0B6F83 !important;
    background-color: #0B6F83 !important;
    border-color: #0B6F83 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

body .hopa-dashboard-delete-form-v1113 {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* HOPA 360 v1.0.114 Copy URL anchor button fix */
body .hopa-dashboard-tour-actions-v1114 {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    margin-bottom: 18px !important;
}

body .hopa-dashboard-tour-actions-v1114 .hopa-dashboard-action-btn-v1114,
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114,
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:link,
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:visited,
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:active,
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114,
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114:link,
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114:visited,
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114:active,
body .hopa-dashboard-tour-actions-v1114 button.hopa-dashboard-action-btn-v1114 {
    background: #F67917 !important;
    background-color: #F67917 !important;
    border: 2px solid #F67917 !important;
    color: #ffffff !important;
    min-height: 34px !important;
    padding: 7px 13px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    opacity: 1 !important;
    transform: none !important;
}

body .hopa-dashboard-tour-actions-v1114 .hopa-dashboard-action-btn-v1114:hover,
body .hopa-dashboard-tour-actions-v1114 .hopa-dashboard-action-btn-v1114:focus,
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:hover,
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:focus,
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114:hover,
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114:focus,
body .hopa-dashboard-tour-actions-v1114 button.hopa-dashboard-action-btn-v1114:hover,
body .hopa-dashboard-tour-actions-v1114 button.hopa-dashboard-action-btn-v1114:focus {
    background: #0B6F83 !important;
    background-color: #0B6F83 !important;
    border-color: #0B6F83 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
}

body .hopa-dashboard-delete-form-v1114 {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Final dashboard tour button state override */
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:not(:hover),
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:visited:not(:hover),
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:focus:not(:hover),
body .hopa-dashboard-tour-actions-v1114 a.hopa-dashboard-action-btn-v1114:active:not(:hover),
body .hopa-dashboard-tour-actions-v1114 button.hopa-dashboard-action-btn-v1114:not(:hover),
body .hopa-dashboard-tour-actions-v1114 button.hopa-dashboard-action-btn-v1114:focus:not(:hover),
body .hopa-dashboard-tour-actions-v1114 button.hopa-dashboard-action-btn-v1114:active:not(:hover) {
    background: #F67917 !important;
    background-color: #F67917 !important;
    border-color: #F67917 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: none !important;
}

/* Keep Copy URL teal only during the temporary "Copied!" state. This must stay below the orange reset above. */
body .hopa-dashboard-tour-actions-v1114 a.hopa-copy-url-anchor-v1114.is-copied {
    background: #0B6F83 !important;
    background-color: #0B6F83 !important;
    border-color: #0B6F83 !important;
    color: #ffffff !important;
}

/* HOPA 360 v1.0.117 editor palette picker */
:root{--hopa-editor-preview-primary:#00A6A6;--hopa-editor-preview-secondary:#FF6B35;--hopa-editor-preview-accent:#FFD23F;--hopa-editor-preview-soft:#F7FFF7}
.hopa-theme-picker-v1117{margin-top:12px!important;display:grid!important;gap:10px!important}
.hopa-theme-picker-button-v1117{width:100%!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;min-height:52px!important;padding:12px 14px!important;border-radius:16px!important;border:2px solid rgba(11,111,131,.20)!important;background:linear-gradient(135deg,var(--hopa-editor-preview-primary),var(--hopa-editor-preview-secondary))!important;color:#fff!important;font-weight:900!important;cursor:pointer!important;box-shadow:0 10px 22px rgba(5,45,60,.12)!important}
.hopa-theme-picker-button-v1117:hover{transform:translateY(-1px)!important;box-shadow:0 14px 30px rgba(5,45,60,.16)!important}
.hopa-theme-picker-current-v1117{border:1px solid #d9e5eb!important;border-radius:16px!important;padding:11px 13px!important;background:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
.hopa-theme-picker-current-v1117 strong{color:#17364a!important;font-size:16px!important}.hopa-theme-picker-current-v1117 span{color:#607080!important;font-size:12px!important;font-weight:800!important}
.hopa-theme-picker-dots-v1117,.hopa-theme-card-dots-v1117{display:inline-flex!important;align-items:center!important;gap:7px!important}
.hopa-theme-picker-dots-v1117 i,.hopa-theme-card-dots-v1117 i{width:28px!important;height:28px!important;border-radius:999px!important;background:var(--c)!important;border:2px solid rgba(255,255,255,.86)!important;box-shadow:0 4px 10px rgba(0,0,0,.18)!important}
.hopa-theme-modal-v1117{display:none!important;position:fixed!important;inset:0!important;z-index:999999!important;align-items:center!important;justify-content:center!important;padding:24px!important}.hopa-theme-modal-v1117.is-open{display:flex!important}
.hopa-theme-modal-backdrop-v1117{position:absolute!important;inset:0!important;background:rgba(6,24,34,.58)!important}
.hopa-theme-modal-dialog-v1117{position:relative!important;width:min(980px,96vw)!important;max-height:88vh!important;overflow:auto!important;background:#fff!important;border-radius:28px!important;box-shadow:0 30px 90px rgba(0,0,0,.34)!important}
.hopa-theme-modal-head-v1117{position:sticky!important;top:0!important;z-index:2!important;background:linear-gradient(135deg,var(--hopa-editor-preview-primary),var(--hopa-editor-preview-secondary))!important;color:#fff!important;padding:22px 24px!important;display:flex!important;justify-content:space-between!important;align-items:center!important;gap:14px!important}
.hopa-theme-modal-head-v1117 h3{margin:0!important;color:#fff!important;font-size:28px!important}.hopa-theme-modal-head-v1117 p{margin:6px 0 0!important;color:rgba(255,255,255,.88)!important}
.hopa-theme-modal-close-v1117{width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;border:1px solid rgba(255,255,255,.35)!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font-size:24px!important;cursor:pointer!important}
.hopa-theme-modal-body-v1117{padding:20px!important}.hopa-theme-modal-grid-v1117{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.hopa-theme-card-v1117{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;width:100%!important;padding:14px 16px!important;border-radius:18px!important;border:2px solid #dde8ee!important;background:#fff!important;text-align:left!important;cursor:pointer!important;transition:.15s ease!important}
.hopa-theme-card-v1117:hover{border-color:var(--hopa-editor-preview-primary)!important;transform:translateY(-1px)!important;box-shadow:0 10px 22px rgba(5,45,60,.09)!important}.hopa-theme-card-v1117.is-selected{border-color:var(--hopa-editor-preview-primary)!important;box-shadow:0 0 0 4px rgba(11,111,131,.16)!important}
.hopa-theme-card-info-v1117 strong{display:block!important;font-size:18px!important;color:#17364a!important}.hopa-theme-card-info-v1117 small{display:block!important;margin-top:4px!important;color:#607080!important;font-size:12px!important;font-weight:700!important}
.hopa-theme-modal-foot-v1117{position:sticky!important;bottom:0!important;background:#f7fbfd!important;border-top:1px solid #dce8ee!important;padding:16px 20px!important;display:flex!important;justify-content:flex-end!important;gap:10px!important;flex-wrap:wrap!important}
@media(max-width:760px){.hopa-theme-modal-grid-v1117{grid-template-columns:1fr!important}.hopa-theme-card-v1117{display:grid!important;gap:10px!important}}
