/* Garanția legală de conformitate & GARAN */
.pm-glg-notice {
    width: 100%;
    text-align: center;
}

.pm-glg-notice img {
    display: block;
    width: 100%;
    max-width: var(--pm-glg-notice-max, 640px);
    height: auto;
    margin: 0 auto;
}


.pm-glg-notice__more {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
}

.pm-glg-notice__more span {
    color: #555;
}

.pm-glg-notice__more a {
    color: var(--e-global-color-primary, var(--wp--preset--color--primary, #1769c2));
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Pagina dedicată folosește intenționat o prezentare mai mare și lizibilă. */
.pm-glg-notice--full img {
    width: 100%;
    max-width: var(--pm-glg-notice-max, 640px);
}

.pm-glg-notice__legal-text {
    max-width: 760px;
    margin: 20px auto 0;
    text-align: left;
    font-size: 16px;
    line-height: 1.65;
}

.pm-glg-product-guarantee-link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin: 14px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(0,0,0,.08);
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.pm-glg-modal-trigger {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font: inherit !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0 !important;
    cursor: pointer;
}

.pm-glg-modal-trigger::before,
.pm-glg-modal-trigger::after {
    content: none !important;
    display: none !important;
}

.pm-glg-product-title-trigger {
    color: #252525 !important;
    font-weight: 700 !important;
    text-align: left !important;
}

.pm-glg-product-more-trigger,
.pm-glg-text-trigger,
.pm-glg-heading-trigger {
    color: var(--e-global-color-primary, var(--wp--preset--color--primary, #1769c2)) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.pm-glg-product-more-trigger:hover,
.pm-glg-product-more-trigger:focus,
.pm-glg-text-trigger:hover,
.pm-glg-text-trigger:focus,
.pm-glg-heading-trigger:hover,
.pm-glg-heading-trigger:focus {
    color: var(--e-global-color-accent, var(--wp--preset--color--secondary, #0f4f98));
    text-decoration: underline;
}

.pm-glg-heading-trigger {
    color: inherit;
    font-weight: inherit;
    text-align: left;
}

.pm-glg-heading-trigger:hover,
.pm-glg-heading-trigger:focus {
    color: var(--e-global-color-primary, var(--wp--preset--color--primary, #1769c2));
}

.pm-glg-checkout-notice {
    margin: 18px 0;
}

.pm-glg-checkout-notice h3 {
    margin-bottom: 8px;
}

.pm-glg-checkout-notice__link .pm-glg-text-trigger {
    color: var(--e-global-color-primary, var(--wp--preset--color--primary, #1769c2));
    font-weight: 600;
}

.pm-glg-garan-official-svg,
.pm-glg-garan-official-svg svg {
    display: block;
    width: 100%;
    max-width: var(--pm-glg-garan-max, 320px);
    height: auto;
}

.pm-glg-garan-product {
    margin: 18px 0;
}

html.pm-glg-modal-open,
html.pm-glg-modal-open body {
    overflow: hidden;
}

.pm-glg-modal[hidden] { display: none !important; }
.pm-glg-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.62);
}

.pm-glg-modal__panel {
    position: relative;
    width: min(760px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: #fff;
    padding: 24px 24px 0;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    outline: none;
}

.pm-glg-modal__close {
    position: sticky;
    float: right;
    top: 0;
    right: 0;
    z-index: 2;
    width: 38px;
    height: 38px;
    margin: -10px -10px 4px 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.95);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.pm-glg-modal__notice {
    clear: both;
}

.pm-glg-modal__notice .pm-glg-notice img {
    width: auto;
    max-width: min(100%, 520px);
    max-height: calc(100vh - 190px);
    object-fit: contain;
}

.pm-glg-modal__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px -24px 0;
    padding: 16px 24px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #fafafa;
    text-align: center;
    font-size: 14px;
}

.pm-glg-modal__more span {
    color: #555;
}

.pm-glg-modal__more a {
    color: var(--e-global-color-primary, var(--wp--preset--color--primary, #1769c2));
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

@media (max-width: 600px) {
    .pm-glg-product-guarantee-link {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
    .pm-glg-modal { padding: 10px; }
    .pm-glg-modal__panel { padding: 18px 12px 0; }
    .pm-glg-modal__notice .pm-glg-notice img { max-height: calc(100vh - 170px); }
    .pm-glg-modal__more { margin: 18px -12px 0; padding: 14px 12px; }
}

/* Protecție împotriva temelor care stilizează global elementele button. */
.woocommerce div.product .pm-glg-product-guarantee-link > button.pm-glg-modal-trigger,
.single-product .pm-glg-product-guarantee-link > button.pm-glg-modal-trigger {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}
