/* Scoped correction for the Active Payment Methods picker on WooCommerce General settings. */
select.digages-active-payment-methods-select.digagespq-select {
    display: none !important;
}

.digagespq-select-button.digages-active-payment-methods-select {
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: 400px !important;
    max-width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #8C8F94 !important;
    border-radius: 2px !important;
    background: #FFFFFF !important;
    color: #2C3338 !important;
    line-height: 20px !important;
    box-shadow: none !important;
}

.digagespq-select-button.digages-active-payment-methods-select .digagespq-select-text {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #2C3338 !important;
    line-height: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.digages-active-payment-methods-popup {
    box-sizing: border-box !important;
    width: 400px !important;
    max-width: calc(100vw - 32px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
}

.digages-active-payment-methods-popup .digagespq-select-popup {
    box-sizing: border-box !important;
    width: 100% !important;
    height: auto !important;
    max-height: 208px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #8C8F94 !important;
    border-radius: 2px !important;
    background: #FFFFFF !important;
    box-shadow: 0 3px 8px rgba(30, 35, 40, 0.12) !important;
}

.digages-active-payment-methods-popup .digagespq-select-search-div {
    box-sizing: border-box !important;
    width: 100% !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #E0E0E0 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
}

.digages-active-payment-methods-popup .digagespq-select-search-div1 {
    box-sizing: border-box !important;
    width: auto !important;
    height: 39px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.digages-active-payment-methods-popup .digagespq-select-search-input {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 39px !important;
    height: 39px !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}

.digages-active-payment-methods-popup .digagespq-select-menu {
    box-sizing: border-box !important;
    width: 100% !important;
    max-height: 168px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #FFFFFF !important;
}

.digages-active-payment-methods-popup .digagespq-select-menu > div {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.digages-active-payment-methods-popup label.digagespq-select-option {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 100% !important;
    min-height: 32px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-bottom: 1px solid #F0F0F1 !important;
    border-radius: 0 !important;
    background: #FFFFFF !important;
    color: #2C3338 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    cursor: pointer !important;
}

.digages-active-payment-methods-popup label.digagespq-select-option:hover,
.digages-active-payment-methods-popup label.digagespq-state-hover {
    background: #F6F7F7 !important;
    color: #2C3338 !important;
}

.digages-active-payment-methods-popup .digagespq-select-option > input[type="checkbox"] {
    position: absolute !important;
    top: 50% !important;
    left: 10px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-50%) !important;
}

.digages-active-payment-methods-popup .digagespq-select-option > input + span {
    position: relative !important;
    top: 50% !important;
    display: block !important;
    width: auto !important;
    margin: 0 0 0 34px !important;
    padding: 0 !important;
    overflow: hidden !important;
    color: #2C3338 !important;
    font-weight: 400 !important;
    line-height: 20px !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transform: translateY(-50%) !important;
}

/* Customer email templates on the unified Payment Methods screen. */
.woodp-customer-email-accordion,
.woodp-customer-email-method {
    box-sizing: border-box;
    width: 100%;
    border-bottom: 1px solid #C3C4C7; 
    background: #FFFFFF;
}

.woodp-customer-email-accordion > summary,
.woodp-customer-email-method > summary {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    padding: 10px 14px;
    color: #2C3338;
    font-weight: 600;
    line-height: 20px;
    list-style: none;
    cursor: pointer;
}

.woodp-customer-email-accordion > summary::-webkit-details-marker,
.woodp-customer-email-method > summary::-webkit-details-marker {
    display: none;
}

.woodp-customer-email-accordion > summary::after,
.woodp-customer-email-method > summary::after {
    width: 7px;
    height: 7px;
    margin-left: 16px;
    border-right: 2px solid #646970;
    border-bottom: 2px solid #646970;
    content: "";
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

.woodp-customer-email-accordion[open] > summary::after,
.woodp-customer-email-method[open] > summary::after {
    transform: rotate(225deg);
}

.woodp-customer-email-accordion[open] > summary,
.woodp-customer-email-method[open] > summary {
    border-bottom: 1px solid #C3C4C7;
}

.woodp-customer-email-methods {
    padding: 12px;
}

.woodp-customer-email-method + .woodp-customer-email-method {
    margin-top: 8px;
}

.woodp-customer-email-panel {
    padding: 12px;
}

.woodp-customer-email-panel textarea {
    margin: 0;
}

@media (max-width: 782px) {
    .woodp-customer-email-settings {
        flex-direction: column;
    }

    .woodp-customer-email-settings .digages-woodp-messages-bg-item-left,
    .woodp-customer-email-settings .digages-woodp-messages-bg-item-right {
        width: 100%;
    }

    .woodp-customer-email-settings .digages-woodp-messages-bg-item-right {
        margin-top: 10px;
    }
}
