.goappily-frontend-wrap{
    --goappily-primary-color: var(--goappily-primary-color);
    --goappily-secondary-color: var(--goappily-secondary-color);
}

.goappily-frontend-wrap {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    
}

.goappily-tabs {
    display: inline-flex !important;
    flex-wrap: wrap;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 15px !important;
    background: #ffffff;
    align-content: center !important;
    justify-content: center !important;
}

.goappily-frontend-inner {
    background: #f9fafb;
    border-radius: 24px;
    overflow: hidden;
    -webkit-box-shadow: 0px 0px 25px 10px color-mix(in srgb, var(--goappily-primary-color) 50%, transparent);
    box-shadow: 0px 0px 25px 10px color-mix(in srgb, var(--goappily-primary-color) 50%, transparent);
}

.goappily-frontend-role {
    display: none;
}

.goappily-passenger-section-title {
    display: flex !important;
    flex-wrap: wrap !important;
}


.goappily-passenger-group h4 {
        display: flex !important;
    flex-wrap: wrap !important;
}


.goappily-frontend-header {
    padding: 20px 24px;
    background: linear-gradient(120deg, var(--goappily-secondary-color), var(--goappily-primary-color));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.goappily-frontend-header-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.goappily-frontend-header-actions {
    flex-shrink: 0;
}

.goappily-frontend-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 600;
}

.goappily-frontend-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.96;
}

.goappily-frontend-role {
    margin-top: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.goappily-logout-button {
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: #ffffff;
    color: var(--goappily-primary-color);
    -webkit-box-shadow: 0px 0px 10px 1px var(--goappily-primary-color);
    box-shadow: 0px 0px 10px 1px var(--goappily-primary-color);
}

.goappily-logout-button:hover {
    background: var(--goappily-secondary-color); /* secondary */
    color: #ffffff;
}

.goappily-tabs-wrap {
    padding: 14px 20px 0;
    background: #f9fafb;
    text-align: center;
}

.goappily-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    padding: 4px;
    background: #ffffff;
}

.goappily-tab {
    border: 0;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    color: #4b5563;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.goappily-tab:hover {
    background: var(--goappily-secondary-color);
    color: #ffffff;
}

.goappily-tab.active {
    background: var(--goappily-secondary-color);
    color: #ffffff;
    -webkit-box-shadow: 0px 0px 10px 1px var(--goappily-primary-color);
    box-shadow: 0px 0px 10px 1px var(--goappily-primary-color);
}

.goappily-tab-panels {
    padding: 18px 22px 22px;
    background: #f9fafb;
}

.goappily-panel {
    display: none;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 16px 10px;
    box-sizing: border-box;
    animation: goappilyFrontFadeIn 0.18s ease-out;
}

.goappily-panel.active {
    display: block;
}

.goappily-panel h3 {
    margin: 0 0 -15px;
    font-size: 18px;
    color: var(--goappily-primary-color);
}

.goappily-panel p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #4b5563;
}

/* Messages tab */
.goappily-messages-portal{
    margin-top: 2px;
    padding: 0px 0px;
    border-radius: 14px;
}

.goappily-messages-portal p{
    margin: 0 0 12px;
}

.goappily-messages-portal .goappily-profile-submit{
    background: var(--goappily-secondary-color);
    box-shadow: 0px 0px 10px 1px color-mix(in srgb, var(--goappily-primary-color) 35%, transparent);
}

.goappily-messages-portal .goappily-profile-submit[disabled]{
    cursor: not-allowed;
    opacity: 0.75;
}

.goappily-login-wrap {
    max-width: 420px;
    margin: 40px auto;
    padding: 20px 22px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    -webkit-box-shadow: 0px 0px 25px 10px color-mix(in srgb, var(--goappily-primary-color) 25%, transparent);
    box-shadow: 0px 0px 25px 10px color-mix(in srgb, var(--goappily-primary-color) 25%, transparent);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    box-sizing: border-box;
}

.goappily-login-wrap h2 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--goappily-primary-color);
}

@media (max-width: 800px) {
    .goappily-frontend-wrap {
        padding: 0 10px;
    }

    .goappily-tab-panels {
        padding: 14px 14px 20px;
    }

    .goappily-frontend-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@keyframes goappilyFrontFadeIn {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.goappily-profile-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

.goappily-profile-col {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    padding: 16px 18px;
    box-sizing: border-box;
}

.goappily-profile-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goappily-profile-row span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.goappily-profile-row input,
.goappily-profile-row textarea {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 8px 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.goappily-profile-row textarea {
    resize: vertical;
}

.goappily-profile-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    background: var(--goappily-primary-color);
    color: #ffffff;
    cursor: pointer;
}

.goappily-profile-submit:hover {
    opacity: 0.92;
}

.goappily-profile-message {
    margin-top: 10px;
    font-size: 13px;
}

.goappily-profile-message-success {
    color: #065f46;
}

.goappily-profile-message-error {
    color: #b91c1c;
}

.goappily-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.goappily-activity-item {
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.goappily-activity-item:last-child {
    border-bottom: none;
}

.goappily-activity-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.goappily-activity-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
}

.goappily-activity-destination {
    color: #374151;
    margin-bottom: 2px;
}

.goappily-activity-meta {
    color: #6b7280;
    font-size: 12px;
}

@media (max-width: 900px) {
    .goappily-profile-grid {
        grid-template-columns: 1fr;
    }
}


.goappily-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.goappily-tab i {
    font-size: 14px;
}

.goappily-frontend-section-title {
       display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.goappily-frontend-section-title i {
    font-size: 15px;
}


/* ------------------------------------------------------------
   Frontend Quotes
------------------------------------------------------------ */
.goappily-frontend-card{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 18px;
    margin: 16px 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.goappily-frontend-card-header h4{
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.goappily-frontend-field label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

.goappily-frontend-field input[type="search"]{
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    box-sizing: border-box;
}

.goappily-frontend-actions{
    margin-top: 12px;
}

.goappily-frontend-table-wrap{
    margin-top: 14px;
    overflow-x: auto;
}

.goappily-frontend-table{
    width:100%;
    border-collapse: collapse;
    background:#fff;
}

.goappily-frontend-table th,
.goappily-frontend-table td{
    text-align:left;
    padding: 10px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: middle;
    font-size: 14px;
}

.goappily-frontend-muted{
    color: rgba(0,0,0,0.55);
}

.goappily-status-pill{
    display:inline-flex;
    align-items:center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    font-size: 12px;
    font-weight: 600;
}

/* Buttons (respect UI Customising colours) */
.goappily-frontend-wrap .button.goappily-primary-button{
    background: var(--goappily-primary-color, #05482f);
    border-color: var(--goappily-primary-color, #05482f);
    color:#fff;
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.goappily-frontend-wrap .button.goappily-primary-button:hover{
    background: var(--goappily-secondary-color, #7fb33f);
    border-color: var(--goappily-secondary-color, #7fb33f);
    color:#fff;
}

.goappily-frontend-wrap .button.goappily-secondary-button{
    background: #ffffff;
    border: 2px solid var(--goappily-secondary-color, #7fb33f);
    color: var(--goappily-primary-color, #05482f);
    border-radius: 999px;
    padding: 7px 14px;
}

.goappily-frontend-wrap .button.goappily-secondary-button:hover{
    background: var(--goappily-secondary-color, #7fb33f);
    color:#fff;
}

.goappily-frontend-quote-actions{
    display:flex;
    gap: 8px;
    flex-wrap: wrap;
}

.goappily-quote-preview-body{
    margin-top: 6px;
}

/* Quotes tab: keep search input + button on one row */
.goappily-frontend-quote-search{
    display:flex;
    gap: 12px;
    align-items:flex-end;
    flex-wrap:wrap;
}

.goappily-frontend-quote-search .goappily-frontend-field{
    flex: 1;
    min-width: 260px;
    margin: 0;
}

.goappily-frontend-quote-search .goappily-frontend-actions{
    margin: 0;
    white-space: nowrap;
}

/* Quotes tab: reduce the "Retrieve A Quote" heading size and keep on one line on desktop */
.goappily-frontend-card .goappily-frontend-card-header h4{
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
}

/* Bookings tab: keep search input + button on one row */
.goappily-frontend-booking-search{
    display:flex;
    gap: 12px;
    align-items:flex-end;
    flex-wrap:wrap;
}

.goappily-frontend-booking-search .goappily-frontend-field{
    flex: 1;
    min-width: 260px;
    margin: 0;
}

.goappily-frontend-booking-search .goappily-frontend-actions{
    margin: 0;
    white-space: nowrap;
}

/* Bookings tab: two-column details layout */
.goappily-booking-details-layout{
    display:grid;
    grid-template-columns:minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 18px;
    align-items:start;
}

.goappily-booking-details-left,
.goappily-booking-details-right{
    min-width:0;
}

.goappily-booking-details-right{
    display:flex;
    flex-direction:column;
    gap: 14px;
}

.goappily-external-booking-details-layout .goappily-booking-preview-body,
.goappily-external-booking-details-layout .goappily-booking-preview-html,
.goappily-external-booking-details-layout .goappily-booking-print-area{
    max-width:100%;
    width:100%;
    box-sizing:border-box;
}

.goappily-external-booking-details-layout .goappily-booking-preview-html{
    overflow-x:auto;
}

.goappily-booking-sidecard{
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 14px;
}

.goappily-booking-sidecard h5{
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--goappily-primary-color);
    flex-wrap: wrap;
}

.goappily-booking-documents{
    list-style: none;
    padding: 0;
    margin: 0;
}

.goappily-booking-documents li{
    margin: 0 0 8px 0;
}

.goappily-booking-documents a{
    color: var(--goappily-primary-color);
    text-decoration: underline;
}

/* Booking Documents - modern download buttons */
.goappily-booking-documents .goappily-doc-item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 10px 0;
}

.goappily-booking-documents .goappily-doc-button{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.04);
    text-decoration: none;
    color: var(--goappily-primary-color);
    font-weight: 600;
}

.goappily-booking-documents .goappily-doc-button:hover{
    background: rgba(0,0,0,0.06);
}

.goappily-booking-documents .goappily-doc-date{
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(0,0,0,0.03);
    color: rgba(0,0,0,0.70);
}

/* Booking Assistant (sidebar) */
.goappily-booking-assistant ul{
    margin: 10px 0 0 18px;
    padding: 0;
}
.goappily-booking-assistant li{
    margin: 0 0 6px 0;
}
.goappily-booking-assistant-sidecard .goappily-booking-assistant-actions{
    margin-top: 10px;
}

/* Simple modal (Booking Assistant) */
.goappily-modal{
    position: fixed;
    inset: 0;
    z-index: 9999;
}
.goappily-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
}
.goappily-modal-dialog{
    position: relative;
    width: min(720px, calc(100% - 30px));
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
}
.goappily-modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.goappily-modal-header h4{
    margin: 0;
    font-size: 16px;
}
.goappily-modal-close{
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: rgba(0,0,0,0.6);
}
.goappily-modal-body{
    padding: 14px 16px 16px 16px;
}
.goappily-modal-footer{
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    background: #fafafa;
}
.goappily-booking-assistant-form,
.goappily-booking-assistant-ask-row{
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
.goappily-booking-assistant-form input,
.goappily-booking-assistant-ask-row input{
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
}
.goappily-booking-assistant-answer{
    margin-top: 12px;
}

@media (max-width: 480px){
    .goappily-booking-documents .goappily-doc-item{
        align-items: stretch;
    }
    .goappily-booking-documents .goappily-doc-button{
        width: 100%;
        justify-content: center;
    }
}


.goappily-booking-transactions table{
    width: 100%;
    border-collapse: collapse;
}

.goappily-booking-transactions th,
.goappily-booking-transactions td{
    font-size: 12px;
    padding: 6px 6px;
    border-bottom: 1px solid #e5e7eb;
    text-align:left;
}

.goappily-booking-transactions th{
    background: rgba(0,0,0,0.02);
}

@media (max-width: 480px){
    .goappily-frontend-card .goappily-frontend-card-header h4{
        white-space: normal;
    }
}

/* Slimline tables for Retrieve Quote / Retrieve Booking */
.goappily-frontend-table th,
.goappily-frontend-table td{
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.25;
}

.goappily-frontend-table th{
    padding-top: 8px;
    padding-bottom: 8px;
}

/* Slimline buttons inside tables */
.goappily-frontend-table .button.goappily-primary-button{
    padding: 6px 12px;
    font-size: 13px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

.goappily-frontend-table .button.goappily-secondary-button{
    padding: 5px 12px;
    font-size: 13px;
}

/* Slightly smaller status pills to match reduced row height */
.goappily-status-pill{
    padding: 3px 9px;
    font-size: 12px;
}

/* Booking preview: force white background (some templates include grey outer background inline) */
.goappily-booking-preview-body{
    background: #fff;
}

.goappily-booking-preview-body h2 {
    font-size: 26px;
}

/* Booking preview: match backend preview styling and prevent theme CSS from adding table gridlines */
.goappily-booking-preview-body .goappily-booking-preview-html{
    max-width: 800px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 24px 26px;
    margin-top: 10px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.goappily-booking-preview-body .goappily-booking-preview-html table{
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #222222;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* Kill any theme borders inside the preview (keeps the outer table border if set inline) */
.goappily-booking-preview-body .goappily-booking-preview-html th,
.goappily-booking-preview-body .goappily-booking-preview-html td{
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
}

.goappily-booking-preview-body .goappily-booking-preview-html h2,
.goappily-booking-preview-body .goappily-booking-preview-html h3,
.goappily-booking-preview-body .goappily-booking-preview-html h4{
    margin-top: 0;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.goappily-booking-preview-body .goappily-booking-preview-html p{
    margin: 0 0 8px 0;
}

.goappily-booking-preview-body .goappily-booking-preview-html .spacer-24{
    margin-top: 24px;
}

/* Inner section cards (the confirmation template uses inline light backgrounds) */
.goappily-booking-preview-body .goappily-booking-preview-html [style*="border-radius"],
.goappily-booking-preview-body .goappily-booking-preview-html [style*="border-radius:"]{
    border-radius: 10px !important;
}

.goappily-booking-preview-body [style*="background:#f5f5f5"],
.goappily-booking-preview-body [style*="background: #f5f5f5"],
.goappily-booking-preview-body [style*="background:#f5f6f7"],
.goappily-booking-preview-body [style*="background: #f5f6f7"],
.goappily-booking-preview-body [style*="background:#f7fafc"],
.goappily-booking-preview-body [style*="background: #f7fafc"]{
    background: #fff !important;
}


/* Booking PDF button */
.goappily-booking-pdf-button{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;font-size:14px;}


/* Home tab layout */
.goappily-home-grid{
    display:flex;
    gap:18px;
    align-items:stretch;
}
.goappily-home-col{
    flex:1 1 0;
    min-width:0;
}
.goappily-home-left, .goappily-home-right{
    display:flex;
    flex-direction:column;
    gap:16px;
}
.goappily-home-welcome{
    text-align:center;
    padding:18px 16px;
    border:1px solid rgba(0,0,0,0.06);
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 22px rgba(0,0,0,0.06);
}
.goappily-home-welcome-icon{
    width:52px;
    height:52px;
    margin:0 auto 10px auto;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--goappily-secondary-color);
    color:#fff;
    box-shadow:0 10px 20px rgba(0,0,0,0.10);
}
.goappily-home-welcome h3{
    margin:0 0 8px 0;
    font-size:18px;
    font-weight:700;
}
.goappily-home-welcome p{
    margin:0;
    opacity:0.85;
    line-height:1.5;
}
.goappily-home-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px 16px;
    border:1px solid rgba(0,0,0,0.06);
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 22px rgba(0,0,0,0.06);
    min-height:180px;
}
.goappily-home-logo img{
    max-width:260px;
    width:100%;
    height:auto;
    object-fit:contain;
}
.goappily-home-logo-placeholder{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    opacity:0.75;
}
.goappily-home-logo-placeholder i{
    font-size:26px;
}

/* Agency card */
.goappily-agency-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    padding:18px 16px;
    border:1px solid rgba(0,0,0,0.06);
    border-radius:14px;
    background:#fff;
    box-shadow:0 8px 22px rgba(0,0,0,0.06);
    min-height:260px;
    justify-content:center;
}
.goappily-agency-card-header{
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 12px;
    border-radius:999px;
    margin-bottom:12px;
    font-weight:700;
}
.goappily-agency-card-header i{
    color:var(--goappily-primary-color);
}
.goappily-agency-name{
    font-size:20px;
    font-weight:800;
    margin-bottom:8px;
}
.goappily-agency-agent{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-weight:600;
    margin-bottom:10px;
    opacity:0.9;
}
.goappily-agency-agent i{
    color:var(--goappily-secondary-color);
}
.goappily-agency-description{
    width:100%;
    max-width:560px;
    margin:0 auto 14px auto;
    opacity:0.88;
    line-height:1.6;
}

/* Social icon buttons */
.goappily-agency-socials{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    justify-content:center;
}
.goappily-social-btn{
    width:44px;
    height:44px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:var(--goappily-primary-color);
    color:#fff;
    text-decoration:none;
    box-shadow:0 10px 18px rgba(0,0,0,0.12);
    transition:transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}
.goappily-social-btn:hover{
    transform:translateY(-1px);
    opacity:0.95;
    box-shadow:0 12px 22px rgba(0,0,0,0.14);
}
.goappily-social-btn:focus{
    outline:2px solid rgba(0,0,0,0.12);
    outline-offset:3px;
}
.goappily-social-btn i{
    font-size:18px;
    color:#fff !important;
}

/* If any social icons are rendered as inline SVGs, force them to be white too */
.goappily-social-btn svg{
    fill:#fff !important;
}

/* Responsive */
@media (max-width: 900px){
    .goappily-home-grid{
        flex-direction:column;
    }
}

/* --------------------------------------------------------------------------
 * Booking preview (Frontend)
 * Match backend preview styling by neutralising theme table borders and
 * ensuring rounded cards inside the preview.
 * Scoped strictly to the booking preview container.
 * -------------------------------------------------------------------------- */

/* Outer preview wrapper */
#goappily-booking-preview-body .goappily-booking-preview-html{
    border-radius:10px !important;
    overflow:hidden; /* helps rounded corners clip inner sections */
}

/* Theme table resets (many themes add borders with !important) */
#goappily-booking-preview-body .goappily-booking-preview-html table,
#goappily-booking-preview-body .goappily-booking-preview-html thead,
#goappily-booking-preview-body .goappily-booking-preview-html tbody,
#goappily-booking-preview-body .goappily-booking-preview-html tfoot{
    border:0 !important;
    box-shadow:none !important;
}

#goappily-booking-preview-body .goappily-booking-preview-html th,
#goappily-booking-preview-body .goappily-booking-preview-html td{
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
    background-clip:padding-box;
}

/* Ensure any email-style tables that specify rounded corners can actually show them */
#goappily-booking-preview-body .goappily-booking-preview-html table[style*="border-radius"]{
    border-collapse:separate !important;
    border-spacing:0 !important;
    overflow:hidden !important;
}

/* If a section uses an outer border, give it the same rounded card feel as backend */
#goappily-booking-preview-body .goappily-booking-preview-html table[style*="border:1px"],
#goappily-booking-preview-body .goappily-booking-preview-html div[style*="border:1px"]{
    border-radius:10px !important;
}

/* Guard against theme "img {max-width:100%; height:auto;}" issues in previews */
#goappily-booking-preview-body .goappily-booking-preview-html img{
    border-radius:8px;
}

/* --------------------------------------------------------------------------
 * Payments (Frontend)
 * Two-column layout with customer-only payments table + gateway embed
 * -------------------------------------------------------------------------- */

.goappily-payments-grid{
    display:flex;
    gap:18px;
    align-items:flex-start;
}
.goappily-payments-col{
    flex:1;
    min-width:0;
    width: 100% !important;
}

.goappily-muted{
    color:#6b7280;
    margin:0 0 12px 0;
}

.goappily-payments-table-wrap{
    background:#fff;
    border:1px solid #e6e8ee;
    border-radius:14px;
    padding:12px;
    /*
     * Payments table wrapper must be the horizontal scroll container on mobile.
     * Some theme CSS can interfere with overflow handling causing the table
     * header/background to visually spill outside the rounded card.
     */
    display:block;
    max-width:100%;
    box-sizing:border-box;
    overflow-x:auto !important;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
}

/* Override the generic .goappily-table-scroll table{width:100%} rule */
.goappily-payments-table-wrap.goappily-table-scroll table.goappily-payments-table{
    /*
     * Use intrinsic width so columns don't squash into unreadable widths.
     * min-width:100% keeps it filling the card when content is short.
     */
    width:max-content !important;
    min-width:100%;
    border-collapse:separate;
    border-spacing:0;
    font-size:14px;
}

/*
 * Ensure the Payments table is horizontally swipeable on mobile.
 * This table can shrink to fit the viewport (especially on larger phones
 * or landscape), which removes horizontal overflow and makes long values
 * hard to read. We prevent aggressive wrapping and enforce a minimum width
 * on smaller screens so users can swipe left/right to view all columns.
 */
.goappily-payments-table th,
.goappily-payments-table td{
    white-space:nowrap;
}

@media (max-width: 1024px){
    .goappily-payments-table{
        min-width: 820px;
    }
}
.goappily-payments-table thead th{
    background:var(--goappily-primary-color);
    color:#fff;
    text-align:left;
    padding:12px 10px;
    font-weight:700;
}
.goappily-payments-table thead th:first-child{ border-top-left-radius:10px; }
.goappily-payments-table thead th:last-child{ border-top-right-radius:10px; }

.goappily-payments-table tbody td{
    padding:12px 10px;
    border-bottom:1px solid #eef0f4;
    vertical-align:top;
    background:#fff;
}
.goappily-payments-table tbody tr:last-child td{ border-bottom:0; }

/* Neutralise theme table borders inside this component */
.goappily-payments-table,
.goappily-payments-table *{
    border-left:0 !important;
    border-right:0 !important;
}

.goappily-mono{
    font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size:13px;
}

.goappily-empty{
    text-align:center;
    color:#6b7280;
    padding:18px 10px;
}

.goappily-status-pill{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    font-weight:700;
    font-size:12px;
    line-height:1;
    background:#eef2ff;
    color:#1f2937;
}
.goappily-status-paid{ background:rgba(16,185,129,0.14); color:#065f46; }
.goappily-status-pending{ background:rgba(245,158,11,0.16); color:#92400e; }
.goappily-status-cancelled{ background:rgba(239,68,68,0.14); color:#7f1d1d; }
.goappily-status-refunded{ background:rgba(59,130,246,0.14); color:#1e3a8a; }

.goappily-payments-gateway{
    background:#fff;
    border:1px solid #e6e8ee;
    border-radius:14px;
    padding:5px;
}

@media (max-width: 900px){
    .goappily-payments-grid{
        flex-direction:column;
    }
}


/* ------------------------------------------------------------
   Frontend Profile Overview (Account activity replacement)
------------------------------------------------------------ */
.goappily-profile-stats-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 12px 0 18px;
}

.goappily-profile-stat-card{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 14px 14px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 12px;
}

.goappily-profile-stat-icon{
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--goappily-secondary-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.goappily-profile-stat-label{
    font-size: 12px;
    font-weight: 700;
    color: rgba(0,0,0,0.55);
    letter-spacing: 0.2px;
    margin-bottom: 2px;
}

.goappily-profile-stat-value{
    font-size: 18px;
    font-weight: 800;
    color: var(--goappily-primary-color);
    line-height: 1.2;
}

.goappily-profile-stat-sub{
    font-size: 12px;
    color: rgba(0,0,0,0.55);
    margin-top: 4px;
    min-height: 14px;
}

.goappily-profile-activity-box{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 16px;
    margin: 14px 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.goappily-profile-activity-head{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom: 12px;
}

.goappily-profile-activity-head h4{
     margin: 0;
    font-size: 15px;
    color: var(--goappily-primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.goappily-profile-activity-head--with-action{
    justify-content: space-between;
}

.goappily-profile-activity-table-wrap{
    overflow-x: auto;
}

.goappily-profile-activity-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.goappily-profile-activity-table thead th{
    background: var(--goappily-primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    padding: 10px 12px;
    border: none !important;
}

.goappily-profile-activity-table tbody td{
    padding: 10px 12px;
    border: none !important;
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    font-size: 13px;
}

.goappily-profile-activity-table tbody tr:first-child td{
    border-top: none !important;
}

/* badges */
.goappily-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    margin-left: 8px;
    border: 1px solid rgba(0,0,0,0.10);
}

.goappily-badge--primary{
    background: var(--goappily-secondary-color);
    color: #ffffff;
    border-color: rgba(0,0,0,0.10);
}

.goappily-badge--danger{
    background: #d11a2a;
    color: #ffffff;
    border-color: rgba(0,0,0,0.10);
}

/* secondary button (match CRM rules) */
.goappily-secondary-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background: var(--goappily-secondary-color);
    color:#ffffff;
    text-decoration:none;
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
}

.goappily-secondary-button:hover{
    filter: brightness(0.96);
    color:#ffffff;
    text-decoration:none;
}

@media (max-width: 900px){
    .goappily-profile-stats-grid{ grid-template-columns: 1fr; }
}



/* Messages tab: cancel button styling */
.goappily-messages-portal .go-msg-cancel,
.goappily-messages-portal .go-msg-cancel-btn,
.goappily-messages-portal #go-msg-cancel,
.goappily-messages-portal button.cancel,
.goappily-messages-portal .button.cancel {
  appearance: none;
  border: 1px solid #d1d5db !important;
  background: #ffffff !important;
  color: #374151 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

.goappily-messages-portal .go-msg-cancel:hover,
.goappily-messages-portal .go-msg-cancel-btn:hover,
.goappily-messages-portal #go-msg-cancel:hover,
.goappily-messages-portal button.cancel:hover,
.goappily-messages-portal .button.cancel:hover {
  background: #f9fafb !important;
}

/* Transactions: Status pills (frontend) */
.go-status-pill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 10px;
    font-size:13px;
    font-weight:600;
    border-radius:999px;
    line-height:1.2;
    white-space:nowrap;
    position:relative;
    cursor:default;
    transition:transform .12s ease, filter .12s ease, opacity .12s ease;
}
.go-status-pill i{
    font-size:14px;
    line-height:1;
}
.go-status-pill:hover{
    transform:translateY(-1px);
    filter:brightness(0.98);
}

/* Tooltip */
.go-status-pill[data-tooltip]::after{
    content:attr(data-tooltip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 10px);
    transform:translateX(-50%) translateY(2px);
    background:#111827;
    color:#fff;
    padding:6px 8px;
    border-radius:10px;
    font-size:12px;
    font-weight:600;
    white-space:nowrap;
    opacity:0;
    pointer-events:none;
    transition:opacity .12s ease, transform .12s ease;
    z-index:50;
}
.go-status-pill[data-tooltip]::before{
    content:"";
    position:absolute;
    left:50%;
    bottom:calc(100% + 4px);
    transform:translateX(-50%);
    width:0;
    height:0;
    border-left:6px solid transparent;
    border-right:6px solid transparent;
    border-top:6px solid #111827;
    opacity:0;
    pointer-events:none;
    transition:opacity .12s ease;
    z-index:49;
}
.go-status-pill:hover::after,
.go-status-pill:hover::before{
    opacity:1;
}
.go-status-pill:hover::after{
    transform:translateX(-50%) translateY(0);
}

/* Colour mapping */
/* Default */
.go-status-pill{background-color:#eef2ff;color:#3730a3;}

.go-status-paid{
    background-color:#e6f4ea;
    color:#137333;
}
.go-status-refunded{
    background-color:#fdecea;
    color:#b3261e;
}
.go-status-pending{
    background-color:#fff4e5;
    color:#b45309;
}
.go-status-failed,
.go-status-cancelled{
    background-color:#f3f4f6;
    color:#374151;
}

/* Fallback for any unknown status */
.go-status-pill{
    background-color:#eef2ff;
    color:#3730a3;
}


/* Passenger form: AI holiday summary */
.goappily-passenger-section-summary{
    border:1px solid #e5e7eb;
    border-radius:10px;
    padding:16px;
    margin:0 0 16px 0;
    background:#ffffff;
}
.goappily-holiday-summary .goappily-passenger-section-title{
    margin:0 0 10px 0;
}
.goappily-holiday-summary-list{
    margin:0;
    padding-left:18px;
}
.goappily-holiday-summary-list li{
    margin:6px 0;
}
.goappily-holiday-summary-disclaimer{
    margin:10px 0 0 0;
    font-size:13px;
    opacity:0.85;
}


/* Booking Assistant icon rows */
.goappily-booking-assistant-items{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:8px;
}
.goappily-assist-row{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    line-height:1.4;
}
.goappily-assist-row i{
    margin-top:2px;
    font-size:16px;
    width:18px;
    text-align:center;
    opacity:0.9;
}
.goappily-assist-text{
    flex:1;
}

/* --------------------------------------------------------------------------
 * Mobile responsive tables (horizontal swipe)
 * -------------------------------------------------------------------------- */

.goappily-table-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  position: relative;
}

/* Subtle one-time mobile hint for horizontal swipe */
.goappily-swipe-hint {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: #FFFFFF;
  color: #000000;
  pointer-events: none;
  backdrop-filter: blur(2px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  opacity: 1;
  transform: translateY(0);
}

.goappily-swipe-hint.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
}

@media (min-width: 783px) {
  .goappily-swipe-hint { display: none; }
}

.goappily-table-scroll table {
  width: 100%;
  border-collapse: collapse;
}

@media (max-width: 782px) {
  .goappily-table-scroll table {
    min-width: 720px;
  }

  .goappily-table-scroll::-webkit-scrollbar {
    height: 10px;
  }
}


/* Orders (Customer Portal) */
.goappily-orders-two-column {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: flex-start;
}

.goappily-order-view-panel {
  flex: 1 1 52%;
}

.goappily-order-side-panels {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.goappily-order-financials-mini {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-top: 12px;
}

.goappily-order-notes {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
}

.goappily-doc-list {
  margin: 0;
  padding-left: 18px;
}

.goappily-mini-table {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .goappily-orders-two-column {
    flex-direction: column;
  }
  .goappily-order-view-panel,
  .goappily-order-side-panels {
    flex: 1 1 100%;
  }
}



/* ------------------------------------------------------------
   Frontend Orders Tab (match Bookings look & feel)
------------------------------------------------------------ */
#goappily-tab-orders .goappily-order-retrieve-card{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 18px;
    margin: 16px 0;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

#goappily-tab-orders .goappily-card{
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

#goappily-tab-orders .goappily-card-title{
    margin: 0 0 12px 0;
    display:flex;
    align-items:center;
    gap: 8px;
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap;
}

#goappily-tab-orders .goappily-card-title i{
    font-size: 16px;
}

#goappily-tab-orders .goappily-retrieve-search{
    display:flex;
    gap: 12px;
    align-items:flex-end;
    flex-wrap:wrap;
    margin-bottom: 14px;
}

#goappily-tab-orders .goappily-retrieve-search .goappily-search-input{
    flex: 1;
    min-width: 260px;
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.15);
    box-sizing: border-box;
}

#goappily-tab-orders .goappily-retrieve-search .goappily-search-button{
    white-space: nowrap;
}

/* Orders list table: match slimline bookings table */
#goappily-tab-orders .goappily-order-list-table{
    width:100%;
    border-collapse: separate;
    border-spacing: 0;
    background:#fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    overflow:hidden;
}

#goappily-tab-orders .goappily-order-list-table thead th{
    background: var(--goappily-primary-color, #05482f);
    color:#ffffff;
    border-bottom: 0;
    padding: 10px 10px;
    font-weight: 700;
}

#goappily-tab-orders .goappily-order-list-table thead th:first-child{
    border-top-left-radius: 14px;
}

#goappily-tab-orders .goappily-order-list-table thead th:last-child{
    border-top-right-radius: 14px;
}

#goappily-tab-orders .goappily-order-list-table td{
    padding: 6px 8px;
    font-size: 13px;
    line-height: 1.25;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: middle;
}

#goappily-tab-orders .goappily-order-list-table tbody tr:last-child td{
    border-bottom: 0;
}

#goappily-tab-orders .goappily-order-list-table .button.goappily-primary-button{
    padding: 6px 12px;
    font-size: 13px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.10);
}

#goappily-tab-orders .goappily-order-list-table .button.goappily-secondary-button{
    padding: 5px 12px;
    font-size: 13px;
}

/* Two-column layout like Bookings */
#goappily-tab-orders .goappily-orders-two-column{
    display:grid;
    grid-template-columns: 1fr 420px;
    gap: 18px;
    align-items:start;
    margin-top: 16px;
}

#goappily-tab-orders .goappily-order-side-panels{
    display:flex;
    flex-direction: column;
    gap: 16px;
}

@media (max-width: 980px){
    #goappily-tab-orders .goappily-orders-two-column{
        grid-template-columns: 1fr;
    }
    #goappily-tab-orders .goappily-card-title{
        white-space: normal;
    }
}


/* Customer Copy modal (Quotes) */
.goappily-customer-copy-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
}
@media (min-width: 900px){
  .goappily-customer-copy-grid{ grid-template-columns: 1fr 1fr; }
}
.goappily-customer-copy-block input[type="text"],
.goappily-customer-copy-block input[type="number"]{
  width:100%;
  max-width:260px;
}


.goappily-table-scroll-wrap{
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.goappily-table-scroll-hint{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 10px 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(5,72,47,0.08);
    border: 1px solid rgba(5,72,47,0.14);
    color: rgba(5,72,47,0.95);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
}
.goappily-table-scroll-text{ position: relative; z-index:2; white-space: nowrap; }
.goappily-table-scroll-arrow{ position: relative; z-index:2; font-size:15px; line-height:1; animation: goappilyScrollNudge 1.6s ease-in-out infinite; }
.goappily-table-scroll-arrow-left{ animation-name: goappilyScrollNudgeLeft; }
.goappily-table-scroll-fade{ position:absolute; top:0; bottom:0; width:52px; pointer-events:none; opacity:1; transition:opacity .2s ease; }
.goappily-table-scroll-fade-left{ left:0; background: linear-gradient(to right, rgba(5,72,47,0.18), rgba(5,72,47,0)); }
.goappily-table-scroll-fade-right{ right:0; background: linear-gradient(to left, rgba(5,72,47,0.18), rgba(5,72,47,0)); }
.goappily-table-scroll-hint.at-start .goappily-table-scroll-arrow-left,
.goappily-table-scroll-hint.at-start .goappily-table-scroll-fade-left{ opacity: .25; }
.goappily-table-scroll-hint.at-end .goappily-table-scroll-arrow-right,
.goappily-table-scroll-hint.at-end .goappily-table-scroll-fade-right{ opacity: .25; }
.goappily-table-scroll-hint.no-overflow .goappily-table-scroll-arrow,
.goappily-table-scroll-hint.no-overflow .goappily-table-scroll-fade{ opacity: .45; }
@keyframes goappilyScrollNudge{ 0%,100%{transform:translateX(0);} 50%{transform:translateX(3px);} }
@keyframes goappilyScrollNudgeLeft{ 0%,100%{transform:translateX(0);} 50%{transform:translateX(-3px);} }
@media (min-width:1025px){ .goappily-table-scroll-hint{ display:none; } }

.goappily-frontend-header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.goappily-frontend-header-brand img {
    width: auto;
    max-width: 180px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px 10px;
}

.goappily-frontend-header-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Dynamic agent branding overrides for External Agent */
.goappily-external-agent-shell,
.goappily-external-agent-shell .goappily-auth-wrap,
.goappily-external-agent-shell .goappily-login-widget,
.goappily-external-agent-shell .goappily-quote-request{
  --goqr-primary: var(--goappily-primary-color, #05482f);
  --goqr-secondary: var(--goappily-secondary-color, #7fb33f);
}

.goappily-external-agent-shell .goappily-auth-left{
  background: linear-gradient(120deg, var(--goappily-secondary-color, #7fb33f), var(--goappily-primary-color, #05482f)) !important;
  color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-auth-logo img{
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  max-width: 340px !important;
  max-height: none !important;
}

.goappily-external-agent-shell .goappily-auth-card{
  background: linear-gradient(120deg, var(--goappily-secondary-color), var(--goappily-primary-color)) !important;
  box-shadow: 0 0 25px 10px color-mix(in srgb, var(--goappily-primary-color) 45%, transparent) !important;
  -webkit-box-shadow: 0 0 25px 10px color-mix(in srgb, var(--goappily-primary-color) 45%, transparent) !important;
}

.goappily-external-agent-shell .goappily-auth-tab.active{
  background: var(--goappily-secondary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--goappily-primary-color) 55%, transparent) !important;
  -webkit-box-shadow: 0 0 10px 1px color-mix(in srgb, var(--goappily-primary-color) 55%, transparent) !important;
}

.goappily-external-agent-shell .goappily-auth-tab:hover,
.goappily-external-agent-shell .goappily-tab:hover,
.goappily-external-agent-shell .goappily-secondary-button:hover,
.goappily-external-agent-shell .goappily-auth-submit:hover,
.goappily-external-agent-shell .goappily-login-widget-inner input[type="submit"]:hover,
.goappily-external-agent-shell .goappily-login-widget-button:hover{
  background: var(--goappily-secondary-color) !important;
}

.goappily-external-agent-shell .goappily-auth-errors,
.goappily-external-agent-shell .goappily-auth-submit,
.goappily-external-agent-shell .goappily-login-widget-inner input[type="submit"],
.goappily-external-agent-shell .goappily-login-widget-button,
.goappily-external-agent-shell .goappily-primary-button,
.goappily-external-agent-shell .goappily-profile-submit,
.goappily-external-agent-shell .goappily-tab.active,
.goappily-external-agent-shell .goappily-badge--primary,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-btn--primary,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-button{
  background: var(--goappily-primary-color) !important;
  border-color: var(--goappily-primary-color) !important;
  color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-auth-submit,
.goappily-external-agent-shell .goappily-login-widget-inner input[type="submit"],
.goappily-external-agent-shell .goappily-login-widget-button,
.goappily-external-agent-shell .goappily-primary-button,
.goappily-external-agent-shell .goappily-profile-submit,
.goappily-external-agent-shell .goappily-tab.active{
  box-shadow: 0 10px 22px color-mix(in srgb, var(--goappily-primary-color) 45%, transparent) !important;
}

.goappily-external-agent-shell .goappily-secondary-button,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-btn--secondary{
  background: var(--goappily-secondary-color) !important;
  border-color: var(--goappily-secondary-color) !important;
}

.goappily-external-agent-shell .goappily-quote-request .goappily-qr-btn--secondary{
  color: color-mix(in srgb, var(--goappily-primary-color) 82%, #000000) !important;
}

.goappily-external-agent-shell .goappily-login-widget-inner h3,
.goappily-external-agent-shell .goappily-auth-extra-links a,
.goappily-external-agent-shell .goappily-quote-request,
.goappily-external-agent-shell .goappily-quote-request .goappily-quote-request-title,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-card__title,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-section-title,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-subtitle,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-label{
  color: var(--goappily-primary-color) !important;
}

.goappily-external-agent-shell .goappily-quote-request .goappily-qr-help,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-confirmation__subtitle{
  color: color-mix(in srgb, var(--goappily-primary-color) 72%, #475569) !important;
}

.goappily-external-agent-shell .goappily-quote-request .goappily-qr-input:focus,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-textarea:focus{
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--goappily-secondary-color) 28%, transparent) !important;
  border-color: color-mix(in srgb, var(--goappily-primary-color) 50%, #dbe4ee) !important;
}

.goappily-external-agent-shell .goappily-quote-request .goappily-qr-confirmation__icon{
  background: color-mix(in srgb, var(--goappily-primary-color) 18%, #ffffff) !important;
  color: var(--goappily-primary-color) !important;
}

.goappily-external-agent-shell .goappily-quote-request .goappily-qr-confirmation__ref{
  border-color: color-mix(in srgb, var(--goappily-primary-color) 40%, #cbd5e1) !important;
  background: color-mix(in srgb, var(--goappily-primary-color) 6%, #ffffff) !important;
}

.goappily-external-agent-shell .goappily-login-widget-inner input[type="submit"]:hover,
.goappily-external-agent-shell .goappily-login-widget-button:hover,
.goappily-external-agent-shell .goappily-auth-submit:hover,
.goappily-external-agent-shell .goappily-primary-button:hover,
.goappily-external-agent-shell .goappily-profile-submit:hover,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-btn--primary:hover,
.goappily-external-agent-shell .goappily-quote-request .goappily-qr-button:hover{
  background: var(--goappily-secondary-color) !important;
  border-color: var(--goappily-secondary-color) !important;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--goappily-primary-color) 55%, transparent) !important;
}


.goappily-external-agent-shell .goappily-auth-form h3,
.goappily-external-agent-shell .goappily-panel h3,
.goappily-external-agent-shell .goappily-frontend-header h2,
.goappily-external-agent-shell .goappily-frontend-header p a,
.goappily-external-agent-shell .goappily-profile-header h3,
.goappily-external-agent-shell .goappily-profile-stat-value{
  color: var(--goappily-primary-color) !important;
}

.goappily-external-agent-shell .goappily-auth-form input:focus,
.goappily-external-agent-shell .goappily-auth-form textarea:focus,
.goappily-external-agent-shell .goappily-profile-form input:focus,
.goappily-external-agent-shell .goappily-profile-form textarea:focus,
.goappily-external-agent-shell .goappily-quote-request input:focus,
.goappily-external-agent-shell .goappily-quote-request textarea:focus{
  outline: none !important;
  border-color: color-mix(in srgb, var(--goappily-primary-color) 45%, #cbd5e1) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--goappily-secondary-color) 24%, transparent) !important;
}

.goappily-external-agent-shell .goappily-auth-submit[disabled],
.goappily-external-agent-shell .goappily-profile-submit[disabled]{
  opacity: .7;
}


.goappily-booking-cancel-btn{
  min-width: 110px;
}
.goappily-cancel-modal{
  position: fixed;
  inset: 0;
  z-index: 99999;
}
.goappily-cancel-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.goappily-cancel-modal__dialog{
  position: relative;
  z-index: 2;
  width: min(92vw, 460px);
  margin: 12vh auto 0;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 25px 80px rgba(15,23,42,0.22);
  text-align: center;
}
.goappily-cancel-modal__close{
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.goappily-cancel-modal__icon{
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
  font-size: 24px;
}
.goappily-cancel-modal__message{
  margin: 0 0 18px;
}
.goappily-cancel-modal__actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.goappily-cancel-modal__feedback{
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
}
.goappily-cancel-modal__feedback.is-success{
  background: #eaf8f1;
  color: #166534;
}
.goappily-cancel-modal__feedback.is-error{
  background: #fef2f2;
  color: #991b1b;
}


.goappily-external-agent-shell .goappily-auth-submit.is-loading,
.goappily-external-agent-shell .goappily-profile-submit.is-loading{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: wait;
}

.goappily-spinner{
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 999px;
  display: inline-block;
  animation: goappily-spin .75s linear infinite;
  flex: 0 0 auto;
}

.goappily-request-loader{
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 700;
  color: var(--goappily-primary-color, #111827);
}

.goappily-request-loader .goappily-spinner{
  width: 22px;
  height: 22px;
  border-color: color-mix(in srgb, var(--goappily-primary-color, #2563eb) 22%, transparent);
  border-top-color: var(--goappily-primary-color, #2563eb);
}

.goappily-request-embed{
  opacity: 0;
  transition: opacity .18s ease;
}

.goappily-request-embed.is-loaded{
  opacity: 1;
}

@keyframes goappily-spin{
  to { transform: rotate(360deg); }
}


/* Home + Profile merged layout */
.goappily-home-profile-grid{
    display:grid;
    grid-template-columns:minmax(0, 1fr) minmax(320px, 1fr);
    gap:22px;
    align-items:start;
}
.goappily-home-profile-card{
    background:#ffffff;
    border:1px solid rgba(0,0,0,0.06);
    border-radius:18px;
    padding:20px;
    box-shadow:0 12px 28px rgba(0,0,0,0.06);
}
.goappily-home-profile-card .goappily-profile-header{
    margin-bottom:18px;
}
.goappily-profile-header h3,
.goappily-panel > h3,
.goappily-messages-portal > h3{
    margin-bottom:8px !important;
    line-height:1.25;
}
.goappily-profile-header p{
    margin-top:0 !important;
    line-height:1.55;
}
.goappily-home-profile-card .goappily-profile-stats-grid{
    margin-top:18px;
}
@media (max-width: 900px){
    .goappily-home-profile-grid{
        grid-template-columns:1fr;
    }
}


/* Quotes actions and preview */
.goappily-quote-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center;}
.goappily-quote-actions .goappily-secondary-button,.goappily-quote-actions .goappily-profile-submit{padding:9px 13px;font-size:13px;white-space:nowrap;}
.goappily-quote-preview{margin-top:18px;border:1px solid #d8e3ef;border-radius:18px;background:#fff;box-shadow:0 12px 30px rgba(15,23,42,.08);overflow:hidden;}
.goappily-quote-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#f4f8fc;border-bottom:1px solid #d8e3ef;color:#10233f;}
.goappily-quote-preview-toolbar>div{display:flex;gap:8px;flex-wrap:wrap;}
.goappily-quote-preview-frame{max-height:760px;overflow:auto;padding:16px;background:#fff;}
.goappily-quote-preview-frame img{max-width:100%;height:auto;}
@media (max-width: 760px){.goappily-quote-actions{flex-direction:column;align-items:stretch}.goappily-quote-actions button{width:100%;}.goappily-quote-preview-toolbar{align-items:flex-start;flex-direction:column;}.goappily-quote-preview-toolbar>div{width:100%;}.goappily-quote-preview-toolbar button{flex:1;}}

/* External Agent bookings preview/actions */
.goappily-booking-actions,
.goappily-quote-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.goappily-booking-preview {
    margin-top: 18px;
    border: 1px solid #d7e4f5;
    border-radius: 18px;
    overflow: hidden;
    background: #f8fbff;
}
.goappily-booking-preview-sections {
    display: grid;
    gap: 16px;
    padding: 16px;
}
.goappily-booking-preview-section {
    background: #ffffff;
    border: 1px solid #e1ebf8;
    border-radius: 14px;
    padding: 16px;
}
.goappily-booking-preview-section h4 {
    margin: 0 0 12px;
    color: var(--goappily-primary-color, #05482f);
}
.goappily-booking-print-area {
    overflow: auto;
    max-height: 760px;
    background: #ffffff;
    border-radius: 12px;
}
.goappily-booking-documents {
    margin: 0;
    padding-left: 18px;
}
.goappily-doc-item {
    margin: 0 0 8px;
}
.goappily-doc-button {
    font-weight: 700;
}
@media print {
    body * { visibility: hidden; }
    .goappily-booking-print-area, .goappily-booking-print-area * { visibility: visible; }
    .goappily-booking-print-area { position: absolute; left: 0; top: 0; width: 100%; max-height: none; overflow: visible; }
}

/* Payments tab two-column secure gateway layout */
.goappily-payments-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);gap:22px;align-items:start;margin-top:14px;}
.goappily-payments-column{background:#fff;border:1px solid #d9e6f5;border-radius:18px;padding:18px;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.goappily-payments-column h4{margin:0 0 12px;color:var(--goappily-primary-color,#05482f);font-size:18px;}
.goappily-payments-secure-note{margin:0 0 14px;color:#516173;font-size:14px;line-height:1.5;}
.goappily-payment-gateway-frame{display:block;width:100%;min-height:840px;border:0;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1px #e5edf7;}
@media(max-width:980px){.goappily-payments-grid{grid-template-columns:1fr}.goappily-payment-gateway-frame{min-height:900px}}


/* External Agent 0.5.9: make embedded payment gateway fit full checkout height.
   Dynamic JS postMessage resizing is supported, with a generous fallback for gateways that do not post height. */
.goappily-payment-gateway-frame{
    width:100%;
    min-height:1600px;
    height:1600px;
    overflow:hidden;
}
.goappily-payments-gateway{
    overflow:visible;
}
@media(max-width:980px){
    .goappily-payment-gateway-frame{
        min-height:1800px;
        height:1800px;
    }
}

.goappily-messages-embed-wrap{width:100%;min-height:620px;border:1px solid #dbe7f3;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 30px rgba(15,23,42,.06);}
.goappily-messages-embed-frame{display:block;width:100%;min-height:620px;border:0;background:#fff;overflow:hidden;}
@media(max-width:900px){.goappily-messages-embed-wrap,.goappily-messages-embed-frame{min-height:760px;}}


/* External Agent booking detail view, mirrors Master CRM frontend booking layout */
.goappily-external-booking-details-layout{
    padding:16px;
    display:grid;
    grid-template-columns:minmax(0, 1.25fr) minmax(300px, .75fr);
    gap:18px;
    align-items:start;
}
.goappily-external-booking-details-layout .goappily-booking-details-left,
.goappily-external-booking-details-layout .goappily-booking-details-right{
    min-width:0;
}
.goappily-external-booking-details-layout .goappily-booking-details-right{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.goappily-external-booking-details-layout .goappily-booking-print-area{
    max-height:none;
    overflow:visible;
    background:#fff;
    border-radius:14px;
}
.goappily-external-booking-details-layout .goappily-booking-sidecard{
    background:#fff;
    border:1px solid #dbe7f4;
    border-radius:14px;
    padding:16px;
    box-shadow:0 8px 24px rgba(15,23,42,.04);
}
.goappily-external-booking-details-layout .goappily-booking-sidecard h5{
    margin:0 0 12px;
    color:var(--goappily-primary-color,#05482f);
    font-size:15px;
    line-height:1.25;
}
.goappily-external-booking-details-layout .goappily-booking-documents{
    list-style:none;
    margin:0;
    padding:0;
}
.goappily-external-booking-details-layout .goappily-doc-item{margin:0 0 10px;}
.goappily-external-booking-details-layout .goappily-doc-button,
.goappily-external-booking-details-layout .goappily-booking-messages .button,
.goappily-external-booking-details-layout .goappily-booking-passport .button,
.goappily-external-booking-details-layout .goappily-booking-message-placeholder{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    border-radius:999px;
    padding:10px 16px;
    text-decoration:none;
    background:var(--goappily-secondary-color,#78b83a);
    color:#fff;
    border:0;
    font-weight:700;
    cursor:pointer;
}
.goappily-external-booking-details-layout .go-table,
.goappily-external-booking-details-layout table{
    width:100%;
    border-collapse:collapse;
}
.goappily-external-booking-details-layout .go-table th,
.goappily-external-booking-details-layout .go-table td{
    padding:8px;
    border-bottom:1px solid #e5edf7;
    text-align:left;
}
.goappily-booking-assistant-summary{display:grid;gap:8px;margin:0 0 12px;}
.goappily-booking-assistant-summary div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #eef3f8;padding-bottom:6px;}
.goappily-booking-assistant-summary dt{font-weight:700;color:#415a77;}
.goappily-booking-assistant-summary dd{margin:0;text-align:right;}
@media (max-width: 920px){.goappily-external-booking-details-layout{grid-template-columns:1fr;}.goappily-external-booking-details-layout .goappily-booking-details-right{order:2;}.goappily-external-booking-details-layout .goappily-booking-details-left{order:1;}}

@media (max-width: 980px){
    .goappily-booking-details-layout{
        grid-template-columns:1fr;
    }
}

/* External Agent 0.6.7: harden booking detail two-column layout.
   The booking confirmation HTML can contain fixed-width email/template markup, so
   keep that constrained inside the left preview instead of letting it force the
   right-hand booking tools underneath. */
.goappily-booking-preview .goappily-external-booking-details-layout{
    display:flex !important;
    flex-direction:row !important;
    flex-wrap:nowrap !important;
    align-items:flex-start !important;
    gap:18px !important;
    width:100% !important;
    max-width:100% !important;
    box-sizing:border-box !important;
}
.goappily-booking-preview .goappily-external-booking-details-layout > .goappily-booking-details-left{
    flex:1 1 calc(60% - 9px) !important;
    width:calc(60% - 9px) !important;
    max-width:calc(60% - 9px) !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    overflow:hidden !important;
}
.goappily-booking-preview .goappily-external-booking-details-layout > .goappily-booking-details-right{
    flex:1 1 calc(40% - 9px) !important;
    width:calc(40% - 9px) !important;
    max-width:calc(40% - 9px) !important;
    min-width:300px !important;
    box-sizing:border-box !important;
}
.goappily-booking-preview .goappily-booking-details-left .goappily-booking-preview-body,
.goappily-booking-preview .goappily-booking-details-left .goappily-booking-print-area,
.goappily-booking-preview .goappily-booking-details-left .goappily-booking-preview-html{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    box-sizing:border-box !important;
    overflow:auto !important;
}
.goappily-booking-preview .goappily-booking-details-left .goappily-booking-preview-html > *{
    max-width:100% !important;
    box-sizing:border-box !important;
}
@media (max-width: 1050px){
    .goappily-booking-preview .goappily-external-booking-details-layout{
        flex-direction:column !important;
    }
    .goappily-booking-preview .goappily-external-booking-details-layout > .goappily-booking-details-left,
    .goappily-booking-preview .goappily-external-booking-details-layout > .goappily-booking-details-right{
        flex:1 1 auto !important;
        width:100% !important;
        max-width:100% !important;
        min-width:0 !important;
    }
}

/* External Agent auth reset refinements */
.goappily-external-agent-shell .goappily-auth-tab:hover,
.goappily-external-agent-shell .goappily-auth-tab:hover span,
.goappily-external-agent-shell .goappily-tab:hover,
.goappily-external-agent-shell .goappily-tab:hover span{
  color: #ffffff !important;
}

.goappily-external-agent-shell [data-reset-request-code]{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto !important;
  min-width: 210px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.goappily-external-agent-shell .goappily-reset-code-note{
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

/* Multi-Agent primary colour enforcement for External Agent tables and request/payment actions */
.goappily-external-agent-shell table thead th,
.goappily-external-agent-shell .goappily-table thead th,
.goappily-external-agent-shell .goappily-quotes-table thead th,
.goappily-external-agent-shell .goappily-bookings-table thead th,
.goappily-external-agent-shell .goappily-orders-table thead th,
.goappily-external-agent-shell .goappily-payments-table thead th,
.goappily-external-agent-shell #goappily-tab-quotes table thead th,
.goappily-external-agent-shell #goappily-tab-bookings table thead th,
.goappily-external-agent-shell #goappily-tab-orders table thead th,
.goappily-external-agent-shell #goappily-tab-payments table thead th{
  background: var(--goappily-primary-color, #05482f) !important;
  border-color: var(--goappily-primary-color, #05482f) !important;
  color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-quote-request-title,
.goappily-external-agent-shell .goappily-qr-card__title,
.goappily-external-agent-shell .goappily-qr-section-title,
.goappily-external-agent-shell .request-title{
  color: var(--goappily-primary-color, #05482f) !important;
}

.goappily-external-agent-shell .goappily-qr-btn--primary,
.goappily-external-agent-shell .goappily-qr-button,
.goappily-external-agent-shell button[type="submit"].goappily-qr-button,
.goappily-external-agent-shell .go-pay-now,
.goappily-external-agent-shell .go-pay-now-button,
.goappily-external-agent-shell .gopaynow-button,
.goappily-external-agent-shell a.gopaynow-button{
  background: var(--goappily-primary-color, #05482f) !important;
  border-color: var(--goappily-primary-color, #05482f) !important;
  color: #ffffff !important;
}

/* GoAppily External Agent dynamic brand colour overrides.
   Keep these at the end so they win over imported Master CRM, WooCommerce and gateway defaults. */
.goappily-external-agent-shell,
.goappily-frontend-wrap,
[data-goappily-external-agent] {
    --go-primary: var(--goappily-primary-color, #05482f);
    --go-secondary: var(--goappily-secondary-color, #7fb33f);
    --goqr-primary: var(--goappily-primary-color, #05482f);
    --goqr-secondary: var(--goappily-secondary-color, #7fb33f);
}

.goappily-external-agent-shell table thead th,
.goappily-external-agent-shell .go-table thead th,
.goappily-external-agent-shell .goappily-table thead th,
.goappily-external-agent-shell .goappily-bookings-table thead th,
.goappily-external-agent-shell .goappily-quotes-table thead th,
.goappily-external-agent-shell .goappily-orders-table thead th,
.goappily-external-agent-shell .goappily-payments-table thead th,
.goappily-external-agent-shell .shop_table thead th,
.goappily-external-agent-shell .woocommerce table.shop_table thead th,
.goappily-external-agent-shell .woocommerce-checkout-review-order-table thead th {
    background: var(--goappily-primary-color, #05482f) !important;
    background-color: var(--goappily-primary-color, #05482f) !important;
    border-color: var(--goappily-primary-color, #05482f) !important;
    color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-profile-header h3,
.goappily-external-agent-shell .goappily-payments-column h4,
.goappily-external-agent-shell .goappily-quote-request h1,
.goappily-external-agent-shell .goappily-quote-request h2,
.goappily-external-agent-shell .goappily-quote-request h3,
.goappily-external-agent-shell .goappily-qr-card__title,
.goappily-external-agent-shell .goappily-qr-section-title,
.goappily-external-agent-shell .request-title {
    color: var(--goappily-primary-color, #05482f) !important;
}

.goappily-external-agent-shell .goappily-profile-submit,
.goappily-external-agent-shell .goappily-auth-submit,
.goappily-external-agent-shell .goappily-primary-button,
.goappily-external-agent-shell .goappily-login-widget-button,
.goappily-external-agent-shell .goappily-qr-btn--primary,
.goappily-external-agent-shell .goappily-qr-button,
.goappily-external-agent-shell button[type="submit"],
.goappily-external-agent-shell input[type="submit"],
.goappily-external-agent-shell a.button,
.goappily-external-agent-shell button.button,
.goappily-external-agent-shell .woocommerce a.button,
.goappily-external-agent-shell .woocommerce button.button,
.goappily-external-agent-shell .woocommerce input.button,
.goappily-external-agent-shell .woocommerce #payment #place_order,
.goappily-external-agent-shell #place_order,
.goappily-external-agent-shell .go-pay-now,
.goappily-external-agent-shell .go-pay-now-button,
.goappily-external-agent-shell .gopaynow-button,
.goappily-external-agent-shell .gpn-pay-button,
.goappily-external-agent-shell .gpn-submit {
    background: var(--goappily-primary-color, #05482f) !important;
    background-color: var(--goappily-primary-color, #05482f) !important;
    border-color: var(--goappily-primary-color, #05482f) !important;
    color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-secondary-button,
.goappily-external-agent-shell .goappily-qr-btn--secondary,
.goappily-external-agent-shell .goappily-message-new-button,
.goappily-external-agent-shell .goappily-new-message,
.goappily-external-agent-shell .new-message,
.goappily-external-agent-shell .new-message-button,
.goappily-external-agent-shell .go-message-new,
.goappily-external-agent-shell a.secondary-button,
.goappily-external-agent-shell button.secondary-button {
    background: var(--goappily-secondary-color, #7fb33f) !important;
    background-color: var(--goappily-secondary-color, #7fb33f) !important;
    border-color: var(--goappily-secondary-color, #7fb33f) !important;
    color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-auth-tab:hover,
.goappily-external-agent-shell .goappily-tab:hover,
.goappily-external-agent-shell .goappily-auth-tab.active,
.goappily-external-agent-shell .goappily-tab.active {
    color: #ffffff !important;
}

/* External Agent header title must remain white over the branded header background. */
.goappily-frontend-header-main h2,
.goappily-external-agent-shell .goappily-frontend-header-main h2,
.goappily-external-agent-shell .goappily-frontend-header .goappily-frontend-header-main h2 {
    color: #ffffff !important;
}

/* External Agent passenger form branding enforcement, v0.7.7 */
.goappily-external-agent-shell .goappily-passenger-section-title,
.goappily-external-agent-shell .goappily-passenger-group h4,
.goappily-external-agent-shell .goappily-panel h2,
.goappily-external-agent-shell .goappily-panel h3,
.goappily-external-agent-shell .goappily-panel h4,
.goappily-external-passenger-form-wrap h2,
.goappily-external-passenger-form-wrap h3,
.goappily-external-passenger-form-wrap h4,
.goappily-external-passenger-form-wrap .goappily-passenger-section-title,
.goappily-external-passenger-form-wrap .goappily-external-passenger-group > strong {
    color: var(--goappily-primary-color) !important;
}

.goappily-external-agent-shell .goappily-passenger-form button,
.goappily-external-agent-shell .goappily-passenger-form input[type="submit"],
.goappily-external-agent-shell .goappily-passenger-form .button,
.goappily-external-passenger-form-wrap button,
.goappily-external-passenger-form-wrap input[type="submit"],
.goappily-external-passenger-submit {
    background: var(--goappily-primary-color) !important;
    color: #ffffff !important;
    border-color: var(--goappily-primary-color) !important;
}

.goappily-external-agent-shell .goappily-passenger-form button:hover,
.goappily-external-agent-shell .goappily-passenger-form input[type="submit"]:hover,
.goappily-external-agent-shell .goappily-passenger-form .button:hover,
.goappily-external-passenger-form-wrap button:hover,
.goappily-external-passenger-form-wrap input[type="submit"]:hover,
.goappily-external-passenger-submit:hover {
    background: var(--goappily-secondary-color) !important;
    border-color: var(--goappily-secondary-color) !important;
    color: #ffffff !important;
}

/* v0.7.8: External Agent booking confirmation preview must inherit agent primary colour. */
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html h1,
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html h2,
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html h3,
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html h4,
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html a:not(.button),
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#005f73"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #005f73"]{
    color: var(--goappily-primary-color, #05482f) !important;
}

.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html .button,
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html a[style*="background:#e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html a[style*="background: #e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#005f73"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #005f73"]{
    background: var(--goappily-primary-color, #05482f) !important;
    background-color: var(--goappily-primary-color, #05482f) !important;
    border-color: var(--goappily-primary-color, #05482f) !important;
    color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="border:1px solid #e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="border: 1px solid #e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="border-color:#e88f00"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="border-color: #e88f00"]{
    border-color: var(--goappily-primary-color, #05482f) !important;
}


/* External Agent booking template colour safety pass, generated v21.0.129/0.8.1.
   Only legacy Master CRM accent colours are normalised. Neutral greys remain unchanged. */
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#dd8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #dd8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#db8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #db8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#d97706"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #d97706"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#f59e0b"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #f59e0b"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color:#005f73"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="color: #005f73"]{
    color: var(--goappily-primary-color, #05482f) !important;
}
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html a[style*="background:#dd8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html a[style*="background: #dd8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#dd8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #dd8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#db8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #db8500"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#d97706"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #d97706"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#f59e0b"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #f59e0b"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background:#005f73"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html [style*="background: #005f73"]{
    background: var(--goappily-primary-color, #05482f) !important;
    background-color: var(--goappily-primary-color, #05482f) !important;
    border-color: var(--goappily-primary-color, #05482f) !important;
    color:#ffffff !important;
}
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html a[style*="background"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html button[style*="background"]{
    color:#ffffff !important;
}


/* v21.0.129 / v0.8.1: preserve email-template rounded section cards in frontend booking previews.
   The earlier theme reset removed borders from all preview <td> elements, which flattened
   email-builder sections where the border and border-radius live directly on a table cell. */
.goappily-booking-preview-body .goappily-booking-preview-html table[style*="border-radius"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html table[style*="border-radius"]{
    border-collapse: separate !important;
    border-spacing: 0 !important;
    overflow: hidden !important;
}
.goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius:12px"],
.goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius: 12px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius:12px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius: 12px"]{
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
}
.goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius:10px"],
.goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius: 10px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius:10px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html td[style*="border-radius: 10px"]{
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background-clip: padding-box !important;
}
.goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius:18px"],
.goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius: 18px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius:18px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius: 18px"]{
    border-radius: 18px !important;
    overflow: hidden !important;
}
.goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius:10px"],
.goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius: 10px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius:10px"],
.goappily-external-agent-shell .goappily-booking-preview-body .goappily-booking-preview-html div[style*="border-radius: 10px"]{
    border-radius: 10px !important;
}


.goappily-message-notice-overlay{position:fixed;inset:0;background:rgba(15,23,42,.48);z-index:999999;display:flex;align-items:center;justify-content:center;padding:22px}.goappily-message-notice-card{position:relative;background:#fff;border-radius:18px;box-shadow:0 24px 70px rgba(15,23,42,.28);max-width:480px;width:100%;padding:28px;color:#1f2937;text-align:left}.goappily-message-notice-card h3{margin:0 34px 12px 0;font-size:22px;line-height:1.25}.goappily-message-notice-card p{font-size:15px;line-height:1.55;margin:0 0 12px}.goappily-message-notice-close{position:absolute;top:12px;right:14px;border:0;background:transparent;font-size:28px;line-height:1;cursor:pointer;color:#64748b}.goappily-message-notice-ok{margin-top:8px}

/* CRM-style customer details profile section */
.goappily-profile-form--customer-details{
    gap:18px;
}
.goappily-crm-customer-section{
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:18px;
    box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.goappily-crm-customer-section__head{
    margin-bottom:16px;
}
.goappily-crm-customer-section__head h4{
    margin:0 0 6px;
    color:var(--goappily-primary-color,#05482f);
    font-size:18px;
    line-height:1.25;
}
.goappily-crm-customer-section__head p{
    margin:0;
    color:#64748b;
    font-size:13px;
    line-height:1.5;
}
.goappily-crm-customer-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px 16px;
}
.goappily-crm-customer-grid .goappily-profile-row.full-width{
    grid-column:1 / -1;
}
.goappily-crm-customer-grid .goappily-profile-row label{
    display:block;
    margin:0;
}
.goappily-crm-customer-grid .goappily-profile-row input,
.goappily-crm-customer-grid .goappily-profile-row textarea{
    min-height:44px;
    border-radius:10px;
    background:#ffffff;
}
.goappily-crm-customer-grid .goappily-profile-row input[readonly],
.goappily-crm-customer-grid .goappily-profile-row input:disabled{
    background:#f8fafc;
    color:#64748b;
}
@media (max-width:760px){
    .goappily-crm-customer-grid{
        grid-template-columns:1fr;
    }
}


/* v0.8.23: CRM-style action buttons across External Agent tables */
.goappily-external-agent-shell .goappily-quote-actions button,
.goappily-external-agent-shell .goappily-booking-actions button,
.goappily-external-agent-shell .goappily-order-actions button,
.goappily-external-agent-shell .goappily-profile-actions button,
.goappily-external-agent-shell .goappily-frontend-table .button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-height: 34px !important;
    padding: 8px 13px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,0.10) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 10px 22px color-mix(in srgb, var(--goappily-primary-color, #05482f) 25%, transparent) !important;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease !important;
}

.goappily-external-agent-shell .goappily-quote-actions .goappily-profile-submit,
.goappily-external-agent-shell .goappily-booking-actions .goappily-profile-submit,
.goappily-external-agent-shell .goappily-order-actions .goappily-profile-submit,
.goappily-external-agent-shell .goappily-quote-actions .goappily-primary-button,
.goappily-external-agent-shell .goappily-booking-actions .goappily-primary-button,
.goappily-external-agent-shell .goappily-order-actions .goappily-primary-button {
    background: var(--goappily-primary-color, #05482f) !important;
    background-color: var(--goappily-primary-color, #05482f) !important;
    border-color: var(--goappily-primary-color, #05482f) !important;
    color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-quote-actions .goappily-secondary-button,
.goappily-external-agent-shell .goappily-booking-actions .goappily-secondary-button,
.goappily-external-agent-shell .goappily-order-actions .goappily-secondary-button {
    background: var(--goappily-secondary-color, #7fb33f) !important;
    background-color: var(--goappily-secondary-color, #7fb33f) !important;
    border-color: var(--goappily-secondary-color, #7fb33f) !important;
    color: #ffffff !important;
}

.goappily-external-agent-shell .goappily-quote-actions button:hover,
.goappily-external-agent-shell .goappily-booking-actions button:hover,
.goappily-external-agent-shell .goappily-order-actions button:hover,
.goappily-external-agent-shell .goappily-profile-actions button:hover,
.goappily-external-agent-shell .goappily-frontend-table .button:hover {
    transform: translateY(-1px) !important;
    filter: brightness(0.96) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.goappily-external-agent-shell .goappily-order-actions .goappily-booking-cancel-btn,
.goappily-external-agent-shell .goappily-booking-actions .goappily-booking-cancel-btn {
    min-width: auto !important;
}

@media (max-width: 760px){
    .goappily-external-agent-shell .goappily-quote-actions button,
    .goappily-external-agent-shell .goappily-booking-actions button,
    .goappily-external-agent-shell .goappily-order-actions button {
        width: 100% !important;
    }
}


/* v0.8.25: External Agent order view spacing and heading scale */
.goappily-external-agent-shell .goappily-order-preview {
    margin-top: 14px !important;
}

.goappily-external-agent-shell .goappily-order-preview .goappily-quote-preview-toolbar {
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
    border-radius: 0 !important;
}

.goappily-external-agent-shell .goappily-external-order-details-layout {
    gap: 16px !important;
    margin-top: 0 !important;
}

.goappily-external-agent-shell .goappily-order-preview .goappily-card {
    padding: 16px !important;
    border-radius: 16px !important;
    box-sizing: border-box !important;
}

.goappily-external-agent-shell .goappily-order-preview .goappily-card-title,
.goappily-external-agent-shell .goappily-order-preview h4.goappily-card-title {
    margin: 0 0 14px !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

.goappily-external-agent-shell .goappily-order-preview .goappily-order-side-panels {
    gap: 16px !important;
}

.goappily-external-agent-shell .goappily-order-preview p,
.goappily-external-agent-shell .goappily-order-preview .goappily-muted,
.goappily-external-agent-shell .goappily-order-preview .goappily-frontend-muted {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.goappily-external-agent-shell .goappily-order-preview .goappily-order-financials-mini,
.goappily-external-agent-shell .goappily-order-preview .goappily-order-notes {
    margin-top: 12px !important;
    padding: 14px !important;
}

.goappily-external-agent-shell .goappily-order-preview [data-order-view-html] > *:first-child,
.goappily-external-agent-shell .goappily-order-preview [data-order-documents-html] > *:first-child,
.goappily-external-agent-shell .goappily-order-preview [data-order-transactions-html] > *:first-child,
.goappily-external-agent-shell .goappily-order-preview [data-order-messages-html] > *:first-child {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    .goappily-external-agent-shell .goappily-external-order-details-layout {
        gap: 14px !important;
    }
}

@media (max-width: 640px) {
    .goappily-external-agent-shell .goappily-order-preview .goappily-card {
        padding: 14px !important;
    }
    .goappily-external-agent-shell .goappily-order-preview .goappily-card-title,
    .goappily-external-agent-shell .goappily-order-preview h4.goappily-card-title {
        font-size: 20px !important;
    }
}


/* GoAppily booking/order compact action buttons */
.goappily-booking-actions,
.goappily-order-actions,
.goappily-actions-col {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.goappily-booking-actions .button,
.goappily-booking-actions button,
.goappily-order-actions .button,
.goappily-order-actions button,
.goappily-actions-col .button,
.goappily-actions-col button,
.goappily-customer-action-button {
    min-height: 30px;
    padding: 6px 10px !important;
    font-size: 12px !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}
.goappily-booking-actions--compact {
    flex-wrap: nowrap;
}
@media (max-width: 980px) {
    .goappily-booking-actions--compact {
        flex-wrap: wrap;
    }
}

/* ------------------------------------------------------------
   External Agent Overview compact CRM cards + agency profile
------------------------------------------------------------ */
.goappily-overview-welcome{
    margin-bottom: 12px;
}
.goappily-agent-overview-card{
    display: grid;
    gap: 12px;
    margin: 12px 0 14px;
    padding: 14px;
    border: 1px solid #e5edf7;
    border-radius: 18px;
    background: linear-gradient(180deg,#ffffff,#f8fafc);
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.goappily-agent-description{
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.goappily-agent-description-icon,
.goappily-profile-stat-card--compact .goappily-profile-stat-icon{
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 13px;
    background: var(--goappily-primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(15,23,42,.10);
}
.goappily-agent-description h4{
    margin: 0 0 5px;
    font-size: 15px;
    color: var(--goappily-primary-color);
}
.goappily-agent-description p{
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
}
.goappily-agent-socials{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.goappily-agent-social-link{
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--goappily-secondary-color);
    border-radius: 999px;
    background: var(--goappily-primary-color);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 8px 16px rgba(15,23,42,.08);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.goappily-agent-social-link i,
.goappily-agent-social-link span{
    color: #ffffff !important;
}
.goappily-agent-social-link:hover{
    background: var(--goappily-secondary-color);
    border-color: var(--goappily-primary-color);
    color: #ffffff !important;
    transform: translateY(-1px);
}
.goappily-profile-stats-grid--compact{
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 12px;
    margin: 14px 0 14px;
    max-width: 100%;
    overflow: visible;
}
.goappily-profile-stat-card--compact{
    min-height: 72px;
    padding: 12px 13px;
    min-width: 0;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15,23,42,.055);
}
.goappily-profile-stat-card--compact .goappily-profile-stat-icon{
    background: var(--goappily-secondary-color);
}
@media (max-width: 760px){
    .goappily-profile-stats-grid--compact{
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}
@media (max-width: 460px){
    .goappily-profile-stats-grid--compact{
        grid-template-columns: 1fr;
    }
}
.goappily-profile-stat-card--compact .goappily-profile-stat-label{
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.goappily-profile-stat-card--compact .goappily-profile-stat-value{
    font-size: 20px;
}
@media (max-width: 700px){
    .goappily-profile-stats-grid--compact{grid-template-columns: repeat(2,minmax(0,1fr));}
    .goappily-agent-description{display:block;}
    .goappily-agent-description-icon{margin-bottom:10px;}
}


/* External Agent 0.8.33: quote preview uses the same generated document HTML as Master CRM.
   The wrapper only provides modal chrome/scrolling, and does not add draft-style borders/backgrounds. */
.goappily-external-agent-shell .goappily-quote-preview{
    margin-top:18px;
    border:1px solid #d8e3ef;
    border-radius:18px;
    background:#fff;
    box-shadow:0 12px 30px rgba(15,23,42,.08);
    overflow:hidden;
}
.goappily-external-agent-shell .goappily-quote-preview-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    background:#f4f8fc;
    border-bottom:1px solid #d8e3ef;
    color:#10233f;
}
.goappily-external-agent-shell .goappily-quote-preview-toolbar>div{display:flex;gap:8px;flex-wrap:wrap;}
.goappily-external-agent-shell .goappily-quote-preview-frame{
    max-height:820px;
    overflow:auto;
    padding:18px 16px;
    background:#fff !important;
}
.goappily-external-agent-shell .goappily-quote-preview-body{
    max-width:900px;
    margin:0 auto;
    background:#fff !important;
}
.goappily-external-agent-shell .goappily-quote-preview-body img{max-width:100%;height:auto;}
.goappily-external-agent-shell .goappily-quote-preview-body h2{font-size:26px;}
@media (max-width:760px){
    .goappily-external-agent-shell .goappily-quote-preview-toolbar{align-items:flex-start;flex-direction:column;}
    .goappily-external-agent-shell .goappily-quote-preview-toolbar>div{width:100%;}
    .goappily-external-agent-shell .goappily-quote-preview-toolbar button{flex:1;}
    .goappily-external-agent-shell .goappily-quote-preview-frame{padding:14px 8px;}
}



/* External Agent 0.8.34: keep Master CRM quote template inline styles intact.
   Do not reset table borders or padding here, those are part of the saved quote design. */
.goappily-external-agent-shell .goappily-quote-preview-body table{
    max-width:100%;
}
.goappily-external-agent-shell .goappily-quote-preview-body img{
    max-width:100%;
    height:auto;
}

/* External Agent 0.8.35: isolate quote preview in an iframe so the customer sees
   the exact Master CRM quote/email HTML with only server-side agent branding overrides. */
.goappily-external-agent-shell .goappily-quote-preview-frame--iframe{
    padding:0 !important;
    background:#ffffff !important;
    overflow:auto !important;
}
.goappily-external-agent-shell .goappily-quote-master-iframe{
    display:block;
    width:100%;
    min-height:760px;
    height:980px;
    border:0;
    background:#ffffff;
}

/* Security Release 4 enterprise portal state */
.goappily-security-mode-notice{display:flex;gap:12px;align-items:flex-start;margin:0 0 18px;padding:14px 16px;border:1px solid #d59b16;border-radius:10px;background:#fff8e5;color:#5f4300}.goappily-security-mode-notice strong{white-space:nowrap}.goappily-security-mode-notice span{line-height:1.45}.goappily-enterprise-read-only [aria-disabled="true"],.goappily-enterprise-read-only button:disabled{cursor:not-allowed;opacity:.58}
