/*
 Theme Name:   Divi Child
 Template:     Divi
 Version:      1.0.0
*/

.woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel li {
    color: #e0e0e0 !important;
}

.woocommerce-tabs ul.tabs li,
.woocommerce-tabs ul.tabs li a {
    background: transparent !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}
.woocommerce-tabs ul.tabs li.active,
.woocommerce-tabs ul.tabs li.active a {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

#tab-description p,
#tab-description li,
.woocommerce-Tabs-panel#tab-description * {
    color: #e0e0e0 !important;
}

#tab-description h2 {
    display: none;
}

.woocommerce-tabs ul.tabs {
    display: none;
}

.woocommerce div.product div.images {
    max-width: 70%;
    margin: 0 auto;
}

.woocommerce-product-gallery__trigger {
    display: none !important;
}

.woocommerce-product-gallery__image a {
    pointer-events: none !important;
    cursor: default !important;
}
.woocommerce-product-gallery__trigger {
    display: none !important;
}

.et-db #et-boc .et-l .et_pb_section {
    background-color: #0d0d0f !important;
}

/* Fix Divi product hover overlay */
.et_shop_image .et_overlay {
    background: rgba(13, 13, 15, 0.55) !important;
    border-color: transparent !important;
}
.et_overlay:before,
.et_pb_extra_module .et_overlay:before,
.et_shop_image .et_overlay:before {
    color: #0d0d0f !important;
    background-color: #f5a623 !important;
    border-radius: 50% !important;
}

/* Tame oversized WooCommerce account headings */
.woocommerce-account .woocommerce h2,
.woocommerce-account .woocommerce h3,
.woocommerce-account .addresses .title h3,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

/* Dark WooCommerce Select2 dropdowns */
.woocommerce form .select2-container .select2-selection--single,
.woocommerce-page form .select2-container .select2-selection--single {
    background-color: #1a1a1e !important;
    border: 1px solid #333 !important;
    color: #e0e0e0 !important;
    height: auto !important;
    padding: 12px 10px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #e0e0e0 !important;
    line-height: 1.4 !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #888 !important;
}
/* The open dropdown list */
.select2-dropdown,
.select2-container--default .select2-results__options {
    background-color: #1a1a1e !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #f5a623 !important;
    color: #0d0d0f !important;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    background-color: #0d0d0f !important;
    color: #e0e0e0 !important;
    border-color: #333 !important;
}

/* Hide Shipping address column on My Account addresses page */
.woocommerce-Addresses .woocommerce-Address:nth-child(2) {
    display: none !important;
}
.woocommerce-Addresses {
    display: block !important;
}
.woocommerce-Addresses .woocommerce-Address {
    width: 100% !important;
    float: none !important;
}

/* Fuller, larger billing address display */
.woocommerce-Address address {
    font-size: 17px !important;
    line-height: 2 !important;
    font-style: normal !important;
}

/* Hide the addresses intro line */
.woocommerce-Addresses > p,
.woocommerce-MyAccount-content > p:first-of-type {
    display: none !important;
}

/* Style the Billing address heading */
.woocommerce-Address .woocommerce-Address-title h3,
.woocommerce-Address h3,
.woocommerce-column__title {
    text-align: center !important;
    color: #f5a623 !important;
    font-size: 28px !important;
    font-weight: 500 !important;
    display: block !important;
    width: 100% !important;
}

/* Billing address heading (correct selector: h2 in .woocommerce-Address-title) */
.woocommerce-Address-title.title h2,
header.woocommerce-Address-title h2 {
    text-align: right !important;
    color: #f5a623 !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    display: block !important;
    width: 100% !important;
    float: none !important;
}

/* Right-align billing address info, smaller */
.woocommerce-Address address {
    text-align: right !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

/* Space between Edit link and address info */
.woocommerce-Address address {
    margin-top: 20px !important;
}

/* Hide Display name field description */
#account_display_name_field .description,
#account_display_name_field span.description {
    display: none !important;
}

/* Hide Display name description (targets actual id) */
#account_display_name_description {
    display: none !important;
}

/* Remove empty footer-bottom bar */
#footer-bottom {
    display: none !important;
}

/* Remove hover overlay + icon on product images */
.et_overlay,
.et_shop_image .et_overlay,
.et_overlay:before {
    display: none !important;
}

/* Style the quantity input box */
.woocommerce div.product form.cart .quantity input.qty,
.et-db #et-boc .et-l .et_pb_wc_add_to_cart .quantity input.qty {
    border: 2px solid #f5a623 !important;
    border-radius: 6px !important;
    background-color: #1a1a1e !important;
    color: #ffffff !important;
    text-align: center !important;
    padding: 10px !important;
    font-size: 18px !important;
}

/* My Servers page */
.oh-server-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1e;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 18px 22px;
    margin-bottom: 14px;
}
.oh-server-info strong { display: block; font-size: 17px; color: #fff; }
.oh-server-ip { display: block; font-size: 13px; color: #aaa; margin-top: 4px; }
.oh-server-btn {
    background: #f5a623 !important;
    color: #0d0d0f !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    white-space: nowrap;
}
.oh-server-btn:hover { background: #e0951a !important; }
.oh-server-note { margin-top: 18px; color: #aaa; font-size: 14px; }

.woocommerce .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button.view:hover,
.woocommerce table.my_account_orders .woocommerce-orders-table__cell-order-actions a.button.view:hover {
    filter: brightness(1.06);
    color: #fff !important;
}
.woocommerce .woocommerce-orders-table .woocommerce-orders-table__cell-order-actions a.button.view::after {
    content: none;
}

/* Match Log in and Register button sizes */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    padding: 14px 40px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    min-width: 180px !important;
    text-align: center !important;
    float: none !important;
}

/* Fix login/register button layout */
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
    display: block !important;
    float: none !important;
    clear: both !important;
    margin-top: 20px !important;
}
/* Keep remember-me on its own line above the button */
.woocommerce-form-login .woocommerce-form-login__rememberme {
    display: block !important;
    margin-bottom: 15px !important;
}

/* White background only for the ticket-submitted confirmation message */
#wpsc-container .wpsc-success,
#wpsc-container .wpsc-info,
.wpsc-shortcode-container .wpsc-success {
    background: #ffffff !important;
    color: #0d0d0f !important;
    padding: 18px 22px !important;
    border-radius: 8px !important;
}

/* White background for the ticket-submitted confirmation message */
.wpsc-body > .wpsc-xs-12.wpsc-sm-12.wpsc-md-12.wpsc-lg-12 > p:only-child,
.wpsc-body > div > p:first-child:last-of-type {
    background: #ffffff !important;
    color: #0d0d0f !important;
    padding: 18px 22px !important;
    border-radius: 8px !important;
    margin: 0 !important;
}
