/*
 * Order form of Toral SMM panel Bridge (row 19.5). The owner's original form stylesheet (afzaliwp, 1.6.1) with the
 * form id replaced by the class .tsb-order-form - same look; the few additions (package choice, link note) are
 * marked. Logical properties where a side matters, so RTL and LTR shops both work.
 */
.tsb-order-form {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: scroll;
    padding: 0 8px;
}

.tsb-order-form::-webkit-scrollbar,
.tsb-order-form .product-info::-webkit-scrollbar {
    width: 8px !important;
}

.tsb-order-form::-webkit-scrollbar-track,
.tsb-order-form .product-info::-webkit-scrollbar-track {
    background: transparent !important;
}

.tsb-order-form::-webkit-scrollbar-thumb,
.tsb-order-form .product-info::-webkit-scrollbar-thumb {
    border-radius: 20px !important;
    background: #b0b0b0 !important;
}

.tsb-order-form::-webkit-scrollbar-thumb:hover,
.tsb-order-form .product-info::-webkit-scrollbar-thumb:hover {
    background: #6b6b6b !important;
}

.tsb-order-form label {
    margin-bottom: 5px;
}

.tsb-order-form.loading:before {
    content: '';
    z-index: 12;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    border: 7px solid #ffffff;
    border-left-color: transparent;
    border-radius: 100%;
    animation: tsb-of-spin 1s linear infinite;
}

.tsb-order-form.loading:after {
    content: '';
    z-index: 10;
    position: absolute;
    inset: 0 0 0 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.34);
}

.tsb-order-form .product [disabled],
.tsb-order-form .package [disabled],
.tsb-order-form .quantity [disabled],
.tsb-order-form .link [disabled],
.tsb-order-form .submit [disabled] {
    opacity: 0.7;
}

.tsb-order-form .product-category select,
.tsb-order-form .product select,
.tsb-order-form .package select,
.tsb-order-form .quantity input,
.tsb-order-form .link input {
    border: none;
    border-radius: 4px;
    padding: 4px;
    outline: none;
    text-wrap: wrap;
    width: 100%;
}

.tsb-order-form p.price {
    border: none !important;
}

.tsb-order-form .submit {
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    align-content: center;
}

.tsb-order-form .quantity label {
    display: none;
}

.tsb-order-form img.tsb-of-thumbnail {
    max-width: 200px !important;
    margin: 5px auto;
    display: block;
}

.tsb-order-form .product-info {
    border-radius: 4px;
    padding: 4px;
    margin-bottom: 10px;
    overflow-y: scroll;
}

.tsb-order-form .product-info .product-info-title {
    padding: 0 !important;
    font-size: 14px;
    line-height: 0;
    font-weight: 500;
    margin: .5rem 0 1rem;
}

@keyframes tsb-of-spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

/* The description box shows only when a product's description has arrived. */
.tsb-order-form .product-info:not(.has-info) {
    display: none;
}

/* Bridge additions: package choice (hidden for quantity products), link note (empty = nothing shown). */
.tsb-order-form [hidden] {
    display: none !important;
}

.tsb-order-form .tsb-of-note {
    display: block;
    margin-block-start: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.tsb-order-form .tsb-of-note:empty {
    display: none;
}

.tsb-order-form .tsb-of-note.is-bad {
    color: #b32d2e;
}

.tsb-order-form .tsb-of-note.is-ok {
    color: #1a7f37;
}

