/* Product 416: filmfremkaldelse redesign. */

#buy_block {
    display: grid;

    /* 10 column grid */
    grid-template-areas:
        "film-help-panel vaelgdinfilm"
        "film-help-panel secondstep"
        "productfilm_summary productfilm_summary"
        "film-help-input box-info-product";

    grid-template-columns: 107px 107px 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
}

#vaelgdinfilm {
    grid-area: vaelgdinfilm;
    grid-column: span 7;
}

#secondstep {
    grid-area: secondstep;
    grid-column: span 7;
}

.productfilm_summary {
    grid-area: productfilm_summary;
    grid-column: span 9;
}

.box-info-product {
    grid-area: box-info-product;
    grid-column: span 3;
}

div#product-custom {
    max-width: 900px;
    color: #050505;
}

div#product-custom:has(.thirditem) .film-help-input,
div#product-custom:has(.thirditem) .film-help-panel {
    display: none;
}

div#product-custom:has(.thirditem) .box-info-product {
    grid-column: span 9;
}

div#product-custom section.product_heading {
    padding: 24px 0 12px;
    border-radius: 0;
}

div#product-custom section.product_heading h1 {
    margin: 0 0 18px;
    color: #050505 !important;
    font-family: sans-serif;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.12;
    text-shadow: none;
}

div#product-custom section.product_heading p {
    display: none;
}

div#product-custom section.product_heading ul {
    display: flex;
    justify-content: center;
    gap: 42px;
    margin: 0;
}

div#product-custom section.product_heading ul li {
    width: auto;
    font-size: 16px;
    font-weight: 400;
    white-space: nowrap;
}

div#product-custom section.product_heading ul li:before {
    display: inline-block;
    content: "";
    width: 12px;
    height: 24px;
    padding: 0;
    margin-right: 16px;
    border-right: 5px solid #3091ec;
    border-bottom: 5px solid #3091ec;
    background: none;
    transform: rotate(40deg);
    vertical-align: -2px;
}

div#product-custom section.steps {
    margin: 52px 0 34px;
}

div#product-custom section.steps ul {
    display: flex;
    justify-content: center;
    margin: 0;
    height: 53px;
}

div#product-custom section.steps li,
div#product-custom section.steps li:nth-child(2) {
    flex: 1 1 0;
    max-width: 300px;
    margin: 0;
    padding: 0px;
    background: transparent;
    position: relative;
}

div#product-custom section.steps li:first-child,
div#product-custom section.steps.firstitem li:first-child,
div#product-custom section.steps.secondtitem li:nth-child(2),
div#product-custom section.steps.thirditem li:nth-child(3) {
    background: transparent;
}

div#product-custom section.steps li:before {
    content: none;
}

div#product-custom section.steps li:after {
    content: none;
}


div#product-custom section.steps li a,
div#product-custom section.steps li span {
    background-color: #72b8f4;
    color: #fff !important;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.08;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;

    width: calc(100% + 50px);
    height: 100%;
    transform: translateX(-50%);
    position: relative;
    left: 50%;

    clip-path: polygon(0% 0%, calc(100% - 53px) 0%, 100% 50%, calc(100% - 53px) 100%, 0% 100%, 53px 50%);
    padding: 0 71px;
}

div#product-custom section.steps li:nth-child(1n+2) a,
div#product-custom section.steps li:nth-child(1n+2) span {
    height: 100%;
    margin-top: 0;
}

div#product-custom section.steps.firstitem li:first-child a,
div#product-custom section.steps.secondtitem li:first-child a,
div#product-custom section.steps.secondtitem li:nth-child(2) a,
div#product-custom section.steps.thirditem li a,
div#product-custom section.steps.thirditem li span {
    background-color: #0083FF;
}


div#product-custom section.steps:after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    margin: -1px auto 0;
    border-left: 17px solid transparent;
    border-right: 17px solid transparent;
    border-top: 42px solid #0788f3;
    transform: translateX(-298px);
}

div#product-custom section.steps.secondtitem:after {
    transform: translateX(0);
}

div#product-custom section.steps.thirditem:after {
    transform: translateX(298px);
}

div#product-custom section.steps_content {
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    min-height: 0;
}

div#product-custom section.steps_content:before,
div#product-custom section.steps_content h3 {
    display: none;
}

.film-help-panel {
    grid-area: film-help-panel;
    grid-column: span 2;
    height: 260px;
    min-height: 212px;
    padding: 12px 8px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
    line-height: 1.18;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.film-help-panel p {
    margin: 0 0 8px;
}

.film-help-panel p:last-child {
    margin-bottom: 0;
}

.film-help-message {
    max-width: 88%;
    margin: 0;
    border-radius: 4px;
    word-break: break-word;
}

.film-help-message-answer {
    align-self: flex-start;
    text-align: left;
}

.film-help-message-user {
    align-self: flex-end;
    color: #0083FF;
    text-align: right;
}

.film-help-message-user p {
    color: #0083FF;
}

.film-help-error {
    background: #f8dddd;
    color: #7a1f1f;
}

.film-help-loading {
    color: #666666;
    font-style: italic;
}

.film-help-image-preview {
    display: block;
    max-width: 120px;
    max-height: 120px;
    margin-top: 8px;
    margin-left: auto;
    border-radius: 4px;
    object-fit: cover;
}

.film-help-input {
    grid-area: film-help-input;
    grid-column: span 6;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    margin: 14px 0 0 0;
    padding-left: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    color: #8a8a8a;
    font-size: 13px;
}

.film-help-input input[type="text"] {
    width: 100%;
    background-color: transparent;
    border: 0;
}

.film-help-selected-preview {
    display: none;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    overflow: hidden;
    border: 1px solid #d6d6d6;
    border-radius: 4px;
    background: #f6f6f6;
}

.film-help-selected-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.film-help-camera {
    cursor: pointer;
    font-size: 28px;
}

.film-help-send {
    background-color: #0083FF;
    border: 0;
    clip-path: polygon(0% 0%, 100% 50%, 0% 100%);
    width: 32px;
    height: 32px;
}

div#product-custom section.steps_content #vaelgdinfilm ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    justify-content: stretch;
    background: transparent;
}

div#product-custom section.steps_content #vaelgdinfilm li {
    display: flex;
    width: auto;
    min-width: 0;
    margin: 0;
    background: transparent;
}

div#product-custom section.steps_content div#vaelgdinfilm li label {
    display: block;
    width: 100%;
    padding: 0;
    background: #ebf5ff;
}

div#product-custom section.steps_content div#vaelgdinfilm li label img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

div#product-custom section.steps_content div#vaelgdinfilm li span.c_name,
div#product-custom section.steps_content div#vaelgdinfilm li span.c_price {
    color: #050505;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.15;
}

div#product-custom section.steps_content div#vaelgdinfilm li span.c_name {
    margin-top: 8px !important;
}

div#product-custom section.steps_content div#vaelgdinfilm li:has(input.attribute_radio:checked):after {
    top: 0;
    right: 0;
    bottom: 42px;
    left: 0;
    width: auto;
    border: 2px solid #0788f3 !important;
    border-radius: 0;
    box-shadow: 0 0 12px rgba(7, 136, 243, 0.35);
    pointer-events: none;
}

div#product-custom section.steps_content div#secondstep div#attributes > fieldset.attribute_fieldset {
    display: block;
    width: 100%;
    padding: 0 0 8px;
}

div#product-custom section.steps_content div#secondstep div#attributes > fieldset.attribute_fieldset > label.attribute_label {
    display: block;
    margin: 0;
    color: #050505;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.15;
}

div#product-custom section.steps_content div#secondstep div#attributes > fieldset.attribute_fieldset > label.attribute_label_span {
    min-height: 0;
    padding: 0 0 8px;
    color: #050505;
    font-size: 15px;
    line-height: 1.2;
}

div#product-custom section.steps_content div#secondstep fieldset.attribute_fieldset ul,
div#product-custom section.steps_content div#secondstep fieldset.attribute_fieldset:first-child ul {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 12px;
}

div#product-custom section.steps_content div#secondstep li {
    display: flex;
    justify-content: center;
    min-height: 40px;
    width: auto;
    margin: 0;
    padding: 6px 8px;
    border: 2px solid #0788f3;
    background: #fff;
    text-align: center;
}

div#product-custom section.steps_content div#secondstep li:after,
div#product-custom section.steps_content div#secondstep li:has(input.attribute_radio:checked):after {
    display: none;
}

div#product-custom section.steps_content div#secondstep li:has(input.attribute_radio:checked) {
    box-shadow: inset 0 0 12px rgba(7, 136, 243, 0.28);
}

div#product-custom section.steps_content div#secondstep li:has(input.attribute_radio:checked) * {
    color: #050505;
}

div#product-custom section.steps_content div#secondstep li span.c_name,
div#product-custom section.steps_content div#secondstep li span.c_price {
    color: #050505;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.12;
}

div#product-custom section.steps_content div#secondstep li span.c_price {
    margin-top: 2px;
}

div#product-custom section.steps_content div li input {
    inset: 0;
    height: 100%;
    width: 100%;
}

.checkmark {
    display: none !important;
}

div#product-custom .bstep .box-info-product,
div#product-custom .box-info-product {
    float: none;
    position: static;
    bottom: auto;
}

div#product-custom section.steps_content .content_prices {
    float: right;
}

#product-custom .content_prices > .price {
    width: 227px;
    height: 41px;
    margin-right: 0;
    padding: 10px;
    background: #0083FF;
    color: #050505 !important;
    box-shadow: 0px 4px 4px 0px #00000040;
    clip-path: polygon(0% 0%, 85% 0%, 100% 50%, 85% 100%, 0% 100%);
}

#product-custom .content_prices > .price::before {
    content: " ";
    position: absolute;
    top: 2px;
    right: 2px;
    bottom: 2px;
    left: 2px;
    z-index: -1;
    background: white;
    clip-path: polygon(0% 0%, 85.5% 0%, 99.5% 50%, 85.5% 100%, 0% 100%);
}

#product-custom .content_prices > .price:after {
    content: none;
}

#product-custom .content_prices > .price span#next,
#product-custom .content_prices > .price span#displaycurrentprice {
    display: inline;
    color: #050505;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
}

div#product-custom section.steps_content.fstep .content_prices #next {
    display: inline;
}

div#product-custom section.steps_content.fstep .content_prices span#displaycurrentprice {
    padding: 0;
}

div#product-custom section.steps_content.bstep div#quantity_wanted_p,
div#product-custom section.steps_content.fstep div#quantity_wanted_p {
    display: none !important;
    float: right;
    margin: 14px 14px 0 0;
}

div#product-custom section.steps_content div#quantity_wanted_p.displayed-none {
    display: none !important;
}

div#product-custom section.steps_content div#quantity_wanted_p input#quantity_wanted {
    width: 45px;
    height: 61px;
    padding: 10px 0;
    border: 1px solid #dedede;
    text-align: center;
}

#quantity_wanted_p .quantity-input-wrapper .product_quantity_up span,
#quantity_wanted_p .quantity-input-wrapper .product_quantity_down span {
    background: #dedede;
    color: #050505;
}

div#product-custom section.steps_content.fstep .content_prices > .price {
    min-width: 190px;
}

div#product-custom section.steps_content.fstep .price {
    padding: 10px;
}

.productfilm_summary {
    padding: 0;
}

.productfilm_summary .heading {
    margin: 0 0 28px;
    color: #050505;
    font-size: 17px;
    font-weight: 400;
}

.productfilm_summary .productfilm_summary-content > div > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 50px;
    border-bottom: 1px solid #0788f3;
    color: #050505;
    font-size: 14px;
}

.productfilm_summary .productfilm_summary-content > div > div:first-child {
    border-top: 1px solid #0788f3;
}

.productfilm_summary .productfilm_summary-content > div > div > div {
    width: auto;
}

.productfilm_summary .productfilm_summary-content > div > div > div:last-child {
    min-width: 120px;
    text-align: right;
}

div#product-custom section.steps_content.fstep div#extratext {
    display: block;
    max-width: 560px;
    margin: 30px 0 0;
    color: #050505;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.12;
}

div#product-custom section.steps_content.fstep div.commentfield {
    display: block;
    width: 100%;
    margin: 30px 0 0;
}

div#product-custom section.steps_content.fstep div.commentfield textarea#commentfield {
    height: 80px;
    border: 2px solid #0788f3;
    color: #050505;
    font-size: 16px;
}

div#product-custom section.steps_content.fstep .add_to_cart_container {
    display: none !important;
}

div#product-custom section.steps_content.fstep + .box-info-product {
    clear: both;
}

@media screen and (max-width: 928px) {
    div#product-custom {
        max-width: 900px;
        padding: 0 18px;
    }

    div#product-custom section.product_heading h1 {
        font-size: 34px;
    }

    div#product-custom section.product_heading ul {
        flex-wrap: wrap;
        gap: 8px 28px;
    }

    div#product-custom section.product_heading ul li {
        width: auto;
        text-indent: 0;
    }

    div#product-custom section.product_heading ul li:before {
        display: inline-block;
    }

    div#product-custom section.steps {
        margin-top: 34px;
    }

    div#product-custom section.steps li a,
    div#product-custom section.steps li span {
        font-size: 16px;
        text-indent: 0;
        text-align: center;
    }

    div#product-custom section.steps:after {
        border-left-width: 14px;
        border-right-width: 14px;
        border-top-width: 34px;
        transform: translateX(-31vw);
    }

    div#product-custom section.steps.secondtitem:after {
        transform: translateX(0);
    }

    div#product-custom section.steps.thirditem:after {
        transform: translateX(31vw);
    }

    .film-step-body {
        grid-template-columns: 1fr;
    }

    .film-help-panel {
        min-height: 0;
    }

    .film-help-input {
        margin-right: 0;
    }

    #product .stm-mfix-section,
    #product-custom .stm-mfix-section {
        position: static !important;
        width: auto;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    div#product-custom section.steps_content .content_prices,
    div#product-custom section.steps_content.bstep div#quantity_wanted_p,
    div#product-custom section.steps_content.fstep div#quantity_wanted_p {
        float: right;
    }

    .film-help-input {
        grid-column: span 5;
    }

    .box-info-product {
        grid-column: span 4;
    }
}

@media screen and (max-width: 846px) {
    div#product-custom section.steps {
        margin-block: 8px 12px;
    }

    div#product-custom section.steps::before {
        content: none;
    }

    div#product-custom section.steps ul {
        flex-direction: column;
        height: auto;
    }

    div#product-custom section.steps ul li {
        display: none;
        max-width: none !important;
    }

    div#product-custom section.steps ul li a,
    div#product-custom section.steps ul li span {
        width: 100%;
        padding-block: 13px 10px;
        margin-bottom: 10px;
        display: block;
        clip-path: polygon(0% 0%, 100% 0%, 100% 66%, 50% 100%, 0% 66%);
    }

    div#product-custom section.steps.firstitem li:first-child,
    div#product-custom section.steps.secondtitem li:nth-child(2),
    div#product-custom section.steps.thirditem li:nth-child(3) {
        display: list-item;
    }

    div#product-custom section.steps::after {
        content: none;
    }

    #buy_block {
        display: grid;

        /* 10 column grid */
        grid-template-areas:
            "film-help-panel"
            "film-help-input"
            "vaelgdinfilm"
            "secondstep"
            "productfilm_summary"
            "box-info-product";

        grid-template-columns: 1fr;
        gap: 15px;
    }

    .film-help-panel,
    .film-help-input,
    #vaelgdinfilm,
    #secondstep,
    .productfilm_summary,
    .box-info-product {
        grid-column: span 9;
    }

    .film-help-input {
        margin-top: -10px;
    }
}

@media screen and (max-width: 664px) {
    #product div#columns {
        padding-top: 0;
    }

    div#product-custom section.product_heading {
        padding-block: 24px 12px;
    }

    div#product-custom section.product_heading h1 {
        font-size: 22px;
    }

    div#product-custom section.product_heading ul li:before {
        width: 12px;
        height: 20px;
    }

    div#product-custom section.steps_content div#vaelgdinfilm ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    div#product-custom section.steps_content div#vaelgdinfilm ul li {
        width: auto !important;
    }

    div#product-custom section.steps_content div#secondstep fieldset.attribute_fieldset ul {
        grid-template-columns: unset;
    }

    .productfilm_summary .productfilm_summary-content > div > div {
        padding-inline: 0;
    }
}
