/* 
 *  ==================================================
 *  MasterDC Product Widget
 *  ==================================================
 */


.masterdc-product-widget {
    --spacing-around: clamp(40px, 5vh, 90px);
    --spacing-between: 30px;

    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 0;
    padding: 24px 40px;
}
.masterdc-product-widget::before {
    content: "";
    width: 74px;
    height: 154px;
    background-image: url(assets/grid-rect-violet-blue.svg);
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
}
.masterdc-product-widget::after {
    content: "";
    width: 74px;
    height: 74px;
    background-image: url(assets/grid-sq-gray.svg);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
}
@media (max-width:1024px) {
    .masterdc-product-widget {
        grid-template-columns: 1fr 1fr;
        padding: 24px;
    }
}
@media (max-width: 767px) {
    .masterdc-product-widget {
        grid-template-columns: 1fr;
        padding: 0;
        margin: 0 min(-20px, -5vw); /* fullw on mobile */
    }
}

.masterdc-product-widget .product-main {
    background: var(--e-global-color-accent);
    color: white;
    padding: var(--spacing-around);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}
.masterdc-product-widget .product-main h3 {
    color: white;
    margin: 0;
    text-wrap: balance;
    /* Uses Elementor global style for Headline L */
    font-family: var(--e-global-typography-53b7f20-font-family), Sans-serif;
    font-size: var(--e-global-typography-53b7f20-font-size);
    font-weight: var(--e-global-typography-53b7f20-font-weight);
    line-height: var(--e-global-typography-53b7f20-line-height);
}

.masterdc-product-widget .product-main .product-price {
    color: white;
    margin: 5px 0 var(--spacing-between) 0;
    /* Uses Elementor global style for Headline M */
    font-family: var(--e-global-typography-658b7e8-font-family), Sans-serif;
    font-size: var(--e-global-typography-658b7e8-font-size);
    font-weight: var(--e-global-typography-658b7e8-font-weight);
    line-height: var(--e-global-typography-658b7e8-line-height);
}

.masterdc-product-widget .product-main .product-description {
    color: white;
    margin: 0 0 var(--spacing-between) 0;
    text-wrap: balance;
    /* Uses Elementor global style for Body L */
    font-family: var(--e-global-typography-63e160a-font-family), Sans-serif;
    font-size: var(--e-global-typography-63e160a-font-size);
    font-weight: var(--e-global-typography-63e160a-font-weight);
    line-height: var(--e-global-typography-63e160a-line-height);
    flex-grow: 1;
}

.masterdc-product-widget .product-button {
    background-color: white;
    transition: background-color 0.2s ease;
    color: var(--e-global-color-text);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    /* Uses Elementor global style for Links & Menu */
    font-family: var(--e-global-typography-2e6d27b-font-family), Sans-serif;
    font-size: var(--e-global-typography-2e6d27b-font-size);
    font-weight: var(--e-global-typography-2e6d27b-font-weight);
    line-height: var(--e-global-typography-2e6d27b-line-height);
}

.masterdc-product-widget .product-button:hover {
    background-color: white;
    color: var(--e-global-color-accent);
}




.masterdc-product-widget .product-side {
    background: linear-gradient(90deg,
            var(--e-global-color-2818052) 0%,
            var(--e-global-color-7cf1dd1) 100%);
    padding: var(--spacing-around);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-between);
    z-index: 2;
}

.masterdc-product-widget .product-side h4 {
    /* Uses Elementor global style for Headline S */
    font-family: var(--e-global-typography-e95ae52-font-family), Sans-serif;
    font-size: var(--e-global-typography-e95ae52-font-size);
    font-weight: var(--e-global-typography-e95ae52-font-weight);
    line-height: var(--e-global-typography-e95ae52-line-height);
    margin: 0;
}

.masterdc-product-widget .product-specs,
.masterdc-product-widget .product-features {
    margin-bottom: var(--spacing-between);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    margin: 0;
}

.masterdc-product-widget .spec-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-content: center;
    align-items: center;
}

.masterdc-product-widget .spec-item .label {
    font-weight: 700;
    font-size: 14px;
    color: var(--e-global-color-primary);
    background: white;
    padding: 0px 6px;
    border-radius: 20px;
    text-align: center;
    min-width: 50px;
}

.masterdc-product-widget .spec-item .value {
    flex-grow: 1;
}

.masterdc-product-widget .product-features li {
    background-image: url('assets/checkmark.svg');
    background-repeat: no-repeat;
    background-position: left 7px;
    background-size: 17px;
    padding-left: 30px;
    text-wrap: balance;
}




/* 
 *  ==================================================
 *  MasterDC Pricelist Widget
 *  ==================================================
 */

.masterdc-pricelist-widget {
    --spacing-around: clamp(30px, 3vw, 45px);
    --spacing-between: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
}
.masterdc-pricelist-widget.desktop-col-5 {
    grid-template-columns: repeat(5, 1fr);
}
.masterdc-pricelist-widget.desktop-col-4 {
    grid-template-columns: repeat(4, 1fr);
}
.masterdc-pricelist-widget.desktop-col-3 {
    grid-template-columns: repeat(3, 1fr);
}
.masterdc-pricelist-widget.desktop-col-2 {
    grid-template-columns: repeat(2, 1fr);
}
.masterdc-pricelist-widget.desktop-col-1 {
    grid-template-columns: repeat(1, 1fr);
}
@media (max-width: 1024px) {
    .masterdc-pricelist-widget.tablet-col-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    .masterdc-pricelist-widget.tablet-col-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .masterdc-pricelist-widget.tablet-col-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .masterdc-pricelist-widget.tablet-col-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .masterdc-pricelist-widget.tablet-col-1 {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media (max-width: 767px) {
    .masterdc-pricelist-widget.mobile-col-5 {
        grid-template-columns: repeat(5, 1fr);
    }
    .masterdc-pricelist-widget.mobile-col-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    .masterdc-pricelist-widget.mobile-col-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .masterdc-pricelist-widget.mobile-col-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .masterdc-pricelist-widget.mobile-col-1 {
        grid-template-columns: repeat(1, 1fr);
    }
}

.masterdc-pricelist-widget .product {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: inherit; /* cely box je <a>, resetuje barvu */
}
@media (max-width: 767px) {
    .masterdc-pricelist-widget .product {
        /* Jemny stin pro mobily, aby nesplyvaly s pozadim */
        box-shadow: 0px 0px 20px -8px var(--e-global-color-f171ff8);
    }
}

.masterdc-pricelist-widget .product-body {
    background-color: white;
    padding: var(--spacing-around);
    flex-grow: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-between);
    border-width: 2px 2px 0px 2px;
    border-color: white;
    border-style: solid;
    border-image: linear-gradient(
        155deg, 
        white 0%,
        white 25%, 
        white 100%
        ) 1;
    transition: border-image 0.2s ease;
}

.masterdc-pricelist-widget .product:hover .product-body {
    border-image: linear-gradient(
        155deg, 
        var(--e-global-color-9db6aaa) 0%,
        var(--e-global-color-primary) 25%, 
        var(--e-global-color-accent) 100%
        ) 1;
}

.masterdc-pricelist-widget .product-label {
    position: absolute;
    right: -2px;
    top: var(--spacing-around);
    background-color: var(--e-global-color-primary);
    color: white;
    padding: 0 10px;
    border-radius: 20px 0 0 20px;
    /* Uses Elementor global style for Body S */
    font-family: var(--e-global-typography-2e6d27b-font-family), Sans-serif;
    font-size: var(--e-global-typography-2e6d27b-font-size);
    font-weight: var(--e-global-typography-2e6d27b-font-weight);
    line-height: var(--e-global-typography-2e6d27b-line-height);
}

.masterdc-pricelist-widget h3 {
    margin: 0;
}

.masterdc-pricelist-widget .product-specs,
.masterdc-pricelist-widget .product-features {
    /* Uses Elementor global style for Body S */
    font-family: var(--e-global-typography-7c7b9f4-font-family), Sans-serif;
    font-size: var(--e-global-typography-7c7b9f4-font-size);
    font-size: 14px;
    line-height: var(--e-global-typography-7c7b9f4-line-height);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    flex-grow: 1;
    margin: 0;
    list-style-type: none;
    padding-left: 0;
}

.masterdc-pricelist-widget .spec-item {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-content: center;
    align-items: center;
}

.masterdc-pricelist-widget .spec-item .label {
    font-weight: 700;
    font-size: 12px;
    color: var(--e-global-color-primary);
    background: var(--e-global-color-2818052);
    padding: 0px 6px;
    border-radius: 20px;
    text-align: center;
    min-width: 50px;
}

.masterdc-pricelist-widget .spec-item .value {
    flex-grow: 1;
}

.masterdc-pricelist-widget .spec-item.active .value {
    font-weight: 700;
}

.masterdc-pricelist-widget .spec-item.active .label {
    background: #EFE6FF;
}

.masterdc-pricelist-widget .product-features li {
    background-image: url('assets/checkmark.svg');
    background-repeat: no-repeat;
    background-position: left 6px;
    background-size: 15px;
    padding-left: 25px;
    text-wrap: balance;
}

.masterdc-pricelist-widget .product-price {
    /* Uses Elementor global style for Body S */
    font-family: var(--e-global-typography-7c7b9f4-font-family), Sans-serif;
    font-size: var(--e-global-typography-7c7b9f4-font-size);
    line-height: var(--e-global-typography-7c7b9f4-line-height);
	color: var(--e-global-color-text); /* Fix by David */
}

.masterdc-pricelist-widget .product-price strong {
    font-size: 18px;
    font-weight: bold;
    color: var(--e-global-color-text);
}

.masterdc-pricelist-widget .product-button {
    width: 100%;
    padding: 25px var(--spacing-around);
    background-color: var(--e-global-color-accent);
    transition: background-color 0.2s ease;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    /* Uses Elementor global style for Links & Menu */
    font-family: var(--e-global-typography-2e6d27b-font-family), Sans-serif;
    font-size: var(--e-global-typography-2e6d27b-font-size);
    font-weight: var(--e-global-typography-2e6d27b-font-weight);
    line-height: var(--e-global-typography-2e6d27b-line-height);
}
.masterdc-pricelist-widget .product-button:hover {
    width: 100%;
    padding: 25px var(--spacing-around);
    background-color: var(--e-global-color-5445bb8);
}
.masterdc-pricelist-widget .product-button .icon {
    display: block;
    width: 18px;
    height: 18px;
    color: white;
}
.masterdc-pricelist-widget .product-button .icon svg {
    fill: white;
}
.masterdc-pricelist-widget .product-default-icon {
    background-image: url('assets/sliders-white.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    display: flex;
    height: 100%;
}

/* By David | 21. 7. 2025 */
.masterdc-pricelist-widget .spec-item .value,
.masterdc-pricelist-widget .spec-item.active *:hover {
	color: #22252c;
}

.masterdc-pricelist-widget .package-item {
	background-color: #fff;
}

/* 
 *  ==================================================
 *  MasterDC Addons Widget
 *  ==================================================
 */

.masterdc-addons-widget {
    --spacing-around: clamp(40px, 5%, 90px);
    --spacing-around-adjusted: clamp(40px, 7.5%, 90px); /* Different % because in 2/3 width column */
    --spacing-gap-m: 30px;
    --spacing-gap-s: 12px;

    background: linear-gradient(90deg,
            var(--e-global-color-2818052) 0%,
            var(--e-global-color-7cf1dd1) 100%);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-around);
    padding: var(--spacing-around);
}

@media (max-width: 1024px) {
    .masterdc-addons-widget {
        grid-template-columns: 3fr 2fr;
        /* Negative margin on phone to stretch to full width */
        margin: 0 min(-20px, -5vw);
        padding: 60px max(20px, 5vw);
    }
}
@media (max-width: 767px) {
    .masterdc-addons-widget {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

.masterdc-addons-widget h3 {
    margin-bottom: var(--spacing-gap-m);
    text-wrap: balance;
}

.masterdc-addons-widget h3::after {
    content: '';
    display: block;
    border-radius: 4px;
    height: 2px;
    background: linear-gradient(90deg,
            var(--e-global-color-primary) 0%,
            var(--e-global-color-accent) 100%);
    margin-top: var(--spacing-gap-s);
}

.masterdc-addons-widget .addons-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-around-adjusted);
}

@media (max-width: 1024px) {
    .masterdc-addons-widget .addons-columns {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.masterdc-addons-widget .addon {
    border-bottom: 1px solid var(--e-global-color-f171ff8);
}

.masterdc-addons-widget .addon_title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: center;
    cursor: pointer;
    padding: var(--spacing-gap-s) 0;
}

.masterdc-addons-widget .addon_title h4 {
    /* Uses Elementor global style for Links & Menu */
    font-family: var(--e-global-typography-2e6d27b-font-family), Sans-serif;
    font-size: var(--e-global-typography-2e6d27b-font-size);
    font-weight: var(--e-global-typography-2e6d27b-font-weight);
    line-height: var(--e-global-typography-2e6d27b-line-height);
    margin: 0;
    text-wrap: balance;
    transition: color 0.2s;
}

.masterdc-addons-widget .addon_title:hover h4 {
    color: var(--e-global-color-primary);
}

.masterdc-addons-widget .addon_title .control {
    
    background-repeat: no-repeat;
    background-position: center;
    /*background-image: url('assets/angle-down.svg');
    min-height: 6px; 
    width: 14px;
    transition: transform 0.4s; */
    background-image: url('assets/plus.svg');
    min-height: 10px; 
    width: 30px;
}

.masterdc-addons-widget .addon_title.active .control {
    background-image: url('assets/minus.svg');
    /*transform: scaleY(-1);
    transform-origin: center center;*/
}

.masterdc-addons-widget .addon_content {
    padding-bottom: var(--spacing-gap-s);
    /* Uses Elementor global style for Body S */
    font-family: var(--e-global-typography-7c7b9f4-font-family), Sans-serif;
    font-size: var(--e-global-typography-7c7b9f4-font-size);
    line-height: var(--e-global-typography-7c7b9f4-line-height);
}

.masterdc-addons-widget .addon_content a:hover {
    text-decoration: underline;
}



/* 
 *  ==================================================
 *  MasterDC Popop Button Widget
 *  @David Dočasné stylování
 *  Pokud nepůjde napojit klasický Elenentoří button, rozšířím to tu
 *  ==================================================
 */

.product-popup-button,
.elementor-element .elementor-widget-product_button a.elementor-button {
    padding: 20px 30px;
    background-color: white;
    transition: background-color 0.2s ease;
    color: var(--e-global-color-accent);
    display: inline-block;
    /* Uses Elementor global style for Links & Menu */
    font-family: var(--e-global-typography-2e6d27b-font-family), Sans-serif;
    font-size: var(--e-global-typography-2e6d27b-font-size);
    font-weight: var(--e-global-typography-2e6d27b-font-weight);
    line-height: var(--e-global-typography-2e6d27b-line-height);
}
.product-popup-button:hover,
.elementor-element .elementor-widget-product_button a.elementor-button:hover {
    color: var(--e-global-color-text);
}