* {
    touch-action: manipulation;
}

.entry-title {
    display: none;
}

.site-footer {
    display: none;
}

.site-header {
    z-index: 99;
    position: relative;
    position: sticky;
    top: 0;
    left: 0;
}

.ps-qty-btn {
    width: 30px;
    height: 30px;
    padding: 0;
}

.ps-card-price {
    flex: 1;
    text-align: right;
    min-width: 70px;
}

.ps-qty-input {
    width: 48px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.ps-order-container {
    padding-bottom: 65px;
}

.ast-scroll-to-top-right {
    right: 30px;
    bottom: 85px;
}

.summary-row {
    display: flex;
    width: 100%;
    margin-bottom: 8px;
}

.summary-row-qty {
    flex: auto;
}

.summary-row-desc {
    flex: 5;
}

.summary-row-desc-1 {
    margin-right: 18px;
}

.summary-row-desc-2 {
    font-size: 12px;
    color: #999;
    margin-right: 18px;
}

.summary-row-price {
    flex: 1;
    text-align: right;
}

.ps-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f8f8f8;
    padding: 12px;
    box-shadow: 0 -2px 6px #ccc;
    display: flex;
    align-items: center;
    ;
}

.ps-bottom-bar-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    flex-direction: unset !important;
}

.ps-bottom-bar-price {
    flex: 1;
    font-size: 18px;
    font-weight: bold;
}

nav.left-menu-nav {
    float: left;
    margin-left: -10px;
    position: fixed;
    top: 111px;
}

nav.left-menu-nav ul {
    padding: 0;
}

nav.left-menu-nav li {
    display: block;
    margin: 0px 0px 0px 0px;
    -webkit-writing-mode: vertical-rl;
    -ms-writing-mode: tb-rl;
    writing-mode: vertical-rl;
    padding: 12px 0px 0px 0px;
}

nav.left-menu-nav li a {
    text-decoration: none !important;
    padding: 20px 8px 20px 8px;
}

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
    min-height: 40px;
}

/* Product Card Specific Styles */
.cas-product-card .cas-card-header {
    background: #f0f7ff;
}

.cas-product-price {
    font-size: 18px;
    font-weight: bold;
    color: #2a6496;
    margin: 10px 0;
}

.cas-product-sku {
    display: inline-block;
    background: #e1f0ff;
    color: #2a6496;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.cas-product-stock {
    margin-top: 10px;
    font-size: 14px;
}

.cas-in-stock {
    color: #4CAF50;
}

.cas-low-stock {
    color: #FF9800;
}

.cas-out-of-stock {
    color: #F44336;
}

/* Quantity Selector */
.cas-quantity-selector {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.cas-quantity-selector input {
    width: 60px;
    text-align: center;
    padding: 8px;
    margin: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.cas-quantity-btn {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Order Confirmation Styles */
.cas-order-summary {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-bottom: 10px;
}

.cas-order-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cas-order-total {
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    display: flex;
    justify-content: end;
}

.cas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.cas-section {
    display: none;
}

.cas-section.active {
    display: block;
}

.cas-search-form {
    margin-bottom: 10px;
    display: flex;
    gap: 10px;
}

#cas-search-input {
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

button {
    padding-top: 12px;
    padding-right: 24px;
    padding-bottom: 12px;
    padding-left: 24px;
}

/* button {
    padding: 12px 24px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
} */

button[disabled] {
    opacity: 0.6;
}

button[disabled],
html input[disabled] {
    cursor: default
}

button:not[disabled]:hover {
    background: #135e96;
}

.cas-back-button {
    background: #666;
    margin-bottom: 20px;
}

.cas-back-button:hover {
    background: #555;
}

.cas-submit-button {
    background: #4CAF50;
    margin-bottom: 20px;
    float: right;
}

.cas-submit-button:hover {
    background: #3e8e41;
}

/* Cards Layout */
.cas-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(475px, 1fr));
    column-gap: 3px;
    row-gap: 3px;
}

.cas-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.cas-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cas-card-header {
    background: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.cas-card-body {
    padding: 10px;
}

.cas-card-footer {
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: center;
}

.cas-card-title {
    margin: 0 0 5px !important;
    color: #333;
    font-size: 18px;
}

.cas-card-text {
    margin: 0 !important;
    color: #666;
    font-size: 14px;
}

.cas-card-code {
    display: inline-block;
    background: #e9e9e9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
}

.cas-customer-info {
    margin-left: 10px;
}

cas-customer-info h3 {
    margin-bottom: 10px;
}

.cas-select-button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

/* Loading and Messages */
#cas-loading,
#cas-address-loading {
    text-align: center;
    padding: 40px;
    font-style: italic;
    color: #666;
}

.cas-message {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 4px;
    text-align: center;
    margin: 20px 0;
    flex: 3;
}

.cas-error {
    color: #d63638;
}

.cas-notice {
    color: #666;
}

/* Confirmation Section */
.cas-confirmation-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.cas-confirmation-title {
    margin-top: 0;
    color: #2271b1;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.cas-confirmation-detail {
    margin-bottom: 10px;
}

.cas-confirmation-label {
    font-weight: bold;
    color: #555;
    display: inline-block;
    width: 100px;
}

.cas-header {
    display: flex;
    padding-left: 10px;
}

.cas-card-body-cardname {
    font-weight: bold;
}

.ps-product-list {
    padding-bottom: 65px;
    flex: 3;
    display: flex;
    flex-wrap: wrap;
}

.cas-container p {
    margin-bottom: 8px;
}

.ps-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 575px;
    min-height: 80px;
    border-radius: 8px;
    background-color: white;
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    box-shadow: 0px 0.6px 4px 0px rgba(0, 0, 0, 0.2);
    margin-top: 6px;
    padding: 8px;
}

.ps-product-card-container {
    display: flex;
    justify-content: start;
    align-items: start;
    flex-wrap: wrap;
}

.ast-mobile-header-wrap .ast-primary-header-bar,
.ast-primary-header-bar .site-primary-header-wrap {
    min-height: 40px;
}

.ast-plain-container.ast-no-sidebar {
    margin-top: 0;
}

.wpum-action-links {
    padding: 0 !important;
}

.field-hide {
    display: none;
}


.ast-container {
    padding-left: 10px;
    padding-right: 10px;
}

.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-primary-header-bar,
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-below-header-bar,
.ast-header-break-point #masthead .ast-mobile-header-wrap .ast-above-header-bar {
    padding-left: 20px;
    padding-right: 10px;
}

#cas-product-tabs {
    display: none;
}

#cas-product-tabs.active {
    display: block;
    margin-bottom: 20px;
}

.cas-product-tabs {
    min-width: 80px;
}

.cas-product-tab {
    border: none;
    padding: 16px 8px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 8px 0 0 8px;
    transition: background 0.2s, color 0.2s;
}

.cas-product-tab.active {
    font-weight: bold;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

.tab-common {
    border-radius: 5px;
    border: solid 1px #156cdb;
    background-color: white;
    color: #156cdb;
}

.tab-last {
    border-radius: 5px;
    border: solid 1px #ff8f00;
    background-color: white;
    color: #ff8f00;
}

.tab-search {
    border-radius: 5px;
    border: solid 1px #358b26;
    background-color: white;
    color: #358b26;
}

.tab-common.active {
    border: solid 1px #156cdb;
    background-color: #156cdb;
    color: white;
}

.tab-last.active {
    border: solid 1px #ff8f00;
    background-color: #ff8f00;
    color: white;
}

.tab-search.active {
    border: solid 1px #358b26;
    background-color: #358b26;
    color: white;
}

#cas-product-section {
    padding-left: 30px;
}

.text-center {
    text-align: center;
}

.site-header {
    display: none;
}

.logged-in .site-header {
    display: block;
}

.cas-card-select-notice {
    color: var(--ast-global-color-0);
    font-size: 24px;
    margin-left: 30px;
}

.wpum-login-center-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 120px;
}
.wpum-login-inner {
    width: 100%;
    max-width: 400px;
    background: #fff;
    padding: 32px 24px 24px 24px;
    /* border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08); */
    text-align: center;
}
.wpum-login-logo {
    margin-bottom: 24px;
}
.wpum-login-logo img {
    max-width: 120px;
    height: auto;
    display: inline-block;
}

.wpum-action-links {
    display: grid;
    justify-content: center;
    flex: 1;
    text-align: center;
}

@media (max-width: 600px) {
    .ps-product-card {
        width: 100%;
    }

    .cas-card-grid {
        grid-template-columns: unset;
    }
}

@media (min-width: 1200px) {
    .ast-plain-container.ast-no-sidebar #primary {
        margin-top: 0;
        margin-bottom: 60px;
    }
}