/* Gift forms and selected categories, loaded only in isolated staging. */
body#product .product-customization .card{background:#fff;border:1px solid #dedede;border-top:3px solid #b4102b;padding:1rem;border-radius:4px}
body#product .product-customization label{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5;margin-bottom:.5rem}
body#product .product-customization textarea.product-message{width:100%;min-height:128px;box-sizing:border-box;padding:.75rem;font-size:16px;line-height:1.5;resize:vertical;background:#fff;border:1px solid #888;color:#222}
body#product .product-customization textarea.product-message:focus{outline:2px solid #b4102b;outline-offset:2px}
body#product .product-customization .btn{min-height:44px;white-space:normal;background:#b4102b;border-color:#b4102b;color:#fff;line-height:1.35}
body#product .product-customization .btn:hover{background:#8e0d23;border-color:#8e0d23}
body#product .product-customization .custom-file{max-width:100%;min-height:44px}
body#product .product-customization .custom-file .js-file-name{max-width:calc(100% - 155px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:middle}
body#product .product-customization .customization-message .customization-label{display:block;font-weight:400;white-space:pre-line;overflow-wrap:anywhere}
.eg-project-help{font-size:15px;line-height:1.5;margin:.75rem 0 1rem;padding:.75rem;background:#fff8e4;border-left:3px solid #b4102b;color:#333}
.eg-product-description{line-height:1.65;overflow-wrap:anywhere}
.eg-product-description h2{font-size:1.45rem;line-height:1.35;margin:0 0 1rem}
.eg-product-description h3{font-size:1.15rem;line-height:1.4;margin:1.5rem 0 .65rem}
.eg-product-description ol,.eg-product-description ul{padding-left:1.4rem;list-style:initial}
.eg-product-description ol{list-style:decimal}
.eg-product-description li{padding-left:.15rem;margin-bottom:.55rem}
.eg-table-scroll{max-width:100%;overflow-x:auto}
.eg-product-description table{width:100%;margin:0}
.eg-product-description th,.eg-product-description td{white-space:normal;overflow-wrap:anywhere;padding:.65rem;text-align:left;vertical-align:top}
.eg-product-description th{width:42%;font-weight:600}
.eg-product-description details{border-top:1px solid #ddd;border-bottom:1px solid #ddd;margin:1rem 0}
.eg-product-description summary{cursor:pointer;padding:.85rem .25rem;font-weight:600;min-height:44px}
.eg-product-description details p{padding:0 .25rem .75rem}
.customization-modal .product-customization-line .value{white-space:pre-line;overflow-wrap:anywhere}
.customization-modal .product-customization-line .label{white-space:normal;overflow-wrap:anywhere}
@media(max-width:767px){
 body#product .product-customization .btn[name=submitCustomizedData]{width:100%;float:none!important;margin-top:.5rem}
 body#product .product-customization .product-customization-item{margin-bottom:1rem}
 body#product .product-customization .card-title{font-size:1.2rem;line-height:1.4}
 body#category .eg-mobile-categories{margin-bottom:1rem;background:#fff;border:1px solid #ddd;border-radius:3px}
 body#category .eg-mobile-categories>summary{padding:.8rem 1rem;min-height:44px;cursor:pointer;font-weight:600;color:#222}
 body#category .eg-mobile-categories .block-categories{margin:0;padding:1rem;border:0}
 body#category .em-toggle,body#category #search_filter_toggler,body#category #search_filter_controls button{min-height:44px}
 body#category #search_filters .facet-label{min-height:44px;display:flex;align-items:center}
 body#category #search_filters .facet-label a{padding:.55rem .4rem;overflow-wrap:anywhere}
 .customization-modal .product-customization-line>.label,.customization-modal .product-customization-line>.value{float:none;width:100%;max-width:100%}
 .customization-modal .product-customization-line>.label{font-weight:600;margin-bottom:.5rem}
 .customization-modal .product-customization-line>.value{padding-bottom:1rem}
}

.ed-diploma-version-note{padding:1rem;border-left:3px solid #b4102b;background:#fff8e4;margin:1rem 0;line-height:1.5;color:#333}
.ed-diploma-faq summary{cursor:pointer;padding:.85rem .25rem;min-height:44px;font-weight:600}
.ed-diploma-faq details{border-top:1px solid #ddd}
.ed-diploma-faq details p{padding:0 .25rem .75rem}
body#product .product-cover img{object-fit:contain}

.ed-diploma-faq-item{padding:16px 0;border-bottom:1px solid #e9e3de}.ed-diploma-faq-item h3{font-size:1.08rem;line-height:1.5;margin:0 0 10px}.ed-diploma-faq-item p{margin:0}

@media(min-width:768px){body#category .eg-mobile-categories>summary{display:none}body#category .eg-mobile-categories{display:contents}}

/* Diploma comparison: keep readable labels and prices on narrow screens. */
body#category .category-additional-description .eg-table-scroll th{width:auto}
@media(min-width:992px){
 body#category .category-additional-description .eg-table-scroll th:nth-child(1){width:23%}
 body#category .category-additional-description .eg-table-scroll th:nth-child(2){width:45%}
 body#category .category-additional-description .eg-table-scroll th:nth-child(3){width:20%}
 body#category .category-additional-description .eg-table-scroll th:nth-child(4){width:12%}
}
@media(max-width:991px){
 body#category .category-additional-description .eg-table-scroll{overflow:visible}
 body#category .category-additional-description .eg-table-scroll table{display:block;width:100%;border:0}
 body#category .category-additional-description .eg-table-scroll thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
 body#category .category-additional-description .eg-table-scroll tbody{display:block;width:100%}
 body#category .category-additional-description .eg-table-scroll tbody tr{display:block;width:100%;box-sizing:border-box;padding:16px;margin:0 0 16px;border:1px solid #e0d8d3;border-radius:6px;background:#fff}
 body#category .category-additional-description .eg-table-scroll tbody td{display:block;width:auto!important;max-width:none;border:0;padding:0;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.6}
 body#category .category-additional-description .eg-table-scroll tbody td:first-child{font-size:1.1rem;font-weight:700;color:#a4112b}
 body#category .category-additional-description .eg-table-scroll tbody td:nth-child(2){margin:8px 0 12px}
 body#category .category-additional-description .eg-table-scroll tbody td:nth-child(3),
 body#category .category-additional-description .eg-table-scroll tbody td:nth-child(4){display:flex;gap:8px;align-items:baseline;white-space:nowrap;font-weight:600}
 body#category .category-additional-description .eg-table-scroll tbody td:nth-child(3)::before{content:'Cena brutto:';font-weight:400}
 body#category .category-additional-description .eg-table-scroll tbody td:nth-child(4)::before{content:'Minimum:';font-weight:400}
}

.ed-diploma-comparison{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:16px 0 24px}.ed-diploma-option{min-width:0;background:#fff;border:1px solid #e0d8d3;border-radius:6px;padding:16px}.eg-product-description .ed-diploma-option h3{margin:0 0 10px;color:#a4112b;font-size:1.1rem}.eg-product-description .ed-diploma-option p{margin:0 0 8px}.eg-product-description .ed-diploma-option p:last-child{margin:0}.ed-diploma-option strong{white-space:nowrap}@media(min-width:992px){.ed-diploma-comparison{grid-template-columns:repeat(2,minmax(0,1fr))}}
