
/******************************************************************************
 * GLOBALS                                                                    *
 ******************************************************************************/

/* Always show body scrollbar. */
body {
    overflow-y: scroll;
}

/* Restore margin after breadcrumbs removal. */
.site-header {
    margin-bottom: 1.41em;
}

/* Stretch site logo's container. */
.site-branding {
    width: 100%;
}

/* Stretch secondary navigation. */
.storefront-secondary-navigation.woocommerce-active .site-header .secondary-navigation {
    width: 73%;
    float: right;
    margin-right: 0;
}

/* Fix linked logo's width. */
.site-header .custom-logo-link img {
    width: auto;
}

/* Style header menu button. */
.site-header .menu .rpg-menu-button a {
    font-size: 110%;
    font-weight: bold;
    background-color: #eee;
    border-radius: 10px;
}

.site-header .menu .rpg-menu-button.alt a {
    color: var(--rpg--color--button-alt-text);
    background-color: var(--rpg--color--button-alt-bg);
}

.site-header .menu .rpg-menu-button.alt a:hover {
    background-color: var(--rpg--color--button-alt-bg--hover);
}

.site-header .menu .rpg-menu-button.alt-outlined a {
    border: 3px solid var(--rpg--color--button-alt-bg);
}

.site-header .menu .rpg-menu-button.accent a {
    color: var(--rpg--color--button-alt-text);
    background-color: var(--rpg--color--accent);
}

.site-header .menu .rpg-menu-button.accent a:hover {
    opacity: .9;
}

.site-header .menu .rpg-menu-button.accent-outlined a {
    border: 3px solid var(--rpg--color--accent);
}

/* Remove footer separator. */
.site-footer .footer-widgets {
    border-bottom: none;
    padding-top: 1em;
}

/* Increase blocks spacing on mobiles. */
@media (max-width: 767px) {
    .site-footer .footer-widgets .block + .block {
        margin-top: 3em;
    }
}

/* Decrease widget's margin. */
.site-footer .footer-widgets .widget {
    margin-bottom: .54em;
}

/* Remove paragraph's margin in "contact staff" widget. */
.site-footer .footer-widgets .rpg-contact-staff p {
    margin-bottom: 0;
}

/* Hide info footer. */
.site-footer .site-info {
    display: none;
}

/* Adjust upper footer's margin. */
.site-footer .rpg-upper-footer {
    margin: 0 0 3em;
}

/* Adjust lower footer's margin. */
.site-footer .rpg-lower-footer {
    margin: 3em 0 0;
}

/******************************************************************************
 * 404 ERROR PAGE                                                             *
 ******************************************************************************/

/* Hide widgets. */
body.error404 #primary .page-content > *:nth-child(n+2) {
    display: none;
}

/* Increase page height. */
body.error404 #primary {
    margin: 50px 0 250px;
}

/******************************************************************************
 * SINGLE PRODUCT PAGE                                                        *
 ******************************************************************************/

/* Decrease containers' margins. */
body.single-product #primary,
body.single-product #main {
    margin-bottom: 0;
}

/* Fix product container's outline visibility issue. */
.single-product div.product {
    overflow: visible;
}

/* Stretch product info after gallery removal. */
.storefront-full-width-content.single-product div.product .summary {
    width: 100%;
    float: none;
    margin-right: auto;
}

/* Customize single product order form. */
body.single-product div.product .summary {
    max-width: 650px;
    background-color: #fff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 40px;
    margin: 20px auto 40px;
}

@media (max-width: 568px) {
    body.single-product div.product .summary {
        padding: 20px;
    }
}

body.single-product div.product .summary form.cart {
    padding-bottom: 0;
    margin-bottom: 0;
}

body.single-product div.product .summary .product_title,
body.single-product div.product .summary .product_subtitle,
body.single-product div.product .summary .price {
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

body.single-product div.product .summary .product_title {
    font-size: 20px;
    color: var(--rpg--color--accent);
}

body.single-product div.product .summary .product_subtitle {
    font-size: 16px;
    text-transform: capitalize;
    color: #666;
}

body.single-product div.product .summary .price {
    font-size: 20px;
    color: #000;
    margin-top: 0;
}

body.single-product div.product .summary #tm-extra-product-options {
    padding-bottom: 25px;
}

body.single-product div.product .summary input[type="text"],
body.single-product div.product .summary input[type="number"],
body.single-product div.product .summary input[type="email"],
body.single-product div.product .summary input[type="tel"],
body.single-product div.product .summary input[type="url"],
body.single-product div.product .summary input[type="password"],
body.single-product div.product .summary input[type="search"],
body.single-product div.product .summary textarea,
body.single-product div.product .summary .input-text {
    background: none;
    box-shadow: none;
    border: 1px solid #c1c1c1;
    border-radius: 10px;
}

body.single-product div.product .summary .single_add_to_cart_button {
    width: 50%;
    min-width: fit-content;
    border-radius: 10px;
    margin-right: 30px;
}

@media (max-width: 568px) {
    body.single-product div.product .summary .single_add_to_cart_button {
        display: block;
        margin: 0 auto;
    }
}

body.single-product div.product .summary .rpg-confid-badge {
    text-transform: capitalize;
    color: #999;
    display: inline-block;
}

@media (max-width: 568px) {
    body.single-product div.product .summary .rpg-confid-badge {
        text-align: center;
        display: block;
        margin-top: 10px;
    }
}

body.single-product div.product .summary .rpg-confid-badge::before {
    content: '\f023';
    font-family: tc-fontawesome, sans-serif;
    font-weight: 900;
    margin-right: 8px;
}

body.single-product div.product .summary .sidebar {
    border-top: 1px solid #c1c1c1;
    padding-top: 25px;
    margin-top: 30px;
}

body.single-product div.product .summary .sidebar > .widget {
    margin-bottom: 20px;
}

body.single-product div.product .summary .sidebar > .widget:last-child {
    margin-bottom: 0;
}

body.single-product div.product .summary .sidebar .widget .rpg-order-form-badges,
body.single-product div.product .summary .sidebar .widget .rpg-order-form-badges figure {
    margin-bottom: 0;
}

@media (max-width: 781px) {
    body.single-product div.product .summary .sidebar .widget .rpg-order-form-badges img {
        margin: 0 auto;
    }
}

body.single-product div.product .summary .sidebar .widget ul {
    list-style-type: initial;
    margin-left: 15px;
}

body.single-product div.product .summary .sidebar .widget ul:last-child {
    margin-bottom: 0;
}

/* Adjust date picker widget for very small screens. */
@media (max-width: 350px) {
    .tm-datepicker-medium .tm-ui-dp-container {
        min-width: 290px;
    }
}

/* Hide quantity selector. */
body.single-product div.product .summary .quantity {
    display: none;
}

/* Product footer. */
@media (max-width: 767px) {
    .rpg-product-footer .support-col + .payment-providers-col {
        margin-top: 2.62em;
    }
}

@media (min-width: 768px) {
    .rpg-product-footer {
        display: flex;
    }
    
    .rpg-product-footer .support-col {
        width: 66%;
        padding-right: 8%;
    }
}

/******************************************************************************
 * CART PAGE                                                                  *
 ******************************************************************************/

/* Items count in cart/checkout. */
body.woocommerce-page .cart-items-count {
    margin-bottom: 15px;
}

body.woocommerce-page .cart-items-count i {
    opacity: .5;
    margin-right: 5px;
}

/* Fix remove button's position in cart.' */
@media (max-width: 767px) {
    table.cart td.product-remove a.remove {
        position: relative;
        top: auto;
        right: auto;
        float: right;
    }
}

/* Hide product thumb in cart. */
table.cart .product-thumbnail {
    display: none;
}

/* Wrap long metadata. */
table.cart .product-name .tc-epo-metadata p {
    word-break: break-all;
}

/* Hide product quantity in cart. */
table.cart .product-quantity {
    display: none;
}

/* A row below cart contents. */
table.shop_table_responsive tbody tr td.rpg-below-cart-contents {
    text-align: center;
}

/* Coupon code note. */
.rpg-coupon-note {
    text-align: left;
    padding: .618em 0 .618em .618em;
}

/* Checkout button. */
body.woocommerce-cart .checkout-button.wc-forward {
    color: #333;
    background-color: #eee;
    border-width: 2px;
    border-style: solid;
}

/******************************************************************************
 * CHECKOUT PAGE                                                              *
 ******************************************************************************/

/* Adjust order summary cols width. */
table.woocommerce-checkout-review-order-table .product-name {
    width: auto;
}

/* Hide product quantity in order summary. */
table.woocommerce-checkout-review-order-table .product-name .product-quantity {
    display: none !important;
}

/* Order bump. */
.wfob_bump_wrapper .wfob_price {
    white-space: nowrap;
}

.wfob_bump_wrapper .wfob_price .amount {
    display: inline !important;
}

.wfob_bump_wrapper .wfob_price .subscription-details {
    font-size: 14px;
}

/* "Thank you" page confetti. */
.woocommerce-order-received .hentry {
    position: relative;
}

.woocommerce-order-received .hentry .rpg-confetti-left,
.woocommerce-order-received .hentry .rpg-confetti-right {
    position: absolute;
    z-index: 1100;
    top: -200px;
    left: -200px;
}

.woocommerce-order-received .hentry .rpg-confetti-right {
    left: auto;
    right: -200px;
}

/* Respect line breaks in "Thank you" message. */
.woocommerce-thankyou-order-received {
    white-space: pre-line;
}

/* Center return button's container. */
.woocommerce-thankyou-order-received + .rpg-ty-controls {
    text-align: center;
    margin-bottom: 1.41em;
}

/******************************************************************************
 * ACCOUNT PAGE                                                               *
 ******************************************************************************/

/* Wrap long metadata. */
.woocommerce-view-order .woocommerce-table--order-details .wc-item-meta li {
    word-break: break-all;
}

/* Hide product quantity on view order/subscription pages. */
.woocommerce-view-order .woocommerce-table--order-details .product-quantity,
.woocommerce-view-subscription .shop_table.order_details .product-quantity {
    display: none;
}

/* Highlight "Renew now" button on view subscription page. */
.woocommerce-view-subscription .shop_table.subscription_details .button.subscription_renewal_early {
    color: var(--rpg--color--button-alt-text);
    background-color: var(--rpg--color--button-alt-bg);
    border-color: var(--rpg--color--button-alt-bg);
}

.woocommerce-view-subscription .shop_table.subscription_details .button.subscription_renewal_early:hover {
    background-color: var(--rpg--color--button-alt-bg--hover);
    border-color: var(--rpg--color--button-alt-bg--hover);
}

/* Customize affiliate dashboard signup form. */
.yith-wcaf-registration-form .already-an-affiliate-wrapper,
.yith-wcaf-registration-form .become-an-affiliate-form,
.yith-wcaf-registration-form .pending-request-wrapper,
.yith-wcaf-registration-form .rejected-request-wrapper {
    background: none;
}

.yith-wcaf-registration-form .become-an-affiliate-form {
    text-align: left;
}

.yith-wcaf-registration-form .become-an-affiliate-form .form-row:last-child {
    text-align: center;
}

.yith-wcaf-registration-form a.button,
.yith-wcaf-registration-form button,
.yith-wcaf-registration-form input[type="submit"] {
    padding: .6180469716em 1.41575em;
}
