/* Containers */
.twbg-section-1,
.twbg-section-2 {
    display: flex;
}

.twbg-image-section {
    flex: 0 0 50%;
    max-width: 50%;
    position: relative; /* so .message-banner positions correctly */
}

.twbg-info-section {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6rem;
    min-width: 0;
}

.twbg-section-2a,
.twbg-section-2b {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6rem;
    min-width: 0;
}

@media (max-width: 768px) {
   .twbg-section-1,
   .twbg-section-2 {
        flex-direction: column;
    } 
    .twbg-image-section,
    .twbg-section-2a,
    .twbg-section-2b  {
        max-width: 100%;
        width: 100%;
    }
    .twbg-section-2a,
    .twbg-section-2b{
        padding: 3rem;
    }
    .twbg-info-section {
        max-width: 100%;
        width: 100%;
        text-align: center;
        padding: 30px;
    }
}

/* Message Banner */
.message-banner {
    background-color: #fff;
    color: #444;
    height: 40px;
    border-radius: 3px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1;
    padding: 9px 15px;
}


/* Flickity */
.flickity-prev-next-button {
    width: 40px;
    height: 40px;
    padding: 0;
}
.flickity-button {
    background-color: #fff !important;
}
.flickity-button-icon {
    fill: #444;
}
.flickity-page-dots {
    display: none;
}

/* Lightbox */ 
.twbg-lightbox-trigger,
.twbg-lightbox-trigger:active,
.twbg-lightbox-trigger:focus {
    position: absolute;
    top: 30px;
    right: 10px;
    border-radius: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    background-color: #fff;
    color: #444;
    z-index: 1;
    transition: fill .3s, background-color .3s;
    pointer-events: auto !important;
    border: none;
}
.twbg-lightbox-trigger:hover {
    background-color: #444;
    fill: #fff;
    cursor pointer
}
.twbg-lightbox-trigger svg {
    position: absolute;
    left: 1rem;
    top: 1rem;
}

/* Containers */
.product-details-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}
.twbg-buy-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Product Title */
.product-title-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.twbg-info-section h1 {
    font-size: 3.2rem;
    font-weight: 400;
}
.twbg-info-section h2.twbg-subtitle {
    font-size: 1.6rem;
    margin-bottom: 0;
}
.twbg-info-section .twbg-price {
    font-size: 3.2rem;
    font-weight: 400;
    margin-bottom: 0;
}

.twbg-info-section p {
    margin-bottom: 0;
}

/* Deposit Radios */
.wc-deposits-wrapper {
    padding: 0;
    border: none;
    height: 44px;
    margin-top: 1.5rem;
}
.wc-deposits-wrapper .wc-deposits-option {
    display: flex;
    margin: 0;
    gap: 2rem;
}
.wc-deposits-wrapper .wc-deposits-option li {
    list-style: none;
}
.wc-deposits-option input[type="radio"] {
    opacity: 0;
    position: fixed;
    width: 0;
    padding: 0;
}
.wc-deposits-wrapper .wc-deposits-option li label {
    padding: 10px 53px;
    border-radius: 100px;
    background-color: #ddd;
    color: #888;
    transition: color .3s, background-color .3s, border-color .3s;
    white-space: nowrap;
}

.wc-deposits-wrapper .wc-deposits-option li label:hover {
    cursor: pointer;
}
.wc-deposits-option input[type="radio"]:checked + label {
    background-color: #000000;
    border-color: #444;
    color: white;
}

/* Buy Button */
.twbg-info-section .buy-link {
    width: 465px;
    text-align: center;
    color: white !important;
    border-color: #0c580c !important;
    padding: 8px 32px;
    background-color: #0c580c !important;
    text-transform: uppercase;
    transition: background-color .3s, border-color .3s;
    border-radius: 0 !important;
    height: 40px;
}
.twbg-info-section .buy-link:hover {
    background-color: #000 !important;
    border-color: #000 !important;
}
.item_in_cart {
    padding-top: 1.2rem !important;
}

/* Appointment */
.twbg-info-section .appt-link {
    width: 465px;
    display: block;
    text-align: center;
    border: 1px solid #444;
    border-radius: 100px;
    padding: 8px 32px;
    margin-top: 1px;
    color: #444;
    transition: color .3s, background-color .3s, border-color .3s;
}
.twbg-info-section .appt-link:hover {
    color: white;
    background-color: #0c580c;
    border-color: #0c580c;
}

@media (max-width: 1074px) {
    .twbg-info-section {
        padding: 4rem;
    }
    .wc-deposits-wrapper {
        height: unset;
    }
    .wc-deposits-wrapper .wc-deposits-option {
        flex-direction: column;
    }
    .twbg-buy-form {
        gap: 2rem;
    }
    .wc-deposits-option input[type="radio"] + label {
        width: 100%;
        display: block;
        text-align: center;
    }
    .twbg-info-section .buy-link {
        width: 100%;
    }
    .twbg-info-section .appt-link {
        width: 100%;
        margin-top: 10px;
    }
} 

@media (max-width: 892px) {
    .flickity-prev-next-button {
        top: 50%;
        transform: translateY(-50%);
    }
} 
@media (max-width: 768px) { 
    .wc-deposits-wrapper .wc-deposits-option {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Short Description */

.twbg-short-desc p {
    margin-bottom: 1rem;
}

.twbg-short-desc table {
    border: .25px solid #999;
}
.twbg-short-desc td {
    vertical-align: top;
    border: .25px solid #999;
}

/* Accordion Blocks */
.single-product .accordion-block {
    border-top: 1px solid #999;
    border-left: 1px solid #999;
    border-right: 1px solid #999;
}
.single-product .accordion {
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: .5px;
    background-color: white !important;
    color: #444;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}
.single-product .last-accordion-block {
    border-bottom: 1px solid #999;
}
.single-product .accordion::after {
    display: block;
    content: '\002B';
    color: #444;
    float: right;
    margin-left: 5px;
}
.single-product .panel {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

/* Ebay */
.sm-sq-button {
    display: inline-block;
    background-color: #777777 !important;
    color: #fff;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
}
#ebay-button {
    position: fixed;
    top: 120px;
    right: 20px;
    z-index: 9999;
}

#dialog_box_bg {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 10;
    background-color: rgba(0, 0, 0, .6);
    display: none;
}
#dialog_box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-width: 1px;
    border-color: rgba(0, 0, 0, 0.2);
    border-style: solid;
    padding: 30px 10px 5px;
    width: 80vw;
    max-height: 90vh;
    overflow: scroll;
    text-align: center;
    z-index: 11;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.5) 0px 5px 15px 0px;
}
#ebay_html {
    margin-bottom: 15px;
    height: 32vw;
    border: 1px solid black;
}
#copy_success {
    position: absolute;
    bottom: 40px;
    left: calc(50% - 62px);
    font-size: 12px;
    text-transform: uppercase;
    background: grey;
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    display: none;
}
