/* Studio page layout; adapted from project-owned orders.css. */
:where(.payhippo-studio) .orders-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
:where(.payhippo-studio) .orders-toolbar h1{margin-inline-end:auto}
:where(.payhippo-studio) #commerceFilters.orders-toolbar>label{margin:0;min-width:120px;flex:1}
:where(.payhippo-studio) #commerceFilters.orders-toolbar>.orders-search{flex:1.5;min-width:160px}
:where(.payhippo-studio) #commerceFilters.orders-toolbar label>:is(input,select){margin:0}
:where(.payhippo-studio) .orders-workspace .table{margin:0}
:where(.payhippo-studio) .orders-workspace .table :is(th,td){padding:16px;vertical-align:middle}
:where(.payhippo-studio) .orders-workspace .orders-table{min-width:820px}
:where(.payhippo-studio) .orders-workspace .orders-table td:nth-child(2){max-width:240px;overflow-wrap:anywhere}
:where(.payhippo-studio) .orders-workspace .order-number{padding:4px 0;font-weight:600;text-decoration:none}
:where(.payhippo-studio) .orders-money{white-space:nowrap;font-variant-numeric:tabular-nums;direction:ltr;unicode-bidi:isolate}
:where(.payhippo-studio) .orders-table .orders-money,:where(.payhippo-studio) .orders-products .orders-money{text-align:end}
:where(.payhippo-studio) #commerceRows[aria-busy=true]{opacity:.55;pointer-events:none}
:where(.payhippo-studio) .orders-link-controls{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
:where(.payhippo-studio) .orders-link-controls a{overflow-wrap:anywhere}
:where(.payhippo-studio) .orders-link-controls .btn{flex-shrink:0}
:where(.payhippo-studio) .orders-payment-list{display:grid;gap:16px}
:where(.payhippo-studio) .orders-payment-row{padding-block-end:16px;border-bottom:1px dashed var(--line)}
:where(.payhippo-studio) .orders-payment-row:last-child{padding:0;border:0}
:where(.payhippo-studio) .commerce-modal .orders-actions{margin-inline-start:auto}
:where(.payhippo-studio) .commerce-modal .dropdown-item{white-space:normal}
:where(.payhippo-studio) .orders-empty{padding:48px 24px;text-align:center;color:var(--muted);margin:0}
@media(max-width:991.98px){:where(.payhippo-studio) .orders-toolbar h1{flex-basis:100%}}
@media(max-width:575.98px){:where(.payhippo-studio) #commerceFilters.orders-toolbar>label{min-width:0;flex-basis:calc(50% - 12px)}
:where(.payhippo-studio) #commerceFilters.orders-toolbar>.orders-search{flex-basis:100%}}
:where(.payhippo-studio) .orders-workspace>.card>.card-footer{padding-inline-end:72px}
:where(.payhippo-studio) .orders-workspace .orders-table th:nth-child(4){text-align:end}
:where(.payhippo-studio) .orders-workspace .order-number{direction:ltr;unicode-bidi:isolate}
:where(.payhippo-studio) #commerceDetail{--studio-modal-width:1000px}
:where(.payhippo-studio) .commerce-modal .modal-dialog{max-width:min(1000px,calc(100vw - 32px));margin:16px auto;height:calc(100% - 32px)}
:where(.payhippo-studio) .commerce-modal .modal-content{max-height:100%;border-radius:4px}
:where(.payhippo-studio) .commerce-modal .modal-header{padding:14px 20px;flex-shrink:0}
:where(.payhippo-studio) .commerce-modal-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0}
:where(.payhippo-studio) .commerce-modal .modal-title{margin:0;overflow-wrap:anywhere;font-weight:600;outline-offset:4px}
:where(.payhippo-studio) .commerce-modal .btn-close{margin:0;flex-shrink:0;width:16px;height:16px;padding:8px}
:where(.payhippo-studio) .commerce-modal .modal-body{padding:0 20px 16px;overscroll-behavior:contain}
:where(.payhippo-studio) .commerce-modal .orders-section{padding-block:16px;margin:0;border-bottom:1px solid var(--line)}
:where(.payhippo-studio) .commerce-modal .orders-section:last-child{border:0;padding-bottom:0}
:where(.payhippo-studio) .commerce-modal .orders-section>h3{font-size:13px;font-weight:600;margin:0 0 12px}
:where(.payhippo-studio) .commerce-modal .orders-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 20px}
:where(.payhippo-studio) .commerce-modal .orders-summary dt{font-size:12px;font-weight:400;color:var(--muted);margin-bottom:4px}
:where(.payhippo-studio) .commerce-modal .orders-summary dd{margin:0;overflow-wrap:anywhere;font-size:13px}
:where(.payhippo-studio) .commerce-modal .orders-customer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}
:where(.payhippo-studio) .commerce-modal .orders-customer h4{font-size:12px;font-weight:600;color:var(--muted);margin:0 0 8px}
:where(.payhippo-studio) .commerce-modal dl.row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:6px 12px;margin:0;font-size:13px}
:where(.payhippo-studio) .commerce-modal dl.row>*{width:auto;padding:0;margin:0;overflow-wrap:anywhere}
:where(.payhippo-studio) .commerce-modal .table{font-size:13px;margin:0}
:where(.payhippo-studio) .commerce-modal .table :is(th,td){padding:10px 8px;vertical-align:middle}
:where(.payhippo-studio) .commerce-modal .orders-products{min-width:560px}
:where(.payhippo-studio) .commerce-modal .orders-products td:first-child{min-width:180px;max-width:360px;white-space:normal}
:where(.payhippo-studio) .commerce-modal .orders-products :is(th,td):nth-child(2){text-align:center}
:where(.payhippo-studio) .commerce-modal .orders-products :is(th,td):nth-child(n+3),:where(.payhippo-studio) .commerce-modal .commerce-related-orders :is(th,td):nth-child(2){text-align:end}
:where(.payhippo-studio) .commerce-modal .orders-total{max-width:300px;margin:12px 0 0 auto;margin-inline-start:auto;margin-inline-end:0}
:where(.payhippo-studio) .commerce-modal .orders-total dd{text-align:end;direction:ltr}
:where(.payhippo-studio) .commerce-modal .orders-total dt:last-of-type,:where(.payhippo-studio) .commerce-modal .orders-total dd:last-of-type{font-weight:600;color:var(--ink);padding-top:8px;border-top:1px solid var(--line)}
:where(.payhippo-studio) .commerce-modal .orders-payment-list{gap:12px}
:where(.payhippo-studio) .commerce-modal .orders-payment-row{padding-bottom:12px}
:where(.payhippo-studio) .commerce-modal .orders-link-controls{gap:6px}
:where(.payhippo-studio) .commerce-modal .btn-sm{min-height:32px;min-width:32px}
:where(.payhippo-studio) .commerce-modal .commerce-record-list{display:grid;gap:0}
:where(.payhippo-studio) .commerce-modal .commerce-record-row,:where(.payhippo-studio) .commerce-modal .commerce-card-row{display:flex;align-items:center;gap:8px 12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:13px}
:where(.payhippo-studio) .commerce-modal :is(.commerce-record-row,.commerce-card-row):first-child{padding-top:0}
:where(.payhippo-studio) .commerce-modal :is(.commerce-record-row,.commerce-card-row):last-child{border:0;padding-bottom:0}
:where(.payhippo-studio) .commerce-modal :is(.commerce-record-row,.commerce-card-row)>:first-child{flex:1;min-width:0;overflow-wrap:anywhere}
:where(.payhippo-studio) .commerce-modal .commerce-technical{margin-top:10px;font-size:12px}
:where(.payhippo-studio) .commerce-modal .commerce-technical summary{cursor:pointer;color:var(--muted);padding:4px 0}
:where(.payhippo-studio) .commerce-modal .commerce-reference{display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:8px;padding-top:8px}
:where(.payhippo-studio) .commerce-modal code{overflow-wrap:anywhere;white-space:normal}
:where(.payhippo-studio) .commerce-modal #orderDetailMessage:empty{display:none}
:where(.payhippo-studio) .commerce-modal #orderDetailMessage:not(:empty){margin:12px 0 0}
@media(max-width:575.98px){:where(.payhippo-studio) .commerce-modal .modal-dialog{max-width:calc(100vw - 16px);margin:8px auto;height:calc(100% - 16px)}
:where(.payhippo-studio) .commerce-modal .modal-header{padding:12px}
:where(.payhippo-studio) .commerce-modal .modal-body{padding:0 12px 12px}
:where(.payhippo-studio) .commerce-modal .commerce-modal-heading{gap:6px;flex:1}
:where(.payhippo-studio) .commerce-modal .modal-title{width:100%;font-size:15px!important}
:where(.payhippo-studio) .commerce-modal .orders-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
:where(.payhippo-studio) .commerce-modal .orders-customer{grid-template-columns:1fr;gap:16px}
:where(.payhippo-studio) .commerce-modal .commerce-card-row{flex-wrap:wrap;gap:8px}
:where(.payhippo-studio) .commerce-modal .commerce-card-row>:first-child{flex-basis:100%}
:where(.payhippo-studio) .commerce-modal .commerce-reference{grid-template-columns:minmax(0,1fr) auto}
:where(.payhippo-studio) .commerce-modal .commerce-reference>span{grid-column:1/-1}}
:where(.payhippo-studio) .commerce-modal .order-number{direction:ltr;unicode-bidi:isolate;padding:4px 0;font-weight:600}
:where(.payhippo-studio) .customers-table td:first-child{min-width:200px;max-width:320px;white-space:normal}
:where(.payhippo-studio) .customers-table td{padding:12px 16px}
:where(.payhippo-studio) .customers-method{display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px 16px;padding:12px 0;border-bottom:1px solid var(--line)}
:where(.payhippo-studio) .customers-method:last-child{border-bottom:0}
:where(.payhippo-studio) .customers-method>.d-flex:nth-child(3){grid-column:2;grid-row:1 / span 2;align-content:center;justify-content:flex-end}
:where(.payhippo-studio) .customers-card-identity{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
:where(.payhippo-studio) .customers-card-logo{width:38px!important;height:24px!important;object-fit:contain;flex:none}
:where(.payhippo-studio) .customers-method-notes{grid-column:1 / -1;display:flex;gap:12px;flex-wrap:wrap}
@media(max-width:575.98px){:where(.payhippo-studio) .customers-method{grid-template-columns:1fr}
:where(.payhippo-studio) .customers-method>.d-flex:nth-child(3){grid-column:1;grid-row:auto;justify-content:flex-start}}
:where(.payhippo-studio) .customers-popup:not(.customers-popup-order) .modal-dialog{max-width:min(840px,calc(100vw - 32px))}
:where(.payhippo-studio) .customers-popup .modal-header{gap:12px}
:where(.payhippo-studio) .customers-popup .commerce-modal-heading{flex:1}
:where(.payhippo-studio) .customers-popup-tabs{padding:0 20px;flex-shrink:0;gap:0 8px;flex-wrap:wrap}
:where(.payhippo-studio) .customers-popup-tabs .nav-link{font-size:13px;padding:12px 8px;border-radius:0;white-space:normal}
:where(.payhippo-studio) .customers-popup .tab-pane{outline-offset:-2px}
:where(.payhippo-studio) .customers-popup .tab-pane.orders-section{border:0;padding-block:16px}
:where(.payhippo-studio) .customers-popup .customers-method{grid-template-columns:minmax(0,1fr) auto;gap:6px 16px}
:where(.payhippo-studio) .customers-popup .customers-method>.d-flex{grid-column:1;min-width:0;overflow-wrap:anywhere}
:where(.payhippo-studio) .customers-popup-actions{display:flex;align-items:center;gap:6px;grid-column:2;grid-row:1 / span 2}
:where(.payhippo-studio) .customers-popup-actions .dropdown-toggle::after{display:none}
:where(.payhippo-studio) .customers-popup .customers-card-identity bdi{font-size:13px;overflow-wrap:anywhere}
:where(.payhippo-studio) .customers-popup .commerce-record-row .orders-money{white-space:nowrap;flex:none}
:where(.payhippo-studio) .customers-popup .commerce-related-orders td:first-child{white-space:normal;overflow-wrap:anywhere}
:where(.payhippo-studio) .customers-popup .commerce-related-orders td:last-child{text-align:end}
:where(.payhippo-studio) .customers-popup .dropdown-menu{font-size:13px;max-width:calc(100vw - 48px)}
:where(.payhippo-studio) .customers-popup .dropdown-item{white-space:normal}
:where(.payhippo-studio) .customers-popup #customerPopupBack{flex:none}
@media(max-width:575.98px){:where(.payhippo-studio) .customers-popup:not(.customers-popup-order) .modal-dialog{max-width:calc(100vw - 16px)}
:where(.payhippo-studio) .customers-popup-tabs{padding-inline:12px;gap:0}
:where(.payhippo-studio) .customers-popup-tabs .nav-link{font-size:12px;padding:10px 7px}
:where(.payhippo-studio) .customers-popup .customers-method{grid-template-columns:minmax(0,1fr)}
:where(.payhippo-studio) .customers-popup-actions{grid-column:1;grid-row:auto;justify-content:flex-start;margin-top:4px}
:where(.payhippo-studio) .customers-popup .commerce-record-row{flex-wrap:wrap}
:where(.payhippo-studio) .customers-popup .commerce-record-row>a{flex-basis:100%}}

/* Read recovery belongs to the record component, never to payment pages. */
:where(.payhippo-studio) .orders-recovery{padding:24px;display:grid;justify-items:start;gap:12px;color:var(--muted)}
:where(.payhippo-studio) .orders-recovery p{margin:0;overflow-wrap:anywhere}
:where(.payhippo-studio) #commerceSiteNotice{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;margin-top:12px}
:where(.payhippo-studio) #commerceRows[aria-busy=true]{pointer-events:none}
:where(.payhippo-studio) .commerce-modal #commerceContent[aria-busy=true]{padding-block:24px}
:where(.payhippo-studio) .orders-table td:nth-child(3){min-width:120px;max-width:240px;white-space:normal;overflow-wrap:anywhere}

@media(max-width:575.98px){
 :where(.payhippo-studio) #commerceRecords .orders-table{min-width:0;table-layout:fixed;width:100%}
 :where(.payhippo-studio) #commerceRecords .orders-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 :where(.payhippo-studio) #commerceRecords .orders-table tbody{display:block}
 :where(.payhippo-studio) #commerceRecords .orders-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 12px;padding:16px;border-bottom:1px solid var(--line)}
 :where(.payhippo-studio) #commerceRecords .orders-table tbody td{display:block;padding:0;border:0;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(1){grid-column:1;grid-row:1}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(4){grid-column:2;grid-row:1;text-align:end}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(5){grid-column:1;grid-row:2}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(6){grid-column:2;grid-row:2;font-size:11px;color:var(--muted);text-align:end}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(2){grid-column:1;grid-row:3;font-size:12px}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(3){grid-column:2;grid-row:3;font-size:12px;text-align:end}
 :where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(2)::before,:where(.payhippo-studio) #commerceRecords .orders-table td:nth-child(3)::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:2px}
 :where(.payhippo-studio) #commerceRecords .orders-table .orders-money{white-space:normal;font-size:12px;line-height:1.5}
 :where(.payhippo-studio) #commerceRecords .orders-table .order-number{padding:0}
}
