@import url('https://fonts.googleapis.com/css2?family=Assistant:wght@200;300;400;500;600;700;800&display=swap');

:root {
    --pidg-blue: #0071bb;
    --pidg-blue-dark: #075f99;
    --pidg-blue-soft: #edf8ff;
    --pidg-red: #d83d49;
    --pidg-ink: #1f2b35;
    --pidg-muted: #6d7c87;
    --pidg-border: #dce6ec;
    --pidg-surface: #ffffff;
    --pidg-canvas: #f6fafc;
    --pidg-shadow: 0 12px 36px rgba(37, 68, 87, .09);
}

.pidg-admin-body *, .pidg-public-body *, .pidg-preview-body *, .pidg-modal, .pidg-modal * {
    box-sizing: border-box;
}

.pidg-admin-body,
.pidg-public-body,
.pidg-preview-body {
    margin: 0;
    color: var(--pidg-ink);
    background: var(--pidg-canvas);
    font-family: 'Assistant', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.pidg-wysiwyg,
.pidg-document {
    font-family: 'Assistant', sans-serif;
}

.pidg-admin-body button,
.pidg-admin-body input,
.pidg-admin-body textarea,
.pidg-admin-body select {
    font: inherit;
}

.pidg-admin-header {
    position: sticky;
    z-index: 20;
    top: 0;
    min-height: 74px;
    padding: 10px clamp(18px, 4vw, 64px);
    border-bottom: 1px solid var(--pidg-border);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 3px 18px rgba(31, 43, 53, .05);
    display: flex;
    align-items: center;
    gap: 22px;
}

.pidg-brand img,
.pidg-public-header img {
    display: block;
    width: 122px;
    height: auto;
}

.pidg-admin-header__title {
    padding-right: 20px;
    border-right: 1px solid var(--pidg-border);
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.pidg-admin-header__title span {
    color: var(--pidg-muted);
    font-size: 12px;
}

.pidg-admin-header__title strong {
    color: var(--pidg-blue);
    font-size: 17px;
}

.pidg-admin-nav {
    margin-right: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}

.pidg-admin-nav a,
.pidg-admin-nav button,
.pidg-public-header a,
.pidg-back-link,
.pidg-public-link {
    border: 0;
    color: var(--pidg-blue-dark);
    background: none;
    text-decoration: none;
    cursor: pointer;
}

.pidg-admin-nav a:hover,
.pidg-admin-nav button:hover,
.pidg-public-header a:hover,
.pidg-back-link:hover,
.pidg-public-link:hover {
    color: var(--pidg-red);
}

.pidg-admin-nav form {
    margin: 0;
}

.pidg-admin-main {
    width: min(1760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

.pidg-notice {
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid var(--pidg-border);
    border-radius: 12px;
    background: #fff;
}

.pidg-notice--info {
    color: var(--pidg-blue-dark);
    border-color: #b9deef;
    background: var(--pidg-blue-soft);
}

.pidg-notice--error {
    color: #8b2631;
    border-color: #f0b9be;
    background: #fff5f6;
}

.pidg-notice ul {
    margin: 8px 0 0;
}

.pidg-lookup-card,
.pidg-recent-card {
    max-width: 980px;
    margin: 40px auto 24px;
    padding: clamp(24px, 5vw, 54px);
    border: 1px solid var(--pidg-border);
    border-radius: 22px;
    background: var(--pidg-surface);
    box-shadow: var(--pidg-shadow);
}

.pidg-recent-card {
    margin-top: 24px;
}

.pidg-section-heading {
    max-width: 700px;
}

.pidg-section-heading h1,
.pidg-section-heading h2 {
    margin: 7px 0 12px;
    color: var(--pidg-ink);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
}

.pidg-section-heading h2 {
    font-size: 24px;
}

.pidg-section-heading p {
    margin: 0;
    color: var(--pidg-muted);
    font-size: 16px;
    line-height: 1.7;
}

.pidg-section-heading--compact {
    margin-bottom: 18px;
}

.pidg-eyebrow {
    color: var(--pidg-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pidg-lookup-form {
    margin-top: 32px;
}

.pidg-lookup-form label,
.pidg-field > span {
    display: block;
    margin-bottom: 7px;
    color: #425662;
    font-size: 13px;
    font-weight: 700;
}

.pidg-lookup-form__row {
    display: flex;
    gap: 10px;
}

.pidg-lookup-form input,
.pidg-field input,
.pidg-field textarea,
.pidg-panel__header select,
.pidg-html-source {
    width: 100%;
    border: 1px solid var(--pidg-border);
    border-radius: 10px;
    color: var(--pidg-ink);
    background: #fff;
    outline: 0;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.pidg-lookup-form input,
.pidg-field input,
.pidg-panel__header select {
    height: 44px;
    padding: 0 13px;
}

.pidg-field textarea,
.pidg-html-source {
    min-height: 86px;
    padding: 11px 13px;
    line-height: 1.55;
    resize: vertical;
}

.pidg-lookup-form input:focus,
.pidg-field input:focus,
.pidg-field textarea:focus,
.pidg-panel__header select:focus,
.pidg-html-source:focus,
.pidg-wysiwyg:focus {
    border-color: var(--pidg-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 187, .11);
}

.pidg-button {
    min-height: 42px;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 22px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pidg-button:hover {
    transform: translateY(-1px);
}

.pidg-button:disabled {
    opacity: .55;
    transform: none;
    cursor: wait;
}

.pidg-button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--pidg-blue), #1688cc);
    box-shadow: 0 7px 18px rgba(0, 113, 187, .2);
}

.pidg-button--secondary {
    color: var(--pidg-blue);
    border-color: var(--pidg-blue);
    background: #fff;
}

.pidg-button--quiet {
    color: #4b606d;
    border-color: var(--pidg-border);
    background: #f8fbfc;
}

.pidg-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pidg-recent-item {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--pidg-border);
    border-radius: 13px;
    color: var(--pidg-ink);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: border-color .18s ease, transform .18s ease;
}

.pidg-recent-item:hover {
    border-color: #9bcde6;
    transform: translateY(-2px);
}

.pidg-recent-item > strong {
    overflow: hidden;
    color: var(--pidg-blue-dark);
    text-overflow: ellipsis;
}

.pidg-recent-item small {
    color: var(--pidg-muted);
}

.pidg-recent-item__states {
    display: flex;
    gap: 5px;
}

.pidg-editor-summary {
    margin-bottom: 22px;
    padding: 0 4px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.pidg-back-link {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
}

.pidg-editor-summary h1 {
    margin: 5px 0 10px;
    font-size: clamp(25px, 3vw, 36px);
    line-height: 1.2;
}

.pidg-product-meta,
.pidg-publish-state {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.pidg-product-meta > span {
    padding: 5px 10px;
    border: 1px solid var(--pidg-border);
    border-radius: 15px;
    color: var(--pidg-muted);
    background: #fff;
    font-size: 12px;
}

.pidg-publish-state {
    max-width: 360px;
    justify-content: flex-end;
}

.pidg-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border-radius: 13px;
    font-size: 11px;
    font-weight: 700;
}

.pidg-status--draft {
    color: #865e10;
    background: #fff5d9;
}

.pidg-status--published {
    color: #247046;
    background: #e8f8ef;
}

.pidg-status--empty {
    color: var(--pidg-muted);
    background: #edf1f3;
}

.pidg-public-link {
    width: 100%;
    margin-top: 3px;
    text-align: left;
    font-size: 12px;
}

.pidg-workspace {
    display: grid;
    grid-template-columns: minmax(440px, .92fr) minmax(500px, 1.08fr);
    align-items: start;
    gap: 20px;
}

.pidg-panel {
    min-width: 0;
    border: 1px solid var(--pidg-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--pidg-shadow);
    overflow: hidden;
}

.pidg-panel__header {
    min-height: 66px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--pidg-border);
    background: linear-gradient(180deg, #fff, #fafdff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.pidg-panel__header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pidg-panel__header h2 {
    margin: 0;
    font-size: 18px;
}

.pidg-panel__header select {
    width: auto;
    height: 36px;
    padding-inline: 10px;
    font-size: 12px;
}

.pidg-step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    background: var(--pidg-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}

.pidg-panel--editor {
    padding-bottom: 18px;
}

.pidg-panel--editor > .pidg-fields-grid,
.pidg-panel--editor > .pidg-field,
.pidg-panel--editor > .pidg-actions,
.pidg-panel--editor > .pidg-action-message {
    margin-right: 18px;
    margin-left: 18px;
}

.pidg-fields-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pidg-fields-grid--assets {
    padding-top: 18px;
    border-top: 1px solid var(--pidg-border);
}

.pidg-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    border: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.pidg-attachment-manager {
    padding: 15px;
    border: 1px solid var(--pidg-border);
    border-radius: 12px;
    background: #f8fbfc;
}

.pidg-attachment-manager__heading {
    margin-bottom: 11px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.pidg-attachment-manager__heading > span {
    color: #425662;
    font-size: 13px;
    font-weight: 700;
}

.pidg-attachment-manager__heading small {
    color: var(--pidg-muted);
    font-size: 11px;
}

.pidg-attachment-manager__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pidg-attachment-upload {
    min-width: 0;
    padding: 11px;
    border: 1px solid #dfe9ee;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.pidg-attachment-upload > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pidg-attachment-upload strong {
    color: #294858;
    font-size: 13px;
}

.pidg-attachment-upload [data-pidg-attachment-status] {
    color: var(--pidg-muted);
    font-size: 11px;
}

.pidg-attachment-upload.has-attachment {
    border-color: #b8dfc9;
    background: #f8fdf9;
}

.pidg-attachment-upload.has-attachment [data-pidg-attachment-status] {
    color: #247046;
}

.pidg-attachment-upload .pidg-button {
    min-height: 34px;
    padding: 6px 12px;
    font-size: 11px;
}

.pidg-field {
    min-width: 0;
}

.pidg-field--wide {
    grid-column: 1 / -1;
}

.pidg-panel--editor > .pidg-field {
    margin-top: 18px;
}

.pidg-field small {
    display: block;
    margin-top: 7px;
    color: var(--pidg-muted);
    font-size: 11px;
}

.pidg-toolbar {
    min-height: 43px;
    padding: 5px;
    border: 1px solid var(--pidg-border);
    border-bottom: 0;
    border-radius: 10px 10px 0 0;
    background: #f7fafc;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
}

.pidg-toolbar button {
    min-width: 32px;
    height: 31px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #344a57;
    background: transparent;
    cursor: pointer;
    font-size: 12px;
}

.pidg-toolbar button:hover,
.pidg-toolbar button:focus,
.pidg-toolbar button.is-active {
    border-color: #b8d9e9;
    color: var(--pidg-blue-dark);
    background: var(--pidg-blue-soft);
    outline: 0;
}

.pidg-toolbar__color {
    height: 31px;
    padding: 0 6px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #344a57;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.pidg-toolbar__color:hover,
.pidg-toolbar__color:focus-within {
    border-color: #b8d9e9;
    color: var(--pidg-blue-dark);
    background: var(--pidg-blue-soft);
}

.pidg-toolbar__color > span {
    border-bottom: 2px solid currentColor;
    font-weight: 700;
    line-height: 18px;
}

.pidg-toolbar__color input[type="color"] {
    width: 19px;
    height: 19px;
    padding: 1px;
    border: 1px solid #cbd9e0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.pidg-toolbar__font-size {
    width: 70px;
    height: 31px;
    padding: 0 7px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #344a57;
    background: transparent;
    outline: 0;
    cursor: pointer;
    font-size: 12px;
}

.pidg-toolbar__font-size:hover,
.pidg-toolbar__font-size:focus {
    border-color: #b8d9e9;
    color: var(--pidg-blue-dark);
    background: var(--pidg-blue-soft);
}

.pidg-toolbar [data-pidg-inline-control]:disabled {
    opacity: .42;
    cursor: not-allowed;
}

.pidg-toolbar__divider {
    width: 1px;
    height: 21px;
    margin: 0 3px;
    background: var(--pidg-border);
}

.pidg-toolbar .pidg-toolbar__source {
    margin-right: auto;
    color: var(--pidg-blue);
}

.pidg-wysiwyg,
.pidg-html-source {
    min-height: 290px;
    max-height: 520px;
    overflow: auto;
    padding: 18px;
    border: 1px solid var(--pidg-border);
    border-radius: 0 0 10px 10px;
    color: #273843;
    background: #fff;
    line-height: 1.7;
    outline: 0;
}

.pidg-wysiwyg h1,
.pidg-wysiwyg h2,
.pidg-wysiwyg h3,
.pidg-wysiwyg p {
    margin-top: .45em;
    margin-bottom: .65em;
}

.pidg-html-source {
    display: none;
    border-top: 1px solid var(--pidg-border);
    direction: ltr;
    font-family: 'Assistant', sans-serif;
    font-size: 12px;
    text-align: left;
    white-space: pre;
}

.pidg-html-source.is-active {
    display: block;
}

.pidg-wysiwyg.is-hidden {
    display: none;
}

.pidg-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.pidg-action-message {
    min-height: 24px;
    margin-top: 9px;
    color: var(--pidg-muted);
    text-align: left;
    font-size: 12px;
}

.pidg-action-message.is-success {
    color: #247046;
}

.pidg-action-message.is-error {
    color: var(--pidg-red);
}

.pidg-live-dot {
    color: #247046;
    font-size: 11px;
}

.pidg-live-dot::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 6px;
    border-radius: 50%;
    background: #35a968;
    box-shadow: 0 0 0 4px rgba(53, 169, 104, .1);
    display: inline-block;
}

.pidg-preview-frame {
    display: block;
    width: 100%;
    height: 860px;
    border: 0;
    background: var(--pidg-canvas);
}

.pidg-preview-body {
    padding: 24px;
}

.pidg-public-header {
    min-height: 70px;
    padding: 11px clamp(18px, 6vw, 90px);
    border-bottom: 1px solid var(--pidg-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pidg-public-main {
    width: min(1160px, calc(100% - 34px));
    margin: 0 auto;
    padding: clamp(22px, 4vw, 54px) 0;
}

.pidg-not-found {
    width: min(620px, calc(100% - 34px));
    margin: 10vh auto 0;
    padding: clamp(28px, 6vw, 58px);
    border: 1px solid var(--pidg-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--pidg-shadow);
    text-align: center;
}

.pidg-not-found .pidg-brand {
    display: inline-block;
    margin-bottom: 28px;
}

.pidg-not-found h1 {
    margin: 8px 0;
    font-size: clamp(28px, 5vw, 42px);
}

.pidg-not-found p {
    margin: 0 0 28px;
    color: var(--pidg-muted);
}

.pidg-not-found .pidg-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pidg-document {
    position: relative;
    width: 100%;
    min-height: 620px;
    border: 1px solid #d5e1e8;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(32, 62, 79, .11);
    isolation: isolate;
    overflow: hidden;
    text-align: start;
}

.pidg-document__background {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .1;
    object-fit: cover;
    pointer-events: none;
}

.pidg-document::after {
    position: absolute;
    z-index: 1;
    content: "";
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, .28), rgba(246, 252, 255, .18));
    pointer-events: none;
}

.pidg-document__watermark {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    max-width: 90%;
    color: var(--pidg-blue);
    opacity: .045;
    font-size: clamp(54px, 10vw, 126px);
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(-18deg);
    pointer-events: none;
}

.pidg-document__surface {
    position: relative;
    z-index: 3;
    min-height: 620px;
    display: flex;
    flex-direction: column;
}

.pidg-document__header {
    padding: clamp(28px, 5vw, 28px) clamp(25px, 6vw, 70px) 10px;
    border-bottom: 1px solid rgba(0, 113, 187, .15);
}

.pidg-document__identity {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pidg-document__identity span {
    color: var(--pidg-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.pidg-document__identity b {
    padding: 4px 9px;
    border-radius: 12px;
    color: #4d6573;
    background: #edf3f6;
    font-size: 11px;
}

.pidg-document__admin-edit {
    min-height: 26px;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 113, 187, .42);
    border-radius: 12px;
    color: var(--pidg-blue);
    background: var(--pidg-surface);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.pidg-document__admin-edit:hover,
.pidg-document__admin-edit:focus-visible {
    border-color: var(--pidg-blue);
    color: #ffffff;
    background: var(--pidg-blue);
    text-decoration: none;
}

.pidg-document__admin-edit:focus-visible {
    outline: 3px solid rgba(0, 113, 187, .24);
    outline-offset: 2px;
}

.pidg-document__header h1 {
    max-width: 850px;
    margin: 0;
    color: #153447;
    font-size: clamp(28px, 5vw, 50px);
    font-weight: 700;
    line-height: 1.18;
}

.pidg-document__intro {
    max-width: 820px;
    margin-top: 16px;
    color: #536d7c;
    font-size: clamp(14px, 2vw, 17px);
    line-height: 1.75;
}

.pidg-document__body {
    padding: clamp(26px, 5vw, 62px) clamp(25px, 6vw, 70px);
    flex: 1;
}

.pidg-document__body--with-image {
    display: grid;
    grid-template-columns: minmax(210px, .72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(28px, 5vw, 65px);
}

[dir="ltr"] .pidg-document__body--with-image {
    grid-template-columns: minmax(0, 1.28fr) minmax(210px, .72fr);
}

[dir="ltr"] .pidg-document__product-image {
    order: 2;
}

.pidg-document__product-image {
    margin: 0;
    padding: 22px;
    border: 1px solid rgba(0, 113, 187, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(38, 70, 87, .08);
}

.pidg-document__product-image img {
    display: block;
    width: 100%;
    max-height: 430px;
    border-radius: 10px;
    object-fit: contain;
}

.pidg-document__content {
    min-width: 0;
    color: #263b47;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.pidg-document__content > :first-child {
    margin-top: 0;
}

.pidg-document__content > :last-child {
    margin-bottom: 0;
}

.pidg-document__content li {
    list-style-type: inherit;
}

.pidg-document__content h1,
.pidg-document__content h2,
.pidg-document__content h3,
.pidg-document__content h4 {
    margin: 1.15em 0 .45em;
    color: #153f58;
    line-height: 1.3;
}

.pidg-document__content h2 {
    padding-bottom: 8px;
    border-bottom: 1px solid #dbe8ee;
    font-size: 25px;
}

.pidg-document__content h3 {
    font-size: 20px;
}

.pidg-document__content a {
    color: var(--pidg-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.pidg-document__content blockquote {
    margin: 1.2em 0;
    padding: 12px 18px;
    border-right: 3px solid var(--pidg-blue);
    color: #536d7c;
    background: rgba(237, 248, 255, .7);
}

[dir="ltr"] .pidg-document__content blockquote {
    border-right: 0;
    border-left: 3px solid var(--pidg-blue);
}

.pidg-document__empty {
    color: #8d9ba3;
    font-style: italic;
}

.pidg-document__attachments {
    margin: -25px clamp(25px, 6vw, 70px) clamp(25px, 5vw, 42px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.pidg-attachment-link {
    min-height: 38px;
    padding: 7px 14px;
    border: 1px solid #c9dde8;
    border-radius: 20px;
    color: #164f70;
    background: #f8fcfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}

.pidg-attachment-link:hover,
.pidg-attachment-link:focus {
    border-color: var(--pidg-blue);
    color: var(--pidg-blue-dark);
    background: var(--pidg-blue-soft);
    outline: 0;
    transform: translateY(-1px);
}

.pidg-attachment-link svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.pidg-attachment-link .pidg-attachment-link__play {
    fill: currentColor;
    stroke: none;
}

.pidg-document__variants {
    margin: 0 clamp(25px, 6vw, 70px) clamp(25px, 5vw, 48px);
    border: 1px solid var(--pidg-border);
    border-radius: 13px;
    background: rgba(255, 255, 255, .72);
    overflow: hidden;
}

.pidg-document__variants summary {
    padding: 14px 16px;
    color: #24495f;
    background: rgba(246, 250, 252, .9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
}

.pidg-document__variants summary small {
    color: var(--pidg-muted);
}

.pidg-variant-list {
    max-height: 330px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    overflow: auto;
}

.pidg-variant {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e4ecef;
    border-radius: 9px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pidg-variant--current {
    border-color: var(--pidg-blue);
    box-shadow: inset 3px 0 0 var(--pidg-blue);
}

.pidg-variant b {
    color: var(--pidg-blue-dark);
    font-size: 12px;
}

.pidg-variant span {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pidg-variant small {
    color: var(--pidg-muted);
    font-size: 10px;
}

.pidg-document__footer {
    min-height: 72px;
    padding: 18px clamp(25px, 6vw, 70px);
    border-top: 1px solid rgba(0, 113, 187, .15);
    color: #637782;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 12px;
    line-height: 1.6;
}

.pidg-document__footer > span {
    color: var(--pidg-blue);
    font-weight: 700;
    letter-spacing: .08em;
}

@media (max-width: 1160px) {
    .pidg-workspace {
        grid-template-columns: 1fr;
    }

    .pidg-preview-frame {
        height: 760px;
    }
}

@media (max-width: 760px) {
    .pidg-admin-header {
        position: static;
        padding: 10px 15px;
        flex-wrap: wrap;
        gap: 10px 15px;
    }

    .pidg-brand img,
    .pidg-public-header img {
        width: 100px;
    }

    .pidg-admin-header__title {
        padding-right: 13px;
    }

    .pidg-admin-nav {
        width: 100%;
        margin: 0;
        padding-top: 8px;
        border-top: 1px solid var(--pidg-border);
        justify-content: space-between;
        gap: 8px;
        font-size: 12px;
    }

    .pidg-admin-main {
        width: min(100% - 22px, 1760px);
        padding-top: 18px;
    }

    .pidg-lookup-card,
    .pidg-recent-card {
        margin-top: 10px;
        padding: 23px 18px;
        border-radius: 16px;
    }

    .pidg-lookup-form__row,
    .pidg-editor-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .pidg-publish-state {
        max-width: none;
        justify-content: flex-start;
    }

    .pidg-public-link {
        width: auto;
        margin-right: 4px;
    }

    .pidg-recent-grid,
    .pidg-fields-grid {
        grid-template-columns: 1fr;
    }

    .pidg-field--wide {
        grid-column: auto;
    }

    .pidg-attachment-manager__heading,
    .pidg-attachment-upload {
        align-items: stretch;
        flex-direction: column;
    }

    .pidg-attachment-manager__items {
        grid-template-columns: 1fr;
    }

    .pidg-panel {
        border-radius: 14px;
    }

    .pidg-panel__header {
        padding: 12px;
    }

    .pidg-panel--editor > .pidg-fields-grid,
    .pidg-panel--editor > .pidg-field,
    .pidg-panel--editor > .pidg-actions,
    .pidg-panel--editor > .pidg-action-message {
        margin-right: 12px;
        margin-left: 12px;
    }

    .pidg-toolbar {
        max-height: 118px;
        overflow-y: auto;
    }

    .pidg-wysiwyg,
    .pidg-html-source {
        min-height: 250px;
        padding: 13px;
    }

    .pidg-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pidg-actions .pidg-button--primary {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .pidg-preview-frame {
        height: 690px;
    }

    .pidg-preview-body {
        padding: 10px;
    }

    .pidg-public-header {
        min-height: 58px;
        padding: 9px 16px;
    }

    .pidg-public-main {
        width: min(100% - 18px, 1160px);
        padding: 12px 0 24px;
    }

    .pidg-document {
        min-height: 520px;
        border-radius: 14px;
    }

    .pidg-document__surface {
        min-height: 520px;
    }

    .pidg-document__header {
        padding: 25px 20px 22px;
    }

    .pidg-document__body,
    .pidg-document__body--with-image {
        padding: 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    [dir="ltr"] .pidg-document__product-image {
        order: initial;
    }

    .pidg-document__product-image {
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
        padding: 15px;
    }

    .pidg-document__content {
        font-size: 15px;
    }

    .pidg-document__variants {
        margin: 0 20px 25px;
    }

    .pidg-document__attachments {
        margin: -8px 20px 25px;
    }

    .pidg-document__variants summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .pidg-variant-list {
        grid-template-columns: 1fr 1fr;
    }

    .pidg-document__footer {
        padding: 15px 20px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 430px) {
    .pidg-variant-list {
        grid-template-columns: 1fr;
    }
}

@media print {
    .pidg-public-header {
        display: none;
    }

    .pidg-public-main,
    .pidg-preview-body {
        width: 100%;
        padding: 0;
    }

    .pidg-document {
        border: 0;
        box-shadow: none;
    }
}
